Flow123d  DF_patch_fe_data_tables-586fb30
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
json_spirit Namespace Reference

Namespaces

 internal_
 

Classes

struct  Error_position
 
class  Semantic_actions
 
class  Json_grammer
 
struct  Multi_pass_iters
 
class  Stream_reader
 
class  Stream_reader_thrower
 
struct  Null
 
class  Value_impl
 
struct  Pair_impl
 
struct  Config_map
 
class  Generator
 

Typedefs

typedef Config_map< std::string > mConfig
 
typedef mConfig::Value_type mValue
 
typedef mConfig::Object_type mObject
 
typedef mConfig::Array_type mArray
 

Enumerations

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

Functions

bool read (const std::string &s, mValue &value)
 
bool read (std::istream &is, mValue &value)
 
bool read (std::string::const_iterator &begin, std::string::const_iterator end, mValue &value)
 
void read_or_throw (const std::string &s, mValue &value)
 
void read_or_throw (std::istream &is, mValue &value)
 
void read_or_throw (std::string::const_iterator &begin, std::string::const_iterator end, mValue &value)
 
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)
 
template<class Obj_t , class Map_t >
void obj_to_map (const Obj_t &obj, Map_t &mp_obj)
 
template<class Obj_t , class Map_t >
void map_to_obj (const Map_t &mp_obj, Obj_t &obj)
 
template<class Object_type , class String_type >
const Object_type::value_type::Value_type & find_value (const Object_type &obj, const String_type &name)
 
bool operator== (const Null &, const Null &)
 
template<class String_type >
String_type to_str (const char *c_str)
 
void write (const mValue &value, std::ostream &os, unsigned int options=0)
 
std::string write (const mValue &value, unsigned int options=0)
 
void write_formatted (const mValue &value, std::ostream &os)
 
std::string write_formatted (const mValue &value)
 
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)
 
template<class Ostream >
void append_double (Ostream &os, const double d, const int precision)
 
template<class String_type >
void erase_and_extract_exponent (String_type &str, String_type &exp)
 
template<class String_type >
String_type::size_type find_first_non_zero (const String_type &str)
 
template<class String_type >
void remove_trailing (String_type &str)
 
template<class Value_type , class Ostream_type >
void write_stream (const Value_type &value, Ostream_type &os, unsigned int options=0)
 
template<class Value_type >
Value_type::String_type write_string (const Value_type &value, unsigned int options=0)
 

Variables

const spirit_namespace::int_parser< boost::int64_t > int64_p = spirit_namespace::int_parser < boost::int64_t >()
 
const spirit_namespace::uint_parser< boost::uint64_t > uint64_p = spirit_namespace::uint_parser< boost::uint64_t >()
 

Typedef Documentation

◆ mArray

Definition at line 232 of file json_spirit_value.h.

◆ mConfig

typedef Config_map< std::string > json_spirit::mConfig

Definition at line 228 of file json_spirit_value.h.

◆ mObject

Definition at line 231 of file json_spirit_value.h.

◆ mValue

Definition at line 230 of file json_spirit_value.h.

Enumeration Type Documentation

◆ Output_options

Enumerator
pretty_print 
raw_utf8 
remove_trailing_zeros 
single_line_arrays 

Definition at line 15 of file json_spirit_writer_options.h.

◆ Value_type

Enumerator
obj_type 
array_type 
str_type 
bool_type 
int_type 
real_type 
null_type 

Definition at line 32 of file json_spirit_value.h.

Function Documentation

◆ add_esc_char()

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

Definition at line 50 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ add_esc_chars()

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

Definition at line 67 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ 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 
)

Definition at line 550 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ append_double()

template<class Ostream >
void json_spirit::append_double ( Ostream &  os,
const double  d,
const int  precision 
)

Definition at line 105 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ 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 
)

Definition at line 89 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ erase_and_extract_exponent()

template<class String_type >
void json_spirit::erase_and_extract_exponent ( String_type &  str,
String_type &  exp 
)

Definition at line 111 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ find_first_non_zero()

template<class String_type >
String_type::size_type json_spirit::find_first_non_zero ( const String_type &  str)

Definition at line 123 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ find_value()

template<class Object_type , class String_type >
const Object_type::value_type::Value_type& json_spirit::find_value ( const Object_type &  obj,
const String_type &  name 
)

