Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
picojson::default_parse_context Class Reference
Collaboration diagram for picojson::default_parse_context:

Public Member Functions

 default_parse_context (value *out)
 
bool set_null ()
 
bool set_bool (bool b)
 
bool set_number (double f)
 
template<typename Iter >
bool parse_string (input< Iter > &in)
 
bool parse_array_start ()
 
template<typename Iter >
bool parse_array_item (input< Iter > &in, size_t)
 
bool parse_array_stop (size_t)
 
bool parse_object_start ()
 
template<typename Iter >
bool parse_object_item (input< Iter > &in, const std::string &key)
 

Protected Attributes

valueout_
 

Detailed Description

Definition at line 920 of file spec_test_generator.cpp.

Constructor & Destructor Documentation

◆ default_parse_context()

picojson::default_parse_context::default_parse_context ( value * out)
inline

Definition at line 925 of file spec_test_generator.cpp.

Member Function Documentation

◆ parse_array_item()

template<typename Iter >
bool picojson::default_parse_context::parse_array_item ( input< Iter > & in,
size_t  )
inline

Definition at line 954 of file spec_test_generator.cpp.

954 {
955 array& a = out_->get<array>();
956 a.push_back(value());
957 default_parse_context ctx(&a.back());
958 return _parse(ctx, in);
959 }
const T & get() const
value::array array
bool _parse(Context &ctx, input< Iter > &in)
#define value
Definition pkcs11.h:157
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
Here is the call graph for this function:

◆ parse_array_start()

bool picojson::default_parse_context::parse_array_start ( )
inline

Definition at line 949 of file spec_test_generator.cpp.

949 {
950 *out_ = value(array_type, false);
951 return true;
952 }

◆ parse_array_stop()

bool picojson::default_parse_context::parse_array_stop ( size_t )
inline

Definition at line 960 of file spec_test_generator.cpp.

960{ return true; }

◆ parse_object_item()

template<typename Iter >
bool picojson::default_parse_context::parse_object_item ( input< Iter > & in,
const std::string & key )
inline

Definition at line 966 of file spec_test_generator.cpp.

966 {
967 object& o = out_->get<object>();
968 default_parse_context ctx(&o[key]);
969 return _parse(ctx, in);
970 }
Here is the call graph for this function:

◆ parse_object_start()

bool picojson::default_parse_context::parse_object_start ( )
inline

Definition at line 961 of file spec_test_generator.cpp.

961 {
962 *out_ = value(object_type, false);
963 return true;
964 }

◆ parse_string()

template<typename Iter >
bool picojson::default_parse_context::parse_string ( input< Iter > & in)
inline

Definition at line 945 of file spec_test_generator.cpp.

945 {
946 *out_ = value(string_type, false);
947 return _parse_string(out_->get<std::string>(), in);
948 }
bool _parse_string(String &out, input< Iter > &in)
Here is the call graph for this function:

◆ set_bool()

bool picojson::default_parse_context::set_bool ( bool b)
inline

Definition at line 930 of file spec_test_generator.cpp.

930 {
931 *out_ = value(b);
932 return true;
933 }

◆ set_null()

bool picojson::default_parse_context::set_null ( )
inline

Definition at line 926 of file spec_test_generator.cpp.

926 {
927 *out_ = value();
928 return true;
929 }

◆ set_number()

bool picojson::default_parse_context::set_number ( double f)
inline

Definition at line 940 of file spec_test_generator.cpp.

940 {
941 *out_ = value(f);
942 return true;
943 }

Member Data Documentation

◆ out_

value* picojson::default_parse_context::out_
protected

Definition at line 922 of file spec_test_generator.cpp.


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