JSON data parser for streams.
More...
#include <StreamReader.h>
|
void | parseNumber (const std::string &value) |
|
bool | isWhiteSpace (char current) |
| Check to see if the specified character is white space. More...
|
|
bool | isNumeric (char current) |
| Check to see if current character represents a numeric value. More...
|
|
Handler::Ptr | handler |
| The call-back handler to send data event notifications to. More...
|
|
static const std::string | null |
| A constant representing a JSON null value. More...
|
|
static const std::string | True |
| A constant representing a JSON true value. More...
|
|
static const std::string | False |
| A constant representing a JSON false value. More...
|
|
JSON data parser for streams.
- Date
- Created 2013/05/02 20:41
- Copyright
- Copyright © 2013, Sans Pareil Technologies, Inc.
- Author
- Rakesh
- Version
- Id
- StreamReader.h 5669 2014-10-25 13:43:46Z rakesh
Create a new parser instance using the specified call-back handler to send JSON data event notifications to.
Note: It is possible to specify an empty
handler, in which case the parser will consume the JSON data without producing any output.
- Parameters
-
callback | The call-back handler that will receive data events. |
void spt::json::io::StreamReader::read |
( |
std::istream & |
stream | ) |
|
Parses the data from the specified stream and sends data event notifications to the call-back handler.
- Parameters
-
stream | The stream from which data is to be parsed. |
- Exceptions
-
std::runtime_error | If JSON is invalid. |
The documentation for this class was generated from the following file: