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

This RCSByteString the one of RCSResourceAttributes value for Byte String (Binary). More...

Public Types

typedef std::vector< uint8_t > DataType
 

Public Member Functions

DataType getByteString () const
 Returns a vector<uint8_t> type of byte string. More...
 
size_t size () const
 Returns a size of stored vector<uint8_t>. More...
 
uint8_t operator[] (size_t it) const
 Return a value of indexed byte string. More...
 
 RCSByteString ()
 
 RCSByteString (DataType &&rhs)
 
 RCSByteString (const DataType &rhs)
 
 RCSByteString (RCSByteString &&rhs)
 
 RCSByteString (const RCSByteString &rhs)
 
 RCSByteString (::OCByteString &&rhs)
 
 RCSByteString (const ::OCByteString &rhs)
 
 RCSByteString (uint8_t *bytes, size_t size)
 
RCSByteStringoperator= (RCSByteString &&rhs)
 
RCSByteStringoperator= (const RCSByteString &rhs)
 

Related Functions

(Note that these are not member functions.)

bool operator== (const RCSByteString &rhs) const
 
bool operator!= (const RCSByteString &rhs) const
 

Detailed Description

This RCSByteString the one of RCSResourceAttributes value for Byte String (Binary).

It provides similar usage to c++ standard vector.
An RCSByteString can be one of various attribute value type.

See Also
Value
Type
RCSRemoteResourceObject
RCSResourceObject
RCSResourceAttributes

Member Typedef Documentation

typedef std::vector<uint8_t> OIC::Service::RCSByteString::DataType

Constructor & Destructor Documentation

OIC::Service::RCSByteString::RCSByteString ( )
inline
OIC::Service::RCSByteString::RCSByteString ( DataType &&  rhs)
inline
OIC::Service::RCSByteString::RCSByteString ( const DataType rhs)
inline
OIC::Service::RCSByteString::RCSByteString ( RCSByteString &&  rhs)
inline
OIC::Service::RCSByteString::RCSByteString ( const RCSByteString rhs)
inline
OIC::Service::RCSByteString::RCSByteString ( ::OCByteString &&  rhs)
inline
OIC::Service::RCSByteString::RCSByteString ( const ::OCByteString rhs)
inline
OIC::Service::RCSByteString::RCSByteString ( uint8_t *  bytes,
size_t  size 
)
inline

Member Function Documentation

DataType OIC::Service::RCSByteString::getByteString ( ) const
inline

Returns a vector<uint8_t> type of byte string.

Returns
A stored byte string with std::vector<uint8_t>
RCSByteString& OIC::Service::RCSByteString::operator= ( RCSByteString &&  rhs)
inline
RCSByteString& OIC::Service::RCSByteString::operator= ( const RCSByteString rhs)
inline
uint8_t OIC::Service::RCSByteString::operator[] ( size_t  it) const
inline

Return a value of indexed byte string.

Parameters
itlocation of the element.
Returns
A copied value of indexed byte string.
size_t OIC::Service::RCSByteString::size ( ) const
inline

Returns a size of stored vector<uint8_t>.

Returns
A size of stored byte string.

Friends And Related Function Documentation

bool operator!= ( const RCSByteString rhs) const
related

Checks if the byte string is not same contents, or is same.

Returns
true if the byte string are not equal, false otherwise.
bool operator== ( const RCSByteString rhs) const
related

Checks if the byte string is same contents, or not.

Returns
true if the byte string are equal, false otherwise.

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