IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OIC::Service::NSAcceptedProviders Class Reference

This class provides a set of C++APIs for managing accepted Providers. More...

Public Member Functions

 NSAcceptedProviders ()
 Constructor of NSAcceptedProviders. More...
 
 NSAcceptedProviders (const NSAcceptedProviders &)
 Copy Constructor of NSAcceptedProviders. More...
 
NSAcceptedProvidersoperator= (const NSAcceptedProviders &)
 Copy assignment operator of NSAcceptedProviders. More...
 
 ~NSAcceptedProviders ()
 Destructor of NSAcceptedProviders. More...
 
std::shared_ptr< NSProvidergetProvider (const std::string &id)
 request to get NSProvider pointer More...
 
void addProvider (std::shared_ptr< NSProvider > provider)
 Request to add NSProvider pointer. More...
 
void removeProvider (const std::string &id)
 request to remove NSProvider More...
 
bool isAccepted (const std::string &id)
 request to check if NSProvider is accepted More...
 
int size ()
 get size of providers accepted. More...
 
void removeProviders ()
 request to remove all NSProviders More...
 
std::map< std::string,
std::shared_ptr< NSProvider > > 
getProviders () const
 get the map of providers accepted. More...
 

Detailed Description

This class provides a set of C++APIs for managing accepted Providers.

Constructor & Destructor Documentation

OIC::Service::NSAcceptedProviders::NSAcceptedProviders ( )
inline

Constructor of NSAcceptedProviders.

OIC::Service::NSAcceptedProviders::NSAcceptedProviders ( const NSAcceptedProviders )

Copy Constructor of NSAcceptedProviders.

OIC::Service::NSAcceptedProviders::~NSAcceptedProviders ( )
inline

Destructor of NSAcceptedProviders.

Member Function Documentation

void OIC::Service::NSAcceptedProviders::addProvider ( std::shared_ptr< NSProvider provider)

Request to add NSProvider pointer.

Parameters
providershared pointer to NSProvider
std::shared_ptr<NSProvider> OIC::Service::NSAcceptedProviders::getProvider ( const std::string &  id)

request to get NSProvider pointer

Parameters
id-id as string
Returns
shared pointer to NSProvider
std::map<std::string, std::shared_ptr<NSProvider> > OIC::Service::NSAcceptedProviders::getProviders ( ) const

get the map of providers accepted.

Returns
m_providers -map of accepted providers
bool OIC::Service::NSAcceptedProviders::isAccepted ( const std::string &  id)

request to check if NSProvider is accepted

Parameters
id-id as string
Returns
true if accepted else false
NSAcceptedProviders& OIC::Service::NSAcceptedProviders::operator= ( const NSAcceptedProviders )

Copy assignment operator of NSAcceptedProviders.

Returns
NSAcceptedProviders object reference
void OIC::Service::NSAcceptedProviders::removeProvider ( const std::string &  id)

request to remove NSProvider

Parameters
id-id as string
void OIC::Service::NSAcceptedProviders::removeProviders ( )

request to remove all NSProviders

int OIC::Service::NSAcceptedProviders::size ( )

get size of providers accepted.

Returns
m_providers size

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