Open Lighting Architecture: ola::http::JsonValue Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::http::JsonValue Class Referenceabstract

## Detailed Description

The base class for JSON values.

Inheritance diagram for ola::http::JsonValue:

## 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.

## Member Function Documentation

## ◆ Accept() [1/2]

virtual void ola::web::JsonValue::Accept | ( | JsonValueConstVisitorInterface * | visitor | ) | const
| pure virtual

The Accept (const) method for the visitor pattern.

This can be used to traverse the Json Tree in a type-safe manner.

## ◆ Accept() [2/2]

virtual void ola::web::JsonValue::Accept | ( | JsonValueVisitorInterface * | visitor | ) |
| pure virtual

The Accept method for the visitor pattern.

This can be used to traverse the Json Tree in a type-safe manner.

## ◆ operator==()

virtual bool ola::web::JsonValue::operator== | ( | const JsonValue & | other | ) | const
| pure virtual

Equality operator.

This implements equality as defined in section 3.6 of the JSON Schema Core document.

The documentation for this class was generated from the following files:

- include/ola/web/Json.h
- common/web/Json.cpp