oos::generic_json_parser< T > Class Template Reference

An generic json parser base class. More...

#include <generic_json_parser.hpp>

Protected Member Functions

 generic_json_parser (T *h)
 
void parse_json (std::istream &in)
 Parse the json input stream. More...
 

Detailed Description

template<class T>
class oos::generic_json_parser< T >

An generic json parser base class.

Template Parameters
TThe concrete parser class

This class implements a generic json parser base class. It parses an json input stream and for each json value type a method of parser class T is called. The parser class decides what it will do with the given information.

Constructor & Destructor Documentation

template<class T>
oos::generic_json_parser< T >::generic_json_parser ( T *  h)
inlineprotected

Creates a new generic_json_parser for concrete parser h.

Parameters
hThe concrete parser.

Member Function Documentation

template<class T >
void oos::generic_json_parser< T >::parse_json ( std::istream &  in)
protected

Parse the json input stream.

Parse the json input stream and call the appropiate callbacks interally.

Parameters
inThe json input stream

The documentation for this class was generated from the following file:
  • json/generic_json_parser.hpp