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 106 of file error.h.
typedef bool(ParseResult::* ParseResult::BooleanType) () const |
! Unspecified boolean type
Definition at line 108 of file error.h.
ParseResult::ParseResult |
( |
| ) |
|
|
inline |
Default constructor, no error.
Definition at line 111 of file error.h.
Constructor to set an error.
Definition at line 113 of file error.h.
void ParseResult::Clear |
( |
| ) |
|
|
inline |
Reset error code.
Definition at line 134 of file error.h.
Get the error code.
Definition at line 116 of file error.h.
bool ParseResult::IsError |
( |
| ) |
const |
|
inline |
Whether the result is an error.
Definition at line 123 of file error.h.
size_t ParseResult::Offset |
( |
| ) |
const |
|
inline |
Explicit conversion to bool
, returns true
, iff !IsError().
Definition at line 121 of file error.h.
bool ParseResult::operator!= |
( |
const ParseResult & |
that | ) |
const |
|
inline |
bool ParseResult::operator== |
( |
const ParseResult & |
that | ) |
const |
|
inline |
Update error code and offset.
Definition at line 136 of file error.h.
size_t ParseResult::offset_ |
|
private |
The documentation for this struct was generated from the following file: