From ab0b8157f46ec8ae2752dbe722c064a20f1fdda6 Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 24 Feb 2010 20:06:23 +0000 Subject: [PATCH] added toString() to FileLoader git-svn-id: svn://anubis/misc/FileLoader@237 bd8a9e45-a331-0410-811e-c64571078777 --- FileLoader.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FileLoader.h b/FileLoader.h index 8a83d61..8ab8464 100644 --- a/FileLoader.h +++ b/FileLoader.h @@ -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