--- smsdaemon/ConfigFile.cpp 2008/12/18 23:19:08 201 +++ smsdaemon/ConfigFile.cpp 2008/12/18 23:29:23 202 @@ -1,6 +1,7 @@ #include "ConfigFile.h" #include +#include const char SEPERATOR = '/'; @@ -113,3 +114,12 @@ } } +std::string ConfigFile::DumpConfig() const +{ + std::ostringstream ss; + for (content_iterator it=content_.begin(); it!=content_.end(); ++it) + { + ss << it->first << "=" << it->second.StringValue() << std::endl; + } + return ss.str(); +}