added toString() to FileLoader

git-svn-id: svn://anubis/misc/FileLoader@237 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2010-02-24 20:06:23 +00:00
parent 393c227cce
commit ab0b8157f4

View File

@ -17,6 +17,15 @@ class FileLoader
Path(const std::string & full_path, Path(const std::string & full_path,
const std::string & short_path) const std::string & short_path)
: fullPath(full_path), shortPath(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 class Buffer