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

Public Member Functions

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

Data Fields

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

Detailed Description

Definition at line 157 of file JsonParser.cpp.

Constructor & Destructor Documentation

◆ Array()

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

Definition at line 159 of file JsonParser.cpp.

159 : Value(Node::Type::array)
160 {
161 matchCharacter(stream, '[');
162 skipWhitespace(stream);
163
164 if (stream.peek() != ']') {
165 value.push_back(readValue(stream));
166 skipWhitespace(stream);
167
168 while (stream.peek() == ',') {
169 stream.get();
170 value.push_back(readValue(stream));
171 skipWhitespace(stream);
172 }
173 }
174
175 matchCharacter(stream, ']');
176 }

Field Documentation

◆ value

std::vector<std::shared_ptr<Value> > json::Array::value

Definition at line 178 of file JsonParser.cpp.


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