JsonObject Class Reference

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

+ Inheritance diagram for JsonObject:

Public Member Functions

void add (const std::string &key, const JsonArray &value)
 
void add (const std::string &key, const JsonDataPtr &value)
 
void add (const std::string &key, const JsonValue &value)
 
void clear ()
 
JsonDataPtr clone () override
 
JsonDataPtr get (const std::string &key)
 
std::vector< std::string > getKeys () const
 
 JsonObject ()
 
bool remove (const std::string &key)
 
void set (const std::string &key, const JsonDataPtr &value)
 
void set (const std::string &key, const JsonValue &value)
 
uint size ()
 
JsonObjectPtr toSharedPtr () const
 
void writeJson (const JsonWriterPtr &writer) override
 
- Public Member Functions inherited from JsonData
LexerInfo getLexerEndOffset ()
 
LexerInfo getLexerStartOffset ()
 
 JsonData ()
 
void setLexerEndOffset (LexerInfo lexerEndOffset)
 
void setLexerStartOffset (LexerInfo lexerStartOffset)
 
std::string toJsonString (int indenting=0, const std::string indentChars=" ", bool jsStyleKeys=false)
 
virtual ~JsonData ()=default
 

Friends

class JPathNavigator
 

Constructor & Destructor Documentation

◆ JsonObject()

Member Function Documentation

◆ add() [1/3]

void add ( const std::string & key,
const JsonArray & value )

◆ add() [2/3]

void add ( const std::string & key,
const JsonDataPtr & value )

◆ add() [3/3]

void add ( const std::string & key,
const JsonValue & value )

◆ clear()

void clear ( )

◆ clone()

JsonDataPtr clone ( )
overridevirtual

Implements JsonData.

◆ get()

JsonDataPtr get ( const std::string & key)

◆ getKeys()

std::vector< std::string > getKeys ( ) const

◆ remove()

bool remove ( const std::string & key)

◆ set() [1/2]

void set ( const std::string & key,
const JsonDataPtr & value )

◆ set() [2/2]

void set ( const std::string & key,
const JsonValue & value )

◆ size()

uint size ( )

◆ toSharedPtr()

JsonObjectPtr toSharedPtr ( ) const

◆ writeJson()

void writeJson ( const JsonWriterPtr & writer)
overridevirtual

Implements JsonData.

Friends And Related Symbol Documentation

◆ JPathNavigator

friend class JPathNavigator
friend

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