![]() |
Open Lighting Architecture 0.10.9
|
The base class for JSON values.
Public Member Functions | |
| virtual JsonValue * | LookupElement (const JsonPointer &pointer) |
| Locate the JsonValue referred to by the JSON Pointer. | |
| virtual bool | operator== (const JsonValue &other) const =0 |
| Equality operator. | |
| virtual bool | operator!= (const JsonValue &other) const |
| Not-equals operator. | |
| virtual void | Accept (JsonValueVisitorInterface *visitor)=0 |
| The Accept method for the visitor pattern. | |
| virtual void | Accept (JsonValueConstVisitorInterface *visitor) const =0 |
| The Accept (const) method for the visitor pattern. | |
| virtual JsonValue * | Clone () const =0 |
| Make a copy of this JsonValue. | |
|
pure virtual |
The Accept (const) method for the visitor pattern.
This can be used to traverse the Json Tree in a type-safe manner.
Implemented in ola::web::JsonArray, ola::web::JsonBool, ola::web::JsonDouble, ola::web::JsonInt64, ola::web::JsonInt, ola::web::JsonNull, ola::web::JsonObject, ola::web::JsonRawValue, ola::web::JsonString, ola::web::JsonUInt64, and ola::web::JsonUInt.
|
pure virtual |
The Accept method for the visitor pattern.
This can be used to traverse the Json Tree in a type-safe manner.
Implemented in ola::web::JsonArray, ola::web::JsonBool, ola::web::JsonDouble, ola::web::JsonInt64, ola::web::JsonInt, ola::web::JsonNull, ola::web::JsonObject, ola::web::JsonRawValue, ola::web::JsonString, ola::web::JsonUInt64, and ola::web::JsonUInt.
|
pure virtual |
Make a copy of this JsonValue.
Implemented in ola::JsonArray, ola::JsonObject, ola::web::JsonArray, ola::web::JsonBool, ola::web::JsonDouble, ola::web::JsonInt64, ola::web::JsonInt, ola::web::JsonNull, ola::web::JsonObject, ola::web::JsonRawValue, ola::web::JsonString, ola::web::JsonUInt64, and ola::web::JsonUInt.
|
pure virtual |
Equality operator.
This implements equality as defined in section 3.6 of the JSON Schema Core document.
Implemented in ola::web::JsonArray, ola::web::JsonBool, ola::web::JsonDouble, ola::web::JsonInt64, ola::web::JsonInt, ola::web::JsonNull, ola::web::JsonObject, ola::web::JsonRawValue, ola::web::JsonString, ola::web::JsonUInt64, and ola::web::JsonUInt.