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

#include "SessionInformation.h"

Inheritance diagram for SessionInformation:
ot::Serializable

Public Member Functions

 SessionInformation ()
 
 SessionInformation (const std::string &_id, const std::string &_sessionServiceURL)
 
 SessionInformation (const SessionInformation &_other)
 
virtual ~SessionInformation ()
 
SessionInformationoperator= (const SessionInformation &_other)
 
bool operator== (const SessionInformation &_other) const
 
bool operator!= (const SessionInformation &_other) const
 
void setID (const std::string &_id)
 
const std::string & id (void) const
 
void setSessionServiceURL (const std::string &_url)
 
const std::string & sessionServiceURL (void) const
 
 SessionInformation ()
 
 SessionInformation (const std::string &_id, const std::string &_sessionServiceUrl)
 
 SessionInformation (const SessionInformation &_other)
 
virtual ~SessionInformation ()
 
SessionInformationoperator= (const SessionInformation &_other)
 
bool operator== (const SessionInformation &_other) const
 
bool operator!= (const SessionInformation &_other) const
 
bool operator< (const SessionInformation &_other) const
 
bool operator<= (const SessionInformation &_other) const
 
bool operator> (const SessionInformation &_other) const
 
bool operator>= (const SessionInformation &_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 setID (const std::string &_id)
 
const std::string & id (void) const
 
void setSessionServiceURL (const std::string &_url)
 
const std::string & sessionServiceURL (void) const
 
- Public Member Functions inherited from ot::Serializable
 Serializable ()
 
virtual ~Serializable ()
 

Constructor & Destructor Documentation

◆ SessionInformation() [1/6]

SessionInformation::SessionInformation ( )

◆ SessionInformation() [2/6]

SessionInformation::SessionInformation ( const std::string & _id,
const std::string & _sessionServiceURL )

◆ SessionInformation() [3/6]

SessionInformation::SessionInformation ( const SessionInformation & _other)

◆ ~SessionInformation() [1/2]

SessionInformation::~SessionInformation ( )
virtual

◆ SessionInformation() [4/6]

SessionInformation::SessionInformation ( )

◆ SessionInformation() [5/6]

SessionInformation::SessionInformation ( const std::string & _id,
const std::string & _sessionServiceUrl )

◆ SessionInformation() [6/6]

SessionInformation::SessionInformation ( const SessionInformation & _other)

◆ ~SessionInformation() [2/2]

virtual SessionInformation::~SessionInformation ( )
virtual

Member Function Documentation

◆ addToJsonObject()

void SessionInformation::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.

◆ id() [1/2]

const std::string & SessionInformation::id ( void ) const
inline

◆ id() [2/2]

const std::string & SessionInformation::id ( void ) const
inline

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<()

bool SessionInformation::operator< ( const SessionInformation & _other) const

◆ operator<=()

bool SessionInformation::operator<= ( const SessionInformation & _other) const

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ operator>()

bool SessionInformation::operator> ( const SessionInformation & _other) const

◆ operator>=()

bool SessionInformation::operator>= ( const SessionInformation & _other) const

◆ sessionServiceURL() [1/2]

const std::string & SessionInformation::sessionServiceURL ( void ) const
inline

◆ sessionServiceURL() [2/2]

const std::string & SessionInformation::sessionServiceURL ( void ) const
inline

◆ setFromJsonObject()

void SessionInformation::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.

◆ setID() [1/2]

void SessionInformation::setID ( const std::string & _id)
inline

◆ setID() [2/2]

void SessionInformation::setID ( const std::string & _id)
inline

◆ setSessionServiceURL() [1/2]

void SessionInformation::setSessionServiceURL ( const std::string & _url)
inline

◆ setSessionServiceURL() [2/2]

void SessionInformation::setSessionServiceURL ( const std::string & _url)
inline

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