From cd1b503985af6a7f3354466da81fda92db702f68 Mon Sep 17 00:00:00 2001 From: balderdash-devil Date: Sat, 31 May 2014 16:13:29 -0400 Subject: [PATCH] comments explaining the funtion --- gtsam/slam/dataset.cpp | 2 ++ gtsam/slam/dataset.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gtsam/slam/dataset.cpp b/gtsam/slam/dataset.cpp index 04b1fe1df..fc2d7df4d 100644 --- a/gtsam/slam/dataset.cpp +++ b/gtsam/slam/dataset.cpp @@ -68,6 +68,7 @@ string findExampleDataFile(const string& name) { name + ", " + name + ".graph, or " + name + ".txt"); } +/* ************************************************************************* */ string createRewrittenFileName(const string& name) { // Search source tree and installed location if(!exists(fs::path(name))) { @@ -81,6 +82,7 @@ string createRewrittenFileName(const string& name) { return newpath.string(); } +/* ************************************************************************* */ #endif /* ************************************************************************* */ diff --git a/gtsam/slam/dataset.h b/gtsam/slam/dataset.h index c544dcad5..854daa237 100644 --- a/gtsam/slam/dataset.h +++ b/gtsam/slam/dataset.h @@ -46,8 +46,8 @@ namespace gtsam { GTSAM_EXPORT std::string findExampleDataFile(const std::string& name); /** - * searches for the file using the findExample funtion, if not found , - * creates one in the source tree and returns the full path + * Creates a temporary file name that needs to be ignored in .gitingnore + * for checking read-write oprations */ GTSAM_EXPORT std::string createRewrittenFileName(const std::string& name); #endif