OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
TableHeaderItemCfg.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12namespace ot {
13
15 public:
17 TableHeaderItemCfg(const std::string& _text);
19 virtual ~TableHeaderItemCfg();
20
21 TableHeaderItemCfg& operator = (const TableHeaderItemCfg& _other);
22
26 virtual void addToJsonObject(ot::JsonValue& _object, ot::JsonAllocator& _allocator) const override;
27
31 virtual void setFromJsonObject(const ot::ConstJsonObject& _object) override;
32
33 void setText(const std::string& _text) { m_text = _text; };
34 const std::string& getText(void) const { return m_text; };
35
36 private:
37 std::string m_text;
38 };
39
40}
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
Definition TableHeaderItemCfg.h:14
void setText(const std::string &_text)
Definition TableHeaderItemCfg.h:33
const std::string & getText(void) const
Definition TableHeaderItemCfg.h:34
Definition Connector.h:8
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