JsonWriter Class Reference

#include <ArmarXGui/libraries/StructuralJson/JsonWriter.h>

Public Member Functions

void endArray ()
 
void endObject ()
 
bool isId (const std::string &str)
 
 JsonWriter (int indenting=0, const std::string &indentChars=" ", bool jsStyleKeys=false)
 
void startArray ()
 
void startObject ()
 
std::string toString ()
 
void writeKey (const std::string &key)
 
void writeRawValue (const std::string &value)
 

Static Public Member Functions

static std::string Escape (const std::string &str)
 
static std::string EscapeQuote (const std::string &str)
 
static bool IsControlChar (char c)
 

Detailed Description

Definition at line 32 of file JsonWriter.h.

Constructor & Destructor Documentation

◆ JsonWriter()

JsonWriter ( int  indenting = 0,
const std::string &  indentChars = "  ",
bool  jsStyleKeys = false 
)

Definition at line 30 of file JsonWriter.cpp.

Member Function Documentation

◆ endArray()

void endArray ( )

Definition at line 85 of file JsonWriter.cpp.

◆ endObject()

void endObject ( )

Definition at line 44 of file JsonWriter.cpp.

◆ Escape()

std::string Escape ( const std::string &  str)
static

Definition at line 127 of file JsonWriter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EscapeQuote()

std::string EscapeQuote ( const std::string &  str)
static

Definition at line 122 of file JsonWriter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsControlChar()

static bool IsControlChar ( char  c)
inlinestatic

Definition at line 86 of file JsonWriter.h.

+ Here is the caller graph for this function:

◆ isId()

bool isId ( const std::string &  str)

Definition at line 116 of file JsonWriter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startArray()

void startArray ( )

Definition at line 77 of file JsonWriter.cpp.

◆ startObject()

void startObject ( )

Definition at line 35 of file JsonWriter.cpp.

◆ toString()

std::string toString ( )

Definition at line 111 of file JsonWriter.cpp.

◆ writeKey()

void writeKey ( const std::string &  key)

Definition at line 63 of file JsonWriter.cpp.

+ Here is the call graph for this function:

◆ writeRawValue()

void writeRawValue ( const std::string &  value)

Definition at line 104 of file JsonWriter.cpp.

+ Here is the call graph for this function:

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