Added UFile::copy()

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@909 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2013-06-18 17:08:37 +00:00
parent 6c656e7c57
commit ffbf4c8ba3
2 changed files with 14 additions and 2 deletions
+4
View File
@@ -72,6 +72,8 @@ public:
static std::string getExtension(const std::string &filePath);
static void copy(const std::string & from, const std::string & to);
public:
/**
* Create a UFile object with path initialized to an existing file .
@@ -128,6 +130,8 @@ public:
*/
std::string getExtension() {return getExtension(path_);}
void copy(const std::string & to) {copy(path_, to);}
private:
std::string path_;
};