mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-30 01:25:49 +00:00
2efe18b525
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.
21 lines
589 B
C++
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
|