CPPMyth
Library to interoperate with MythTV server
sajson::value Class Reference

Public Member Functions

 value (type value_type, const size_t *payload, const char *text)
 
type get_type () const
 
size_t get_length () const
 
value get_array_element (size_t index) const
 
string get_object_key (size_t index) const
 
value get_object_value (size_t index) const
 
value get_value_of_key (const string &key) const
 
size_t find_object_key (const string &key) const
 
int get_integer_value () const
 
double get_double_value () const
 
double get_number_value () const
 
size_t get_string_length () const
 
std::string as_string () const
 

Private Member Functions

void assert_type (type expected) const
 
void assert_type_2 (type e1, type e2) const
 
void assert_in_bounds (size_t i) const
 

Private Attributes

const type value_type
 
const size_t *const payload
 
const char *const text
 

Detailed Description

Definition at line 287 of file sajson.h.


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