Definition at line 49 of file json_spirit_utils.h.

◆ get_str() [1/3]

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

Definition at line 193 of file json_spirit_reader_template.h.

◆ get_str() [2/3]

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

Definition at line 182 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ get_str() [3/3]

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

Definition at line 187 of file json_spirit_reader_template.h.

◆ get_str_()

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

Definition at line 163 of file json_spirit_reader_template.h.

◆ hex_str_to_char()

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

Definition at line 66 of file json_spirit_reader_template.h.

◆ hex_to_num()

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

Definition at line 57 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ is_eq()

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

Definition at line 44 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ map_to_obj()

template<class Obj_t , class Map_t >
void json_spirit::map_to_obj ( const Map_t &  mp_obj,
Obj_t &  obj 
)

Definition at line 30 of file json_spirit_utils.h.

◆ non_printable_to_string()

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

Definition at line 35 of file json_spirit_writer_template.h.

◆ obj_to_map()

template<class Obj_t , class Map_t >
void json_spirit::obj_to_map ( const Obj_t &  obj,
Map_t &  mp_obj 
)

Definition at line 19 of file json_spirit_utils.h.

◆ operator==()

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

Definition at line 249 of file json_spirit_value.h.

◆ read() [1/3]

bool json_spirit::read ( const std::string &  s,
mValue value 
)

Definition at line 76 of file json_spirit_reader.cpp.

Here is the caller graph for this function:

◆ read() [2/3]

bool json_spirit::read ( std::istream &  is,
mValue value 
)

Definition at line 86 of file json_spirit_reader.cpp.

◆ read() [3/3]

bool json_spirit::read ( std::string::const_iterator &  begin,
std::string::const_iterator  end,
mValue value 
)

Definition at line 96 of file json_spirit_reader.cpp.

◆ read_or_throw() [1/3]

void json_spirit::read_or_throw ( const std::string &  s,
mValue value 
)

Definition at line 81 of file json_spirit_reader.cpp.

Here is the caller graph for this function:

◆ read_or_throw() [2/3]

void json_spirit::read_or_throw ( std::istream &  is,
mValue value 
)

Definition at line 91 of file json_spirit_reader.cpp.

◆ read_or_throw() [3/3]

void json_spirit::read_or_throw ( std::string::const_iterator &  begin,
std::string::const_iterator  end,
mValue value 
)

Definition at line 101 of file json_spirit_reader.cpp.

◆ read_range()

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

Definition at line 615 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ 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 
)

Definition at line 588 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ read_stream()

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

Definition at line 656 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ read_stream_or_throw()

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

Definition at line 668 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ read_string()

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

Definition at line 634 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ 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 
)

Definition at line 646 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ remove_trailing()

template<class String_type >
void json_spirit::remove_trailing ( String_type &  str)

Definition at line 139 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ 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 
)

Definition at line 127 of file json_spirit_reader_template.h.

◆ throw_error() [1/2]

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

Definition at line 382 of file json_spirit_reader_template.h.

◆ throw_error() [2/2]

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

Definition at line 376 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

◆ to_hex_char()

char json_spirit::to_hex_char ( unsigned int  c)
inline

Definition at line 23 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ to_str()

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

Definition at line 507 of file json_spirit_value.h.

◆ unicode_str_to_char()

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

Definition at line 75 of file json_spirit_reader_template.h.

◆ write() [1/2]

void json_spirit::write ( const mValue value,
std::ostream &  os,
unsigned int  options = 0 
)

Definition at line 33 of file json_spirit_writer.cpp.

Here is the caller graph for this function:

◆ write() [2/2]

std::string json_spirit::write ( const mValue value,
unsigned int  options = 0 
)

Definition at line 38 of file json_spirit_writer.cpp.

◆ write_formatted() [1/2]

std::string json_spirit::write_formatted ( const mValue value)

Definition at line 48 of file json_spirit_writer.cpp.

◆ write_formatted() [2/2]

void json_spirit::write_formatted ( const mValue value,
std::ostream &  os 
)

Definition at line 43 of file json_spirit_writer.cpp.

◆ write_stream()

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

Definition at line 360 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

◆ write_string()

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

Definition at line 371 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

Variable Documentation

◆ int64_p

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

Definition at line 40 of file json_spirit_reader_template.h.

◆ uint64_p

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

Definition at line 41 of file json_spirit_reader_template.h.