Result of parsing (wraps ParseErrorCode)
More...
#include <error.h>
Result of parsing (wraps ParseErrorCode)
if (!ok) {
fprintf(stderr,
"JSON parse error: %s (%u)",
exit(EXIT_FAILURE);
}
- See also
- GenericReader::Parse, GenericDocument::Parse
Definition at line 101 of file error.h.
ParseResult::ParseResult |
( |
| ) |
|
|
inline |
Default constructor, no error.
Definition at line 104 of file error.h.
Constructor to set an error.
Definition at line 106 of file error.h.
void ParseResult::Clear |
( |
| ) |
|
|
inline |
Get the error code.
Definition at line 109 of file error.h.
References code_.
bool ParseResult::IsError |
( |
| ) |
const |
|
inline |
size_t ParseResult::Offset |
( |
| ) |
const |
|
inline |
ParseResult::operator bool |
( |
| ) |
const |
|
inline |
bool ParseResult::operator== |
( |
const ParseResult & |
that | ) |
const |
|
inline |
size_t ParseResult::offset_ |
|
private |
The documentation for this struct was generated from the following file: