5#include "MRPch/MRJson.h"
37 void reset(
const std::filesystem::path& filePath );
74 typedef std::vector<const char*>
Enum;
94 std::filesystem::path filePath_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
MRMESH_API bool getBool(const std::string &key, bool defaultValue=false) const
MRMESH_API Color getColor(const std::string &key, const Color &defaultValue=Color::black()) const
MRMESH_API void setEnum(const Enum &enumeration, const std::string &key, int keyValue)
std::vector< const char * > Enum
Definition MRConfig.h:74
MRMESH_API void reset(std::string appName)
MRMESH_API bool hasColor(const std::string &key) const
MRMESH_API bool hasVector2i(const std::string &key) const
MRMESH_API void writeToFile()
MRMESH_API void setVector2i(const std::string &key, const Vector2i &keyValue)
MRMESH_API int getEnum(const Enum &enumeration, const std::string &key, int defaultValue=0) const
MRMESH_API const std::string & getAppName() const
MRMESH_API void setJsonValue(const std::string &key, const Json::Value &keyValue)
MRMESH_API bool hasBool(const std::string &key) const
MRMESH_API FileNamesStack getFileStack(const std::string &key, const FileNamesStack &defaultValue=FileNamesStack()) const
MRMESH_API bool hasFileStack(const std::string &key) const
MRMESH_API Json::Value getJsonValue(const std::string &key, const Json::Value &defaultValue={})
MRMESH_API Vector2i getVector2i(const std::string &key, const Vector2i &defaultValue=Vector2i()) const
static MRMESH_API Config & instance()
MRMESH_API void setBool(const std::string &key, bool keyValue)
void operator=(Config const &)=delete
MRMESH_API void setFileStack(const std::string &key, const FileNamesStack &keyValue)
MRMESH_API bool hasEnum(const Enum &enumeration, const std::string &key) const
MRMESH_API void setColor(const std::string &key, const Color &keyValue)
MRMESH_API bool hasJsonValue(const std::string &key)
Config(Config const &)=delete
static MRMESH_API Logger & instance()
MRMESH_API const std::shared_ptr< spdlog::logger > & getSpdLogger() const
store this pointer if need to prolong logger life time (necessary to log something from destructors)
Definition MRCameraOrientationPlugin.h:8
std::vector< std::filesystem::path > FileNamesStack
Definition MRIOFilesMenuItems.h:14
static constexpr Color black() noexcept
Definition MRColor.h:28