CppSerialization  1.0.4.0
C++ Serialization Library
parser.h
Go to the documentation of this file.
1 
9 #ifndef CPPSERIALIZATION_JSON_PARSER_H
10 #define CPPSERIALIZATION_JSON_PARSER_H
11 
12 #include "json.h"
13 
14 namespace CppSerialization {
15 namespace JSON {
16 
18 
22 class Parser
23 {
24 public:
25  Parser() = delete;
26  Parser(const Parser&) = delete;
27  Parser(Parser&&) = delete;
28  ~Parser() = delete;
29 
30  Parser& operator=(const Parser&) = delete;
31  Parser& operator=(Parser&&) = delete;
32 
34  template <typename InputStream>
35  static Document ParseStream(InputStream& stream);
36 
38  static Document Parse(const char* source);
40  static Document Parse(const char* source, size_t size);
42  static Document Parse(const std::string& source);
43 
45  static Document ParseInPlace(char* source);
46 };
47 
48 } // namespace JSON
49 } // namespace CppSerialization
50 
51 #include "parser.inl"
52 
53 #endif // CPPSERIALIZATION_JSON_PARSER_H
static Document ParseInPlace(char *source)
Parse the in-place C-string in mutable mode.
Definition: parser.cpp:32
static Document Parse(const char *source)
Parse the C-string.
Definition: parser.cpp:14
Parser(const Parser &)=delete
static Document ParseStream(InputStream &stream)
Parse the input stream.
Definition: parser.inl:13
Parser & operator=(const Parser &)=delete
Parser & operator=(Parser &&)=delete
JSON C++ Library definition.
C++ Serialization project definitions.
Definition: exceptions.h:14
JSON parser inline implementation.