OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::NavigationTreeItemIcon Class Reference

#include "NavigationTreeItemIcon.h"

Inheritance diagram for ot::NavigationTreeItemIcon:
ot::Serializable

Public Member Functions

 NavigationTreeItemIcon ()
 
 NavigationTreeItemIcon (const std::string &_visibleIcon, const std::string &_hiddenIcon)
 
 NavigationTreeItemIcon (const NavigationTreeItemIcon &_other)
 
virtual ~NavigationTreeItemIcon ()
 
NavigationTreeItemIconoperator= (const NavigationTreeItemIcon &_other)
 
bool operator== (const NavigationTreeItemIcon &_other) const
 
bool operator!= (const NavigationTreeItemIcon &_other) const
 
virtual void addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const override
 Add the object contents to the provided JSON object.
 
virtual void setFromJsonObject (const ot::ConstJsonObject &_object) override
 Set the object contents from the provided JSON object.
 
void setVisibleIcon (const std::string &_visibleIcon)
 
const std::string & getVisibleIcon (void) const
 
void setHiddenIcon (const std::string &_hiddenIcon)
 
const std::string & getHiddenIcon (void) const
 
- Public Member Functions inherited from ot::Serializable
 Serializable ()
 
virtual ~Serializable ()
 

Constructor & Destructor Documentation

◆ NavigationTreeItemIcon() [1/3]

ot::NavigationTreeItemIcon::NavigationTreeItemIcon ( )

◆ NavigationTreeItemIcon() [2/3]

ot::NavigationTreeItemIcon::NavigationTreeItemIcon ( const std::string & _visibleIcon,
const std::string & _hiddenIcon )

◆ NavigationTreeItemIcon() [3/3]

ot::NavigationTreeItemIcon::NavigationTreeItemIcon ( const NavigationTreeItemIcon & _other)

◆ ~NavigationTreeItemIcon()

ot::NavigationTreeItemIcon::~NavigationTreeItemIcon ( )
virtual

Member Function Documentation

◆ addToJsonObject()

void ot::NavigationTreeItemIcon::addToJsonObject ( ot::JsonValue & _object,
ot::JsonAllocator & _allocator ) const
overridevirtual

Add the object contents to the provided JSON object.

Parameters
_objectJson object reference to write the data to.
_allocatorAllocator.

Implements ot::Serializable.

◆ getHiddenIcon()

const std::string & ot::NavigationTreeItemIcon::getHiddenIcon ( void ) const
inline

◆ getVisibleIcon()

const std::string & ot::NavigationTreeItemIcon::getVisibleIcon ( void ) const
inline

◆ operator!=()

bool ot::NavigationTreeItemIcon::operator!= ( const NavigationTreeItemIcon & _other) const

◆ operator=()

ot::NavigationTreeItemIcon & ot::NavigationTreeItemIcon::operator= ( const NavigationTreeItemIcon & _other)

◆ operator==()

bool ot::NavigationTreeItemIcon::operator== ( const NavigationTreeItemIcon & _other) const

◆ setFromJsonObject()

void ot::NavigationTreeItemIcon::setFromJsonObject ( const ot::ConstJsonObject & _object)
overridevirtual

Set the object contents from the provided JSON object.

Parameters
_objectThe JSON object containing the information.
Exceptions
Maythrow an exception if the provided object is not valid (members missing or invalid types).

Implements ot::Serializable.

◆ setHiddenIcon()

void ot::NavigationTreeItemIcon::setHiddenIcon ( const std::string & _hiddenIcon)
inline

◆ setVisibleIcon()

void ot::NavigationTreeItemIcon::setVisibleIcon ( const std::string & _visibleIcon)
inline

The documentation for this class was generated from the following files: