Go to the source code of this file.
|
| using | KeyValueMap = std::unordered_map<std::string, std::string> |
| template<typename C> |
| using | Setter = std::function<void(C&, const std::string&)> |
| template<typename C> |
| using | Registry = std::unordered_map<std::string, Setter<C>> |
|
| bool | isEquals (const std::string &s1, const std::string &s2) |
| bool | parse (uint64_t &result, const std::string &value) |
| bool | parse (int64_t &result, const std::string &value) |
| bool | parse (double &result, const std::string &value) |
| bool | parse (bool &result, const std::string &value) |
| template<typename T> |
| T | parse (const std::string &value) |
| template<typename T> |
| T | fromString (const std::string &value) |
| template<> |
| std::string | fromString< std::string > (const std::string &value) |
| template<> |
| bool | fromString< bool > (const std::string &value) |
| KeyValueMap | parseConfigFile (const std::string &fileName, const std::string &rootNode) |
| void | throwCannotApplyConfigurationValue (const std::string &key, const std::string &value) |
| template<typename C, typename Arg> |
| Setter< C > | makeSetter (C &(C::*mf)(Arg)) |
| template<typename C> |
| void | loadFromFile (const std::string &fileName, C &obj, const Registry< C > ®, const std::string &rootNode, bool ignoreUnknown=true) |
◆ ONIXS_TYPENAME
| #define ONIXS_TYPENAME |
( |
| Type | ) |
|
Value:template<> inline const char * NumberName<Type>::name() noexcept { return #Type; }
Definition at line 51 of file ConfigurationParser.h.