Parent Directory | Revision Log | Patch
revision 201 by torben, Thu Dec 18 23:19:08 2008 UTC | revision 202 by torben, Thu Dec 18 23:29:23 2008 UTC | |
---|---|---|
# | Line 1 | Line 1 |
1 | #include "ConfigFile.h" | #include "ConfigFile.h" |
2 | ||
3 | #include <fstream> | #include <fstream> |
4 | #include <sstream> | |
5 | ||
6 | const char SEPERATOR = '/'; | const char SEPERATOR = '/'; |
7 | ||
# | Line 113 Value const& ConfigFile::GetValue(std::s | Line 114 Value const& ConfigFile::GetValue(std::s |
114 | } | } |
115 | } | } |
116 | ||
117 | std::string ConfigFile::DumpConfig() const | |
118 | { | |
119 | std::ostringstream ss; | |
120 | for (content_iterator it=content_.begin(); it!=content_.end(); ++it) | |
121 | { | |
122 | ss << it->first << "=" << it->second.StringValue() << std::endl; | |
123 | } | |
124 | return ss.str(); | |
125 | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |