OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
NavigationTreeItemIcon.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// std header
13#include <string>
14
15#pragma warning(disable:4251)
16
17namespace ot {
18
20 public:
22 NavigationTreeItemIcon(const std::string& _visibleIcon, const std::string& _hiddenIcon);
25
26 NavigationTreeItemIcon& operator = (const NavigationTreeItemIcon& _other);
27
28 bool operator == (const NavigationTreeItemIcon& _other) const;
29 bool operator != (const NavigationTreeItemIcon& _other) const;
30
34 virtual void addToJsonObject(ot::JsonValue& _object, ot::JsonAllocator& _allocator) const override;
35
39 virtual void setFromJsonObject(const ot::ConstJsonObject& _object) override;
40
41 void setVisibleIcon(const std::string& _visibleIcon) { m_visibleIcon = _visibleIcon; };
42 const std::string& getVisibleIcon(void) const { return m_visibleIcon; };
43
44 void setHiddenIcon(const std::string& _hiddenIcon) { m_hiddenIcon = _hiddenIcon; };
45 const std::string& getHiddenIcon(void) const { return m_hiddenIcon; };
46
47 private:
48 std::string m_visibleIcon;
49 std::string m_hiddenIcon;
50 };
51
52}
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition NavigationTreeItemIcon.h:19
const std::string & getVisibleIcon(void) const
Definition NavigationTreeItemIcon.h:42
void setHiddenIcon(const std::string &_hiddenIcon)
Definition NavigationTreeItemIcon.h:44
const std::string & getHiddenIcon(void) const
Definition NavigationTreeItemIcon.h:45
void setVisibleIcon(const std::string &_visibleIcon)
Definition NavigationTreeItemIcon.h:41
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
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