Supermodel/Src/Util/ConfigBuilders.h
Bart Trzynadlowski 2efe18b525 Added support for multiple value types in config nodes.
Removed Ptr_t and ConstPtr_t from public interface, moved config tree builders into their own file, and made them pass by reference and value.
Exceptions can be thrown now on lookup failures.
Removed s_empty_node -- failed lookups in [] operator create a permanent "hidden" child.
Updated comment in NewConfig.cpp.
2016-08-21 22:22:45 +00:00

21 lines
589 B
C++

#ifndef INCLUDED_UTIL_CONFIGBUILDERS_H
#define INCLUDED_UTIL_CONFIGBUILDERS_H
#include <string>
namespace Util
{
namespace Config
{
class Node;
bool FromXML(Node *config, const std::string &text);
bool FromXMLFile(Node *config, const std::string &filename);
bool FromINIFile(Node *config, const std::string &filename);
void MergeINISections(Node *merged, const Node &x, const Node &y);
void WriteINIFile(const std::string &filename, const Node &config, const std::string &header_comment);
}
}
#endif // INCLUDED_UTIL_CONFIGBUILDERS_H