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

This is to specify query parameters for requests to the server. More...

Public Types

typedef std::unordered_map
< std::string, std::string > 
Map
 

Public Member Functions

RCSQueryParamssetResourceInterface (std::string interface)
 Sets an interface of the resource to operate on. More...
 
RCSQueryParamssetResourceType (std::string type)
 Sets a resource type of the resource to operate on. More...
 
RCSQueryParamsput (std::string key, std::string value)
 Sets a resource type of the resource to operate on. More...
 
std::string getResourceInterface () const
 Returns the resource interface. More...
 
std::string getResourceType () const
 Returns the resource type. More...
 
std::string get (const std::string &key) const
 Returns a value. More...
 
const MapgetAll () const
 Returns all params. More...
 

Detailed Description

This is to specify query parameters for requests to the server.

See Also
RCSRemoteResourceObject

Member Typedef Documentation

typedef std::unordered_map< std::string, std::string > OIC::Service::RCSQueryParams::Map

Member Function Documentation

std::string OIC::Service::RCSQueryParams::get ( const std::string &  key) const

Returns a value.

Parameters
keykey of the element whose mapped value is accessed.
Exceptions
InvalidKeyExceptionIf key doesn't match the key of any value.
const Map& OIC::Service::RCSQueryParams::getAll ( ) const

Returns all params.

std::string OIC::Service::RCSQueryParams::getResourceInterface ( ) const

Returns the resource interface.

std::string OIC::Service::RCSQueryParams::getResourceType ( ) const

Returns the resource type.

RCSQueryParams& OIC::Service::RCSQueryParams::put ( std::string  key,
std::string  value 
)

Sets a resource type of the resource to operate on.

Parameters
keykey to be inserted
valuevalue to be inserted
Note
"rt" and "if" are reserved, so you should avoid them as a key.
RCSQueryParams& OIC::Service::RCSQueryParams::setResourceInterface ( std::string  interface)

Sets an interface of the resource to operate on.

Parameters
interfaceinterface
RCSQueryParams& OIC::Service::RCSQueryParams::setResourceType ( std::string  type)

Sets a resource type of the resource to operate on.

Parameters
typeresource type

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