12#define OT_FactoryKey_GraphicsFileItem "OT_GIFile"
38 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
47 void setFile(
const std::string& _subPath) { m_file = _subPath; };
48 const std::string&
getFile(
void)
const {
return m_file; };
#define OT_FactoryKey_GraphicsFileItem
Definition GraphicsItemFileCfg.h:12
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
Definition GraphicsItemFileCfg.h:16
virtual std::string getFactoryKey(void) const override
Returns the key that is used to create an instance of this class in the simple factory.
Definition GraphicsItemFileCfg.h:41
const std::string & getFile(void) const
Definition GraphicsItemFileCfg.h:48
void setFile(const std::string &_subPath)
Definition GraphicsItemFileCfg.h:47
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30