Scarab
Project 8 C++ Utility Library
|
#include <param.hh>
Inherits param.
Classes | |
union | Values |
Public Member Functions | |
param_value () | |
param_value (bool a_value) | |
param_value (uint8_t a_value) | |
param_value (uint16_t a_value) | |
param_value (uint32_t a_value) | |
param_value (uint64_t a_value) | |
param_value (int8_t a_value) | |
param_value (int16_t a_value) | |
param_value (int32_t a_value) | |
param_value (int64_t a_value) | |
param_value (float a_value) | |
param_value (double a_value) | |
param_value (const std::string &a_value) | |
param_value (const char *a_value) | |
param_value (const param_value &orig) | |
virtual | ~param_value () |
param_value & | operator= (const param_value &rhs) |
virtual param * | clone () const |
bool | empty () const |
virtual bool | is_null () const |
virtual bool | is_value () const |
virtual bool | has_subset (const param &a_subset) const |
std::string | type () const |
bool | is_bool () const |
bool | is_uint () const |
bool | is_int () const |
bool | is_double () const |
bool | is_string () const |
bool | as_bool () const |
uint64_t | as_uint () const |
int64_t | as_int () const |
double | as_double () const |
const std::string & | as_string () const |
path | as_path () const |
template<typename XValType > | |
XValType | get () const |
void | set (bool a_value) |
void | set (uint8_t a_value) |
void | set (uint16_t a_value) |
void | set (uint32_t a_value) |
void | set (uint64_t a_value) |
void | set (int8_t a_value) |
void | set (int16_t a_value) |
void | set (int32_t a_value) |
void | set (int64_t a_value) |
void | set (float a_value) |
void | set (double a_value) |
void | set (const std::string &a_value) |
void | set (const char *a_value) |
virtual std::string | to_string () const |
void | clear () |
template<> | |
bool | get () const |
template<> | |
uint64_t | get () const |
template<> | |
int64_t | get () const |
template<> | |
double | get () const |
![]() | |
param () | |
param (const param &orig) | |
virtual | ~param () |
virtual bool | is_array () const |
virtual bool | is_node () const |
param_value & | as_value () |
param_array & | as_array () |
param_node & | as_node () |
const param_value & | as_value () const |
const param_array & | as_array () const |
const param_node & | as_node () const |
const param_value & | operator() () const |
Assumes that the parameter is a value, and returns a reference to itself. More... | |
param_value & | operator() () |
Assumes that the parameter is a value, and returns a reference to itself. More... | |
const param & | operator[] (unsigned a_index) const |
param & | operator[] (unsigned a_index) |
const param & | operator[] (const std::string &a_name) const |
param & | operator[] (const std::string &a_name) |
Private Types | |
enum | ValueTypes { k_bool, k_uint, k_int, k_double, k_string, k_invalid } |
Private Attributes | |
union scarab::param_value::Values | f_value |
enum scarab::param_value::ValueTypes | f_value_type |
std::string | f_buffer |
Additional Inherited Members | |
![]() | |
static unsigned | s_indent_level = 0 |
|
private |
param_value | ( | ) |
param_value | ( | bool | a_value | ) |
param_value | ( | uint8_t | a_value | ) |
param_value | ( | uint16_t | a_value | ) |
param_value | ( | uint32_t | a_value | ) |
param_value | ( | uint64_t | a_value | ) |
param_value | ( | int8_t | a_value | ) |
param_value | ( | int16_t | a_value | ) |
param_value | ( | int32_t | a_value | ) |
param_value | ( | int64_t | a_value | ) |
param_value | ( | float | a_value | ) |
param_value | ( | double | a_value | ) |
param_value | ( | const std::string & | a_value | ) |
param_value | ( | const char * | a_value | ) |
param_value | ( | const param_value & | orig | ) |
|
virtual |
|
inlinevirtual |
bool empty | ( | ) | const |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
param_value & operator= | ( | const param_value & | rhs | ) |
|
inlinevirtual |
|
private |
|
private |