mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 09:07:47 +08:00
Added UFile::copy()
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@909 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user