CPP Device Virtualization API Reference for Oracle Internet of Things Cloud Service Client Software Library. Release 21.1.1.0.0-3. E92477-09
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
iotdcl::NamedValue Class Reference

Public Member Functions

 NamedValue (iotcs_named_value *v) throw (std::invalid_argument)
 Construct name-value pair from C Library structure. More...
 
 NamedValue (iotcs_named_value v) throw (std::invalid_argument)
 
 NamedValue (const NamedValue &v) throw (std::invalid_argument)
 
NamedValuenext () const
 Get the next name-value pair in the event. More...
 
template<typename T >
getValue () const
 Get the value. More...
 
const std::string & getName () const
 Get the name. More...
 

Constructor & Destructor Documentation

iotdcl::NamedValue::NamedValue ( iotcs_named_value *  v)
throw (std::invalid_argument
)

Construct name-value pair from C Library structure.

Parameters
<T>the type of the value
Exceptions
std::invalid_argument

Member Function Documentation

const std::string& iotdcl::NamedValue::getName ( ) const

Get the name.

Returns
the name
template<typename T >
T iotdcl::NamedValue::getValue ( ) const

Get the value.

Returns
the value
NamedValue* iotdcl::NamedValue::next ( ) const

Get the next name-value pair in the event.

This method returns

null

if there are no more name-value pairs.

Returns
the next name-value pair, or
null

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