Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ola::web::JsonRawValue Class Reference

Detailed Description

A raw value, useful if you want to cheat.

Inheritance diagram for ola::web::JsonRawValue:
Inheritance graph
[legend]
Collaboration diagram for ola::web::JsonRawValue:
Collaboration graph
[legend]

Public Member Functions

 JsonRawValue (const std::string &value)
 Create a new JsonRawValue. More...
 
bool operator== (const JsonValue &other) const
 Equality operator. More...
 
void Accept (JsonValueVisitorInterface *visitor)
 The Accept method for the visitor pattern. More...
 
void Accept (JsonValueConstVisitorInterface *visitor) const
 The Accept (const) method for the visitor pattern. More...
 
JsonValueClone () const
 Make a copy of this JsonValue.
 
const std::string & Value () const
 Return the raw value as a string.
 
- Public Member Functions inherited from ola::web::JsonValue
virtual JsonValueLookupElement (const JsonPointer &pointer)
 Locate the JsonValue referred to by the JSON Pointer.
 
virtual bool operator!= (const JsonValue &other) const
 Not-equals operator.
 

Constructor & Destructor Documentation

ola::web::JsonRawValue::JsonRawValue ( const std::string &  value)
inlineexplicit

Create a new JsonRawValue.

Parameters
valuethe raw data to insert.

Member Function Documentation

void ola::web::JsonRawValue::Accept ( JsonValueVisitorInterface visitor)
inlinevirtual

The Accept method for the visitor pattern.

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

Implements ola::web::JsonValue.

void ola::web::JsonRawValue::Accept ( JsonValueConstVisitorInterface visitor) const
inlinevirtual

The Accept (const) method for the visitor pattern.

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

Implements ola::web::JsonValue.

bool ola::web::JsonRawValue::operator== ( const JsonValue other) const
inlinevirtual

Equality operator.

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

Implements ola::web::JsonValue.


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