Pyrogenesis  trunk
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
json_spirit Namespace Reference

Namespaces

 internal_
 

Classes

struct  Config_vector
 
struct  Error_position
 
class  Generator
 
class  Json_grammer
 
struct  Multi_pass_iters
 
struct  Null
 
struct  Pair_impl
 
class  Semantic_actions
 
class  Value_impl
 

Typedefs

typedef Config_vector< std::string > Config
 
typedef Config::Value_type Value
 
typedef Config::Pair_type Pair
 
typedef Config::Object_type Object
 
typedef Config::Array_type Array
 

Enumerations

enum  Value_type {
  obj_type, array_type, str_type, bool_type,
  int_type, real_type, null_type
}
 
enum  Output_options {
  none = 0, pretty_print = 0x01, raw_utf8 = 0x02, remove_trailing_zeros = 0x04,
  single_line_arrays = 0x08, always_escape_nonascii = 0x10
}
 

Functions

template<class Iter_type >
bool is_eq (Iter_type first, Iter_type last, const char *c_str)
 
template<class Char_type >
Char_type hex_to_num (const Char_type c)
 
template<class Char_type , class Iter_type >
Char_type hex_str_to_char (Iter_type &begin)
 
template<class Char_type , class Iter_type >
Char_type unicode_str_to_char (Iter_type &begin)
 
template<class String_type >
void append_esc_char_and_incr_iter (String_type &s, typename String_type::const_iterator &begin, typename String_type::const_iterator end)
 
template<class String_type >
String_type substitute_esc_chars (typename String_type::const_iterator begin, typename String_type::const_iterator end)
 
template<class String_type >
String_type get_str_ (typename String_type::const_iterator begin, typename String_type::const_iterator end)
 
std::string get_str (std::string::const_iterator begin, std::string::const_iterator end)
 
std::wstring get_str (std::wstring::const_iterator begin, std::wstring::const_iterator end)
 
template<class String_type , class Iter_type >
String_type get_str (Iter_type begin, Iter_type end)
 
template<typename Iter_type >
void throw_error (spirit_namespace::position_iterator< Iter_type > i, const std::string &reason)
 
template<typename Iter_type >
void throw_error (Iter_type i, const std::string &reason)
 
template<class Iter_type , class Value_type >
void add_posn_iter_and_read_range_or_throw (Iter_type begin, Iter_type end, Value_type &value)
 
template<class Iter_type , class Value_type >
Iter_type read_range_or_throw (Iter_type begin, Iter_type end, Value_type &value)
 
template<class Iter_type , class Value_type >
bool read_range (Iter_type &begin, Iter_type end, Value_type &value)
 
template<class String_type , class Value_type >
bool read_string (const String_type &s, Value_type &value)
 
template<class String_type , class Value_type >
void read_string_or_throw (const String_type &s, Value_type &value)
 
template<class Istream_type , class Value_type >
bool read_stream (Istream_type &is, Value_type &value)
 
template<class Istream_type , class Value_type >
void read_stream_or_throw (Istream_type &is, Value_type &value)
 
static std::string value_type_to_string (const Value_type vtype)
 
bool operator== (const Null &, const Null &)
 
template<class String_type >
String_type to_str (const char *c_str)
 
char to_hex_char (unsigned int c)
 
template<class String_type >
String_type non_printable_to_string (unsigned int c)
 
template<typename Char_type , class String_type >
bool add_esc_char (Char_type c, String_type &s)
 
template<class String_type >
String_type add_esc_chars (const String_type &s, bool raw_utf8, bool esc_nonascii)
 
template<class Value_type , class Ostream_type >
void write_stream (const Value_type &value, Ostream_type &os, int options=none, unsigned int precision_of_doubles=0)
 
template<class Value_type >
Value_type::String_type write_string (const Value_type &value, int options=none, unsigned int precision_of_doubles=0)
 

Variables

const spirit_namespace::int_parser< boost::int64_tint64_p = spirit_namespace::int_parser < boost::int64_t >()
 
const spirit_namespace::uint_parser< boost::uint64_tuint64_p = spirit_namespace::uint_parser< boost::uint64_t >()
 

Typedef Documentation

◆ Array

◆ Config

typedef Config_vector< std::string > json_spirit::Config

◆ Object

◆ Pair

◆ Value

Enumeration Type Documentation

◆ Output_options

Enumerator
none 
pretty_print 
raw_utf8 
remove_trailing_zeros 
single_line_arrays 
always_escape_nonascii 

◆ Value_type

Enumerator
obj_type 
array_type 
str_type 
bool_type 
int_type 
real_type 
null_type 

Function Documentation

◆ add_esc_char()

