HoviTron Video Pipeline
Public Member Functions | Data Fields
json::String Struct Reference
Inheritance diagram for json::String:
json::Value

Public Member Functions

 String (std::istream &stream)
 
- Public Member Functions inherited from json::Value
 Value (Node::Type type)
 

Data Fields

std::string value
 
- Data Fields inherited from json::Value
Node::Type type
 

Detailed Description

Definition at line 100 of file JsonParser.cpp.

Constructor & Destructor Documentation

◆ String()

json::String::String ( std::istream &  stream)
inline

Definition at line 103 of file JsonParser.cpp.

103 : Value(Node::Type::string)
104 {
105 matchCharacter(stream, '"');
106 auto ch = stream.get();
107
108 while (ch != '"') {
109 if (ch == '\\') {
110 throw std::logic_error("JSON parser: string escaping not implemented");
111 }
112 value.push_back(static_cast<char>(ch));
113 ch = stream.get();
114 }
115 }

Field Documentation

◆ value

std::string json::String::value

Definition at line 117 of file JsonParser.cpp.


The documentation for this struct was generated from the following file: