Stan  2.10.0
probability, sampling & optimization
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:
18 
20 
24  virtual void start_text() { }
25 
29  virtual void end_text() { }
30 
34  virtual void start_array() { }
35 
39  virtual void end_array() { }
40 
44  virtual void start_object() { }
45 
49  virtual void end_object() { }
50 
54  virtual void null() { }
55 
61  virtual void boolean(bool p) { }
62 
69  virtual void number_double(double x) { }
70 
76  // NOLINTNEXTLINE(runtime/int)
77  virtual void number_long(long n) { }
78 
84  // NOLINTNEXTLINE(runtime/int)
85  virtual void number_unsigned_long(unsigned long n) { }
86 
92  virtual void string(const std::string& s) { }
93 
99  virtual void key(const std::string& s) { }
100  };
101 
102  }
103 }
104 
105 #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.
Probability, optimization and sampling library.
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–2016, Stan Development Team.