added toString() to FileLoader

git-svn-id: svn://anubis/misc/FileLoader@237 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh committed 2010-02-24 20:06:23 +00:00
1 parent 393c227cce
commit ab0b8157f4
1 file changed
+9
+9
View File
@@ -17,6 +17,15 @@ class FileLoader
Path(const std::string & full_path,
const std::string & short_path)
: fullPath(full_path), shortPath(short_path) { }
std::string toString() const
{
std::string ret;
if (shortPath != "")
ret += shortPath + ",";
if (fullPath != "")
ret += fullPath;
return ret;
}
};
class Buffer