Open Lighting Architecture  0.9.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::web::JsonString Class Reference

Detailed Description

A string value.

Inheritance diagram for ola::web::JsonString:
ola::web::JsonLeafValue ola::web::JsonValue

Public Member Functions

 JsonString (const std::string &value)
 Create a new JsonString.
bool operator== (const JsonValue &other) const
 Equality operator.
const std::string & Value () const
 Return the string value.
void Accept (JsonValueVisitorInterface *visitor)
 The Accept method for the visitor pattern.
void Accept (JsonValueConstVisitorInterface *visitor) const
 The Accept (const) method for the visitor pattern.
JsonValueClone () const
 Make a copy of this JsonValue.

Constructor & Destructor Documentation

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

Create a new JsonString.

Parameters
valuethe string to use.

Member Function Documentation

void ola::web::JsonString::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::JsonString::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::JsonString::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: