General service information. The ServiceBase class is used to store the general service information.
More...
#include "ServiceBase.h"
General service information. The ServiceBase class is used to store the general service information.
◆ ServiceBase() [1/4]
ServiceBase::ServiceBase |
( |
| ) |
|
◆ ServiceBase() [2/4]
ServiceBase::ServiceBase |
( |
const std::string & | _name, |
|
|
const std::string & | _type ) |
Constructor.
- Parameters
-
_name | The name of the service |
_type | The type of the service |
◆ ServiceBase() [3/4]
ServiceBase::ServiceBase |
( |
const std::string & | _name, |
|
|
const std::string & | _type, |
|
|
const std::string & | _url, |
|
|
serviceID_t | _id, |
|
|
const std::string & | _siteId = std::string() ) |
Constructor.
- Parameters
-
_name | The name of the service |
_type | The type of the service |
_url | The URL of the service |
_id | The ID of the service |
◆ ServiceBase() [4/4]
Copy constructor.
- Parameters
-
◆ ~ServiceBase()
virtual ot::ServiceBase::~ServiceBase |
( |
| ) |
|
|
inlinevirtual |
◆ getBasicServiceInformation()
◆ getServiceID()
serviceID_t ot::ServiceBase::getServiceID |
( |
void | | ) |
const |
|
inline |
◆ getServiceIDAsInt()
int ServiceBase::getServiceIDAsInt |
( |
void | | ) |
const |
Return the service ID as an Integer (The service ID is an Integer stored as a String)
◆ getServiceName()
std::string ot::ServiceBase::getServiceName |
( |
void | | ) |
const |
|
inline |
◆ getServiceType()
std::string ot::ServiceBase::getServiceType |
( |
void | | ) |
const |
|
inline |
◆ getServiceURL()
const std::string & ot::ServiceBase::getServiceURL |
( |
void | | ) |
const |
|
inline |
◆ getSessionCount()
int ot::ServiceBase::getSessionCount |
( |
void | | ) |
const |
|
inline |
Return the session count.
◆ getSiteId()
std::string ot::ServiceBase::getSiteId |
( |
void | | ) |
const |
|
inline |
◆ operator!=()
bool ServiceBase::operator!= |
( |
const ServiceBase & | _other | ) |
const |
◆ operator=()
◆ operator==()
bool ServiceBase::operator== |
( |
const ServiceBase & | _other | ) |
const |
◆ setServiceID()
Set the service ID.
- Parameters
-
◆ setServiceName()
void ot::ServiceBase::setServiceName |
( |
const std::string & | _name | ) |
|
|
inline |
Set the service name.
- Parameters
-
◆ setServiceType()
void ot::ServiceBase::setServiceType |
( |
const std::string & | _type | ) |
|
|
inline |
Set the service type.
- Parameters
-
◆ setServiceURL()
void ot::ServiceBase::setServiceURL |
( |
const std::string & | _url | ) |
|
|
inline |
Set the service URL.
- Parameters
-
◆ setSessionCount()
void ot::ServiceBase::setSessionCount |
( |
int | _count | ) |
|
|
inline |
Set the session count.
- Parameters
-
◆ setSiteId()
void ot::ServiceBase::setSiteId |
( |
const std::string & | _id | ) |
|
|
inline |
Set the site ID.
- Parameters
-
◆ m_serviceID
◆ m_serviceName
std::string ot::ServiceBase::m_serviceName |
|
protected |
◆ m_serviceType
std::string ot::ServiceBase::m_serviceType |
|
protected |
◆ m_serviceURL
std::string ot::ServiceBase::m_serviceURL |
|
protected |
◆ m_sessionCount
int ot::ServiceBase::m_sessionCount |
|
protected |
◆ m_siteId
std::string ot::ServiceBase::m_siteId |
|
protected |
The documentation for this class was generated from the following files: