Pyrogenesis trunk
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
json_spirit::Generator< Value_type, Ostream_type > Class Template Reference

#include <json_spirit_writer_template.h>

Public Member Functions

 Generator (const Value_type &value, Ostream_type &os, int options, unsigned int precision_of_doubles)
 

Private Types

typedef Value_type::Config_type Config_type
 
typedef Config_type::String_type String_type
 
typedef Config_type::Object_type Object_type
 
typedef Config_type::Array_type Array_type
 
typedef String_type::value_type Char_type
 
typedef Object_type::value_type Obj_member_type
 

Private Member Functions

void output (const Value_type &value)
 
void output (const Object_type &obj)
 
void output (const Obj_member_type &member)
 
void output_int (const Value_type &value)
 
void output (const String_type &s)
 
void output (bool b)
 
void output (double d)
 
template<class Iter >
void output_composite_item (Iter i, Iter last)
 
void output (const Array_type &arr)
 
template<class T >
void output_array_or_obj (const T &t, Char_type start_char, Char_type end_char)
 
void indent ()
 
void space ()
 
void new_line ()
 
Generatoroperator= (const Generator &)
 

Static Private Member Functions

static bool contains_composite_elements (const Array_type &arr)
 

Private Attributes

Ostream_type & os_
 
int indentation_level_
 
bool pretty_
 
bool raw_utf8_
 
bool esc_nonascii_
 
bool single_line_arrays_
 
int precision_of_doubles_
 
boost::io::basic_ios_all_saver< Char_typeios_saver_
 

Member Typedef Documentation

◆ Array_type

template<class Value_type , class Ostream_type >
typedef Config_type::Array_type json_spirit::Generator< Value_type, Ostream_type >::Array_type
private

◆ Char_type

template<class Value_type , class Ostream_type >
typedef String_type::value_type json_spirit::Generator< Value_type, Ostream_type >::Char_type
private

◆ Config_type

template<class Value_type , class Ostream_type >
typedef Value_type::Config_type json_spirit::Generator< Value_type, Ostream_type >::Config_type
private

◆ Obj_member_type

template<class Value_type , class Ostream_type >
typedef Object_type::value_type json_spirit::Generator< Value_type, Ostream_type >::Obj_member_type
private

◆ Object_type

template<class Value_type , class Ostream_type >
typedef Config_type::Object_type json_spirit::Generator< Value_type, Ostream_type >::Object_type
private

◆ String_type

template<class Value_type , class Ostream_type >
typedef Config_type::String_type json_spirit::Generator< Value_type, Ostream_type >::String_type
private

Constructor & Destructor Documentation

◆ Generator()

template<class Value_type , class Ostream_type >
json_spirit::Generator< Value_type, Ostream_type >::Generator ( const Value_type value,
Ostream_type &  os,
int  options,
unsigned int  precision_of_doubles 
)
inline

Member Function Documentation

◆ contains_composite_elements()

template<class Value_type , class Ostream_type >
static bool json_spirit::Generator< Value_type, Ostream_type >::contains_composite_elements ( const Array_type arr)
inlinestaticprivate

◆ indent()

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::indent ( )
inlineprivate

◆ new_line()

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::new_line ( )
inlineprivate

◆ operator=()

template<class Value_type , class Ostream_type >
Generator & json_spirit::Generator< Value_type, Ostream_type >::operator= ( const Generator< Value_type, Ostream_type > &  )
private

◆ output() [1/7]

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output ( bool  b)
inlineprivate

◆ output() [2/7]

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Array_type arr)
inlineprivate

◆ output() [3/7]

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Obj_member_type member)
inlineprivate

◆ output() [4/7]

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Object_type obj)
inlineprivate

◆ output() [5/7]

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output ( const String_type s)
inlineprivate

◆ output() [6/7]

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Value_type value)
inlineprivate

◆ output() [7/7]

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output ( double  d)
inlineprivate

◆ output_array_or_obj()

template<class Value_type , class Ostream_type >
template<class T >
void json_spirit::Generator< Value_type, Ostream_type >::output_array_or_obj ( const T t,
Char_type  start_char,
Char_type  end_char 
)
inlineprivate

◆ output_composite_item()

template<class Value_type , class Ostream_type >
template<class Iter >
void json_spirit::Generator< Value_type, Ostream_type >::output_composite_item ( Iter  i,
Iter  last 
)
inlineprivate

◆ output_int()

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::output_int ( const Value_type value)
inlineprivate

◆ space()

template<class Value_type , class Ostream_type >
void json_spirit::Generator< Value_type, Ostream_type >::space ( )
inlineprivate

Member Data Documentation

◆ esc_nonascii_

template<class Value_type , class Ostream_type >
bool json_spirit::Generator< Value_type, Ostream_type >::esc_nonascii_
private

◆ indentation_level_

template<class Value_type , class Ostream_type >
int json_spirit::Generator< Value_type, Ostream_type >::indentation_level_
private

◆ ios_saver_

template<class Value_type , class Ostream_type >
boost::io::basic_ios_all_saver< Char_type > json_spirit::Generator< Value_type, Ostream_type >::ios_saver_
private

◆ os_

template<class Value_type , class Ostream_type >
Ostream_type& json_spirit::Generator< Value_type, Ostream_type >::os_
private

◆ precision_of_doubles_

template<class Value_type , class Ostream_type >
int json_spirit::Generator< Value_type, Ostream_type >::precision_of_doubles_
private

◆ pretty_

template<class Value_type , class Ostream_type >
bool json_spirit::Generator< Value_type, Ostream_type >::pretty_
private

◆ raw_utf8_

template<class Value_type , class Ostream_type >
bool json_spirit::Generator< Value_type, Ostream_type >::raw_utf8_
private

◆ single_line_arrays_

template<class Value_type , class Ostream_type >
bool json_spirit::Generator< Value_type, Ostream_type >::single_line_arrays_
private

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