template<typename Char_type , class String_type >
bool json_spirit::add_esc_char ( Char_type  c,
String_type &  s 
)

◆ add_esc_chars()

template<class String_type >
String_type json_spirit::add_esc_chars ( const String_type &  s,
bool  raw_utf8,
bool  esc_nonascii 
)

◆ add_posn_iter_and_read_range_or_throw()

template<class Iter_type , class Value_type >
void json_spirit::add_posn_iter_and_read_range_or_throw ( Iter_type  begin,
Iter_type  end,
Value_type value 
)

◆ append_esc_char_and_incr_iter()

template<class String_type >
void json_spirit::append_esc_char_and_incr_iter ( String_type &  s,
typename String_type::const_iterator &  begin,
typename String_type::const_iterator  end 
)

◆ get_str() [1/3]

std::string json_spirit::get_str ( std::string::const_iterator  begin,
std::string::const_iterator  end 
)
inline

◆ get_str() [2/3]

std::wstring json_spirit::get_str ( std::wstring::const_iterator  begin,
std::wstring::const_iterator  end 
)
inline

◆ get_str() [3/3]

template<class String_type , class Iter_type >
String_type json_spirit::get_str ( Iter_type  begin,
Iter_type  end 
)

◆ get_str_()

template<class String_type >
String_type json_spirit::get_str_ ( typename String_type::const_iterator  begin,
typename String_type::const_iterator  end 
)

◆ hex_str_to_char()

template<class Char_type , class Iter_type >
Char_type json_spirit::hex_str_to_char ( Iter_type &  begin)

◆ hex_to_num()

template<class Char_type >
Char_type json_spirit::hex_to_num ( const Char_type  c)

◆ is_eq()

template<class Iter_type >
bool json_spirit::is_eq ( Iter_type  first,
Iter_type  last,
const char *  c_str 
)

◆ non_printable_to_string()

template<class String_type >
String_type json_spirit::non_printable_to_string ( unsigned int  c)

◆ operator==()

bool json_spirit::operator== ( const Null ,
const Null  
)
inline

◆ read_range()

template<class Iter_type , class Value_type >
bool json_spirit::read_range ( Iter_type &  begin,
Iter_type  end,
Value_type value 
)

◆ read_range_or_throw()

template<class Iter_type , class Value_type >
Iter_type json_spirit::read_range_or_throw ( Iter_type  begin,
Iter_type  end,
Value_type value 
)

◆ read_stream()

template<class Istream_type , class Value_type >
bool json_spirit::read_stream ( Istream_type &  is,
Value_type value 
)

◆ read_stream_or_throw()

template<class Istream_type , class Value_type >
void json_spirit::read_stream_or_throw ( Istream_type &  is,
Value_type value 
)

◆ read_string()

template<class String_type , class Value_type >
bool json_spirit::read_string ( const String_type &  s,
Value_type value 
)

◆ read_string_or_throw()

template<class String_type , class Value_type >
void json_spirit::read_string_or_throw ( const String_type &  s,
Value_type value 
)

◆ substitute_esc_chars()

template<class String_type >
String_type json_spirit::substitute_esc_chars ( typename String_type::const_iterator  begin,
typename String_type::const_iterator  end 
)

◆ throw_error() [1/2]

template<typename Iter_type >
void json_spirit::throw_error ( spirit_namespace::position_iterator< Iter_type >  i,
const std::string &  reason 
)

◆ throw_error() [2/2]

template<typename Iter_type >
void json_spirit::throw_error ( Iter_type  i,
const std::string &  reason 
)

◆ to_hex_char()

char json_spirit::to_hex_char ( unsigned int  c)
inline

◆ to_str()

template<class String_type >
String_type json_spirit::to_str ( const char *  c_str)

◆ unicode_str_to_char()

template<class Char_type , class Iter_type >
Char_type json_spirit::unicode_str_to_char ( Iter_type &  begin)

◆ value_type_to_string()

static std::string json_spirit::value_type_to_string ( const Value_type  vtype)
inlinestatic

◆ write_stream()

template<class Value_type , class Ostream_type >
void json_spirit::write_stream ( const Value_type value,
Ostream_type &  os,
int  options = none,
unsigned int  precision_of_doubles = 0 
)

◆ write_string()

template<class Value_type >
Value_type::String_type json_spirit::write_string ( const Value_type value,
int  options = none,
unsigned int  precision_of_doubles = 0 
)

Variable Documentation

◆ int64_p

const spirit_namespace::int_parser< boost::int64_t > json_spirit::int64_p = spirit_namespace::int_parser < boost::int64_t >()

◆ uint64_p

const spirit_namespace::uint_parser< boost::uint64_t > json_spirit::uint64_p = spirit_namespace::uint_parser< boost::uint64_t >()