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

Detailed Description

A string value.

Inheritance diagram for ola::web::JsonStringValue:
ola::web::JsonValue

Public Member Functions

 JsonStringValue (const std::string &value)
 Create a new JsonStringValue.
void ToString (std::ostream *output, unsigned int) const
 Output the string representation of this value to an ostream.

Additional Inherited Members

- Protected Member Functions inherited from ola::web::JsonValue
void Indent (std::ostream *output, unsigned int indent) const
 Append the give number of spaces to the output stream.
- Static Protected Attributes inherited from ola::web::JsonValue
static const unsigned int DEFAULT_INDENT = 2
 the default indent level

Constructor & Destructor Documentation

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

Create a new JsonStringValue.

Parameters
valuethe string to use.

Member Function Documentation

void ola::web::JsonStringValue::ToString ( std::ostream *  output,
unsigned  indent 
) const
inlinevirtual

Output the string representation of this value to an ostream.

Parameters
outputthe ostream to output to.
indentthe number of spaces to prepend.

Implements ola::web::JsonValue.


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