OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ServiceInformation Class Reference

#include "ServiceInformation.h"

Inheritance diagram for ServiceInformation:
ot::Serializable

Public Member Functions

 ServiceInformation ()
 
 ServiceInformation (const std::string &_name, const std::string &_type)
 
 ServiceInformation (const ServiceInformation &_other)
 
virtual ~ServiceInformation ()
 
ServiceInformationoperator= (const ServiceInformation &_other)
 
bool operator== (const ServiceInformation &_other) const
 
bool operator!= (const ServiceInformation &_other) const
 
void setName (const std::string &_name)
 
const std::string & name (void) const
 
void setType (const std::string &_type)
 
const std::string & type (void) const
 
 ServiceInformation ()
 
 ServiceInformation (const std::string &_name, const std::string &_type)
 
 ServiceInformation (const ServiceInformation &_other)
 
virtual ~ServiceInformation ()
 
ServiceInformationoperator= (const ServiceInformation &_other)
 
bool operator== (const ServiceInformation &_other) const
 
bool operator!= (const ServiceInformation &_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
 Will set the object contents from the provided JSON object.
 
void setName (const std::string &_name)
 
const std::string & name (void) const
 
void setType (const std::string &_type)
 
const std::string type (void) const
 
void setMaxCrashRestarts (unsigned int _restarts)
 
unsigned int maxCrashRestarts (void) const
 
void setMaxStartupRestarts (unsigned int _restarts)
 
unsigned int maxStartupRestarts (void) const
 
- Public Member Functions inherited from ot::Serializable
 Serializable ()
 
virtual ~Serializable ()
 

Constructor & Destructor Documentation

◆ ServiceInformation() [1/6]

ServiceInformation::ServiceInformation ( )

◆ ServiceInformation() [2/6]

ServiceInformation::ServiceInformation ( const std::string & _name,
const std::string & _type )

◆ ServiceInformation() [3/6]

ServiceInformation::ServiceInformation ( const ServiceInformation & _other)

◆ ~ServiceInformation() [1/2]

ServiceInformation::~ServiceInformation ( )
virtual

◆ ServiceInformation() [4/6]

ServiceInformation::ServiceInformation ( )

◆ ServiceInformation() [5/6]

ServiceInformation::ServiceInformation ( const std::string & _name,
const std::string & _type )

◆ ServiceInformation() [6/6]

ServiceInformation::ServiceInformation ( const ServiceInformation & _other)

◆ ~ServiceInformation() [2/2]

virtual ServiceInformation::~ServiceInformation ( )
virtual

Member Function Documentation

◆ addToJsonObject()

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

Add the object contents to the provided JSON object.

Parameters
_objectJson object reference
_allocatorAllocator

Implements ot::Serializable.

◆ maxCrashRestarts()

unsigned int ServiceInformation::maxCrashRestarts ( void ) const
inline

◆ maxStartupRestarts()

unsigned int ServiceInformation::maxStartupRestarts ( void ) const
inline

◆ name() [1/2]

const std::string & ServiceInformation::name ( void ) const
inline

◆ name() [2/2]

const std::string & ServiceInformation::name ( void ) const
inline

◆ operator!=() [1/2]

bool ServiceInformation::operator!= ( const ServiceInformation & _other) const

◆ operator!=() [2/2]

bool ServiceInformation::operator!= ( const ServiceInformation & _other) const

◆ operator=() [1/2]

ServiceInformation & ServiceInformation::operator= ( const ServiceInformation & _other)

◆ operator=() [2/2]

ServiceInformation & ServiceInformation::operator= ( const ServiceInformation & _other)

◆ operator==() [1/2]

bool ServiceInformation::operator== ( const ServiceInformation & _other) const

◆ operator==() [2/2]

bool ServiceInformation::operator== ( const ServiceInformation & _other) const

◆ setFromJsonObject()

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

Will set the object contents from the provided JSON object.

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

Implements ot::Serializable.

◆ setMaxCrashRestarts()

void ServiceInformation::setMaxCrashRestarts ( unsigned int _restarts)
inline

◆ setMaxStartupRestarts()

void ServiceInformation::setMaxStartupRestarts ( unsigned int _restarts)
inline

◆ setName() [1/2]

void ServiceInformation::setName ( const std::string & _name)
inline

◆ setName() [2/2]

void ServiceInformation::setName ( const std::string & _name)
inline

◆ setType() [1/2]

void ServiceInformation::setType ( const std::string & _type)
inline

◆ setType() [2/2]

void ServiceInformation::setType ( const std::string & _type)
inline

◆ type() [1/2]

const std::string & ServiceInformation::type ( void ) const
inline

◆ type() [2/2]

const std::string ServiceInformation::type ( void ) const
inline

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