comments explaining the funtion
parent
34962d4669
commit
cd1b503985
|
|
@ -68,6 +68,7 @@ string findExampleDataFile(const string& name) {
|
||||||
name + ", " + name + ".graph, or " + name + ".txt");
|
name + ", " + name + ".graph, or " + name + ".txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ************************************************************************* */
|
||||||
string createRewrittenFileName(const string& name) {
|
string createRewrittenFileName(const string& name) {
|
||||||
// Search source tree and installed location
|
// Search source tree and installed location
|
||||||
if(!exists(fs::path(name))) {
|
if(!exists(fs::path(name))) {
|
||||||
|
|
@ -81,6 +82,7 @@ string createRewrittenFileName(const string& name) {
|
||||||
|
|
||||||
return newpath.string();
|
return newpath.string();
|
||||||
}
|
}
|
||||||
|
/* ************************************************************************* */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@ namespace gtsam {
|
||||||
GTSAM_EXPORT std::string findExampleDataFile(const std::string& name);
|
GTSAM_EXPORT std::string findExampleDataFile(const std::string& name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* searches for the file using the findExample funtion, if not found ,
|
* Creates a temporary file name that needs to be ignored in .gitingnore
|
||||||
* creates one in the source tree and returns the full path
|
* for checking read-write oprations
|
||||||
*/
|
*/
|
||||||
GTSAM_EXPORT std::string createRewrittenFileName(const std::string& name);
|
GTSAM_EXPORT std::string createRewrittenFileName(const std::string& name);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue