CppSerialization 1.0.6.0
C++ Serialization Library
Loading...
Searching...
No Matches
CppSerialization::JSON::Parser Class Reference

JSON parser. More...

#include <parser.h>

Public Member Functions

 Parser ()=delete
 Parser (const Parser &)=delete
 Parser (Parser &&)=delete
 ~Parser ()=delete
Parseroperator= (const Parser &)=delete
Parseroperator= (Parser &&)=delete

Static Public Member Functions

template<typename InputStream>
static Document ParseStream (InputStream &stream)
 Parse the input stream.
static Document Parse (const char *source)
 Parse the C-string.
static Document Parse (const char *source, size_t size)
 Parse the C-string with a given size.
static Document Parse (const std::string &source)
 Parse the string.
static Document ParseInPlace (char *source)
 Parse the in-place C-string in mutable mode.

Detailed Description

JSON parser.

JSON parser is used to parse JSON from the given source (stream, string) and create a corresponding DOM document.

Definition at line 22 of file parser.h.

Constructor & Destructor Documentation

◆ Parser() [1/3]

CppSerialization::JSON::Parser::Parser ( )
delete

◆ Parser() [2/3]

CppSerialization::JSON::Parser::Parser ( const Parser & )
delete

◆ Parser() [3/3]

CppSerialization::JSON::Parser::Parser ( Parser && )
delete

◆ ~Parser()

CppSerialization::JSON::Parser::~Parser ( )
delete

Member Function Documentation

◆ operator=() [1/2]

Parser & CppSerialization::JSON::Parser::operator= ( const Parser & )
delete

◆ operator=() [2/2]

Parser & CppSerialization::JSON::Parser::operator= ( Parser && )
delete

◆ Parse() [1/3]

Document CppSerialization::JSON::Parser::Parse ( const char * source)
static

Parse the C-string.

Definition at line 14 of file parser.cpp.

◆ Parse() [2/3]

Document CppSerialization::JSON::Parser::Parse ( const char * source,
size_t size )
static

Parse the C-string with a given size.

Definition at line 20 of file parser.cpp.

◆ Parse() [3/3]

Document CppSerialization::JSON::Parser::Parse ( const std::string & source)
static

Parse the string.

Definition at line 26 of file parser.cpp.

◆ ParseInPlace()

Document CppSerialization::JSON::Parser::ParseInPlace ( char * source)
static

Parse the in-place C-string in mutable mode.

Definition at line 32 of file parser.cpp.

◆ ParseStream()

template<typename InputStream>
Document CppSerialization::JSON::Parser::ParseStream ( InputStream & stream)
inlinestatic

Parse the input stream.

Definition at line 13 of file parser.inl.


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