OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
ConfigurationParser.h File Reference

Go to the source code of this file.

Classes

struct  NumberName< typename >

Namespaces

namespace  OnixS
namespace  OnixS::ICE
namespace  OnixS::ICE::BOE
namespace  OnixS::ICE::BOE::System
namespace  OnixS::ICE::BOE::System::ConfigurationParser
namespace  OnixS::ICE::BOE::System::ConfigurationParser::Utils

Macros

#define ONIXS_TYPENAME(Type)

Typedefs

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>>

Functions

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>
parse (const std::string &value)
template<typename 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< CmakeSetter (C &(C::*mf)(Arg))
template<typename C>
void loadFromFile (const std::string &fileName, C &obj, const Registry< C > &reg, const std::string &rootNode, bool ignoreUnknown=true)

Macro Definition Documentation

◆ 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.