|
Protected Types inherited from LookaheadParserHandler |
enum | LookaheadParsingState {
kInit
, kError
, kHasNull
, kHasBool
,
kHasNumber
, kHasString
, kHasKey
, kEnteringObject
,
kExitingObject
, kEnteringArray
, kExitingArray
} |
|
Protected Attributes inherited from LookaheadParserHandler |
Value | v_ |
|
LookaheadParsingState | st_ |
|
Reader | r_ |
|
InsituStringStream | ss_ |
|
Static Protected Attributes inherited from LookaheadParserHandler |
static const int | parseFlags = kParseDefaultFlags | kParseInsituFlag |
|
Definition at line 101 of file lookaheadparser.cpp.
◆ LookaheadParser()
LookaheadParser::LookaheadParser |
( |
char * | str | ) |
|
|
inline |
◆ EnterArray()
bool LookaheadParser::EnterArray |
( |
| ) |
|
Definition at line 137 of file lookaheadparser.cpp.
137 {
140 return false;
141 }
142
144 return true;
145}
LookaheadParsingState st_
◆ EnterObject()
bool LookaheadParser::EnterObject |
( |
| ) |
|
◆ GetBool()
bool LookaheadParser::GetBool |
( |
| ) |
|
Definition at line 199 of file lookaheadparser.cpp.
199 {
202 return false;
203 }
204
205 bool result =
v_.GetBool();
207 return result;
208}
◆ GetDouble()
double LookaheadParser::GetDouble |
( |
| ) |
|
Definition at line 188 of file lookaheadparser.cpp.
188 {
191 return 0.;
192 }
193
194 double result =
v_.GetDouble();
196 return result;
197}
◆ GetInt()
int LookaheadParser::GetInt |
( |
| ) |
|
Definition at line 177 of file lookaheadparser.cpp.
177 {
180 return 0;
181 }
182
183 int result =
v_.GetInt();
185 return result;
186}
◆ GetNull()
void LookaheadParser::GetNull |
( |
| ) |
|
◆ GetString()
const char * LookaheadParser::GetString |
( |
| ) |
|
Definition at line 219 of file lookaheadparser.cpp.
219 {
222 return 0;
223 }
224
225 const char* result =
v_.GetString();
227 return result;
228}
◆ IsValid()
bool LookaheadParser::IsValid |
( |
| ) |
|
|
inline |
◆ NextArrayValue()
bool LookaheadParser::NextArrayValue |
( |
| ) |
|
Definition at line 163 of file lookaheadparser.cpp.
163 {
166 return false;
167 }
168
171 return false;
172 }
173
174 return true;
175}
◆ NextObjectKey()
const char * LookaheadParser::NextObjectKey |
( |
| ) |
|
Definition at line 147 of file lookaheadparser.cpp.
147 {
149 const char* result =
v_.GetString();
151 return result;
152 }
153
156 return 0;
157 }
158
160 return 0;
161}
◆ PeekType()
int LookaheadParser::PeekType |
( |
| ) |
|
◆ PeekValue()
Value * LookaheadParser::PeekValue |
( |
| ) |
|
◆ SkipArray()
void LookaheadParser::SkipArray |
( |
| ) |
|
◆ SkipObject()
void LookaheadParser::SkipObject |
( |
| ) |
|
◆ SkipOut()
void LookaheadParser::SkipOut |
( |
int | depth | ) |
|
|
protected |
Definition at line 230 of file lookaheadparser.cpp.
230 {
231 do {
233 ++depth;
234 }
236 --depth;
237 }
239 return;
240 }
241
243 }
244 while (depth > 0);
245}
◆ SkipValue()
void LookaheadParser::SkipValue |
( |
| ) |
|
The documentation for this class was generated from the following file: