]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parsers/chg_corp.cpp
Moved common code to a single file.
[stg.git] / stglibs / srvconf.lib / parsers / chg_corp.cpp
index e566e2ae07acfb0d46a18bbee1ee3ed836695216..dc884220d2a4d0519db9f61ef48dfd99b52f5327 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "chg_corp.h"
 
+#include "resetable_utils.h"
+
 #include "stg/corp_conf.h"
 #include "stg/common.h"
 
 
 using namespace STG;
 
-namespace
-{
-
-template <typename T>
-void appendResetable(std::ostream & stream, const std::string & name, const T & value)
-{
-if (!value.empty())
-    stream << "<" << name << " value=\"" << value.data() << "\"/>";
-}
-
-} // namespace anonymous
-
 std::string CHG_CORP::Serialize(const CORP_CONF_RES & conf)
 {
 std::ostringstream stream;