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

Public Member Functions

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

Data Fields

std::map< std::string, std::shared_ptr< Value > > value
 
- Data Fields inherited from json::Value
Node::Type type
 

Detailed Description

Definition at line 130 of file JsonParser.cpp.

Constructor & Destructor Documentation

◆ Object()

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

Definition at line 132 of file JsonParser.cpp.

132 : Value(Node::Type::object)
133 {
134 matchCharacter(stream, '{');
135 skipWhitespace(stream);
136
137 while (stream.peek() != '}') {
138 if (!value.empty()) {
139 matchCharacter(stream, ',');
140 skipWhitespace(stream);
141 }
142
143 auto key = String(stream);
144 skipWhitespace(stream);
145 matchCharacter(stream, ':');
146 skipWhitespace(stream);
147 value[key.value] = readValue(stream);
148 skipWhitespace(stream);
149 }
150
151 stream.get();
152 }

Field Documentation

◆ value

std::map<std::string, std::shared_ptr<Value> > json::Object::value

Definition at line 154 of file JsonParser.cpp.


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