UHD
003.001.002
|
#include <props.hpp>
Public Member Functions | |
template<typename T > | |
T | as (void) |
Convert the key to the specified type. More... | |
named_prop_t (const wax::obj &key, const std::string &name) | |
Static Public Member Functions | |
static named_prop_t | extract (const wax::obj &key, const std::string &name="") |
Public Attributes | |
const wax::obj | key |
const std::string | name |
A named prop struct holds a key and a name. Allows properties to be sub-sectioned by name.
uhd::named_prop_t::named_prop_t | ( | const wax::obj & | key, |
const std::string & | name | ||
) |
Create a new named prop from key and name.
key | the property key |
name | the string name |
|
inline |
Convert the key to the specified type.
|
static |
Utility function to convert generic key into a named prop. If the key was already a named prop, the prop will be split. Otherwise, the key will be the key, and the name will be used.
key | a reference to the prop object |
name | a reference to the name object |
const wax::obj uhd::named_prop_t::key |
const std::string uhd::named_prop_t::name |