#include <MRConfig.h>
|
typedef std::vector< const char * > | Enum |
|
|
| Config (Config const &)=delete |
|
void | operator= (Config const &)=delete |
|
MRMESH_API void | reset (std::string appName) |
|
MRMESH_API const std::string & | getAppName () const |
|
MRMESH_API void | writeToFile () |
|
MRMESH_API bool | hasBool (const std::string &key) const |
|
MRMESH_API bool | getBool (const std::string &key, bool defaultValue=false) const |
|
MRMESH_API void | setBool (const std::string &key, bool keyValue) |
|
MRMESH_API bool | hasColor (const std::string &key) const |
|
MRMESH_API Color | getColor (const std::string &key, const Color &defaultValue=Color::black()) const |
|
MRMESH_API void | setColor (const std::string &key, const Color &keyValue) |
|
MRMESH_API bool | hasFileStack (const std::string &key) const |
|
MRMESH_API FileNamesStack | getFileStack (const std::string &key, const FileNamesStack &defaultValue=FileNamesStack()) const |
|
MRMESH_API void | setFileStack (const std::string &key, const FileNamesStack &keyValue) |
|
MRMESH_API bool | hasVector2i (const std::string &key) const |
|
MRMESH_API Vector2i | getVector2i (const std::string &key, const Vector2i &defaultValue=Vector2i()) const |
|
MRMESH_API void | setVector2i (const std::string &key, const Vector2i &keyValue) |
|
MRMESH_API bool | hasEnum (const Enum &enumeration, const std::string &key) const |
|
MRMESH_API int | getEnum (const Enum &enumeration, const std::string &key, int defaultValue=0) const |
|
MRMESH_API void | setEnum (const Enum &enumeration, const std::string &key, int keyValue) |
|
MRMESH_API bool | hasJsonValue (const std::string &key) |
|
MRMESH_API Json::Value | getJsonValue (const std::string &key, const Json::Value &defaultValue={}) |
|
MRMESH_API void | setJsonValue (const std::string &key, const Json::Value &keyValue) |
|
◆ Enum
◆ Config()
MR::Config::Config |
( |
Config const & | | ) |
|
|
delete |
◆ getAppName()
MRMESH_API const std::string & MR::Config::getAppName |
( |
| ) |
const |
◆ getBool()
MRMESH_API bool MR::Config::getBool |
( |
const std::string & | key, |
|
|
bool | defaultValue = false ) const |
◆ getColor()
◆ getEnum()
MRMESH_API int MR::Config::getEnum |
( |
const Enum & | enumeration, |
|
|
const std::string & | key, |
|
|
int | defaultValue = 0 ) const |
◆ getFileStack()
◆ getJsonValue()
MRMESH_API Json::Value MR::Config::getJsonValue |
( |
const std::string & | key, |
|
|
const Json::Value & | defaultValue = {} ) |
◆ getVector2i()
MRMESH_API Vector2i MR::Config::getVector2i |
( |
const std::string & | key, |
|
|
const Vector2i & | defaultValue = Vector2i() ) const |
◆ hasBool()
MRMESH_API bool MR::Config::hasBool |
( |
const std::string & | key | ) |
const |
◆ hasColor()
MRMESH_API bool MR::Config::hasColor |
( |
const std::string & | key | ) |
const |
◆ hasEnum()
MRMESH_API bool MR::Config::hasEnum |
( |
const Enum & | enumeration, |
|
|
const std::string & | key ) const |
◆ hasFileStack()
MRMESH_API bool MR::Config::hasFileStack |
( |
const std::string & | key | ) |
const |
◆ hasJsonValue()
MRMESH_API bool MR::Config::hasJsonValue |
( |
const std::string & | key | ) |
|
◆ hasVector2i()
MRMESH_API bool MR::Config::hasVector2i |
( |
const std::string & | key | ) |
const |
◆ instance()
◆ operator=()
void MR::Config::operator= |
( |
Config const & | | ) |
|
|
delete |
◆ reset()
MRMESH_API void MR::Config::reset |
( |
std::string | appName | ) |
|
◆ setBool()
MRMESH_API void MR::Config::setBool |
( |
const std::string & | key, |
|
|
bool | keyValue ) |
◆ setColor()
MRMESH_API void MR::Config::setColor |
( |
const std::string & | key, |
|
|
const Color & | keyValue ) |
◆ setEnum()
MRMESH_API void MR::Config::setEnum |
( |
const Enum & | enumeration, |
|
|
const std::string & | key, |
|
|
int | keyValue ) |
◆ setFileStack()
◆ setJsonValue()
MRMESH_API void MR::Config::setJsonValue |
( |
const std::string & | key, |
|
|
const Json::Value & | keyValue ) |
◆ setVector2i()
MRMESH_API void MR::Config::setVector2i |
( |
const std::string & | key, |
|
|
const Vector2i & | keyValue ) |
◆ writeToFile()
The documentation for this class was generated from the following file: