Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
json_handler.hpp
Go to the documentation of this file.
1 #ifndef STAN__IO__JSON__JSON_HANDLER_HPP
2 #define STAN__IO__JSON__JSON_HANDLER_HPP
3 
4 #include <string>
5 
6 namespace stan {
7 
8  namespace json {
9 
15  class json_handler {
16  public:
17 
19 
21 
25  virtual void start_text() { }
26 
30  virtual void end_text() { }
31 
35  virtual void start_array() { }
36 
40  virtual void end_array() { }
41 
45  virtual void start_object() { }
46 
50  virtual void end_object() { }
51 
55  virtual void null() { }
56 
62  virtual void boolean(bool p) { }
63 
70  virtual void number_double(double x) { }
71 
77  virtual void number_long(long n) { }
78 
84  virtual void number_unsigned_long(unsigned long n) { }
85 
91  virtual void string(const std::string& s) { }
92 
98  virtual void key(const std::string& s) { }
99  };
100 
101  }
102 }
103 
104 #endif
virtual void boolean(bool p)
Handle the boolean literal value of the specified polarity.
virtual void number_double(double x)
Handle a the specified double-precision floating point value.
Abstract base class for JSON handlers.
virtual void end_array()
Handle the end of an array.
virtual void null()
Handle the null literal value.
virtual void number_unsigned_long(unsigned long n)
Handle a the specified unsigned long integer value.
virtual void key(const std::string &s)
Handle the specified object key.
virtual void end_text()
Handle the the end of the text.
virtual void string(const std::string &s)
Handle the specified string value.
virtual void start_object()
Handle the start of an object.
virtual void start_array()
Handle the start of an array.
virtual void start_text()
Handle the the start of the text.
virtual void end_object()
Handle the end of an object.
virtual void number_long(long n)
Handle a the specified long integer value.

     [ Stan Home Page ] © 2011–2014, Stan Development Team.