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
 

Detailed Description

Definition at line 36 of file JsonObject.h.

Constructor & Destructor Documentation

◆ JsonObject()

Definition at line 27 of file JsonObject.cpp.

+ Here is the caller graph for this function:

Member Function Documentation

◆ add() [1/3]

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

Definition at line 60 of file JsonObject.cpp.

+ Here is the call graph for this function:

◆ add() [2/3]

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

Definition at line 45 of file JsonObject.cpp.

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

◆ add() [3/3]

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

Definition at line 55 of file JsonObject.cpp.

+ Here is the call graph for this function:

◆ clear()

void clear ( )

Definition at line 116 of file JsonObject.cpp.

◆ clone()

JsonDataPtr clone ( )
overridevirtual

Implements JsonData.

Definition at line 127 of file JsonObject.cpp.

◆ get()

JsonDataPtr get ( const std::string &  key)

Definition at line 97 of file JsonObject.cpp.

◆ getKeys()

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

Definition at line 137 of file JsonObject.cpp.

+ Here is the call graph for this function:

◆ remove()

bool remove ( const std::string &  key)

Definition at line 85 of file JsonObject.cpp.

◆ set() [1/2]

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

Definition at line 65 of file JsonObject.cpp.

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

◆ set() [2/2]

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

Definition at line 79 of file JsonObject.cpp.

+ Here is the call graph for this function:

◆ size()

uint size ( )

Definition at line 111 of file JsonObject.cpp.

◆ toSharedPtr()

JsonObjectPtr toSharedPtr ( ) const

Definition at line 121 of file JsonObject.cpp.

+ Here is the call graph for this function:

◆ writeJson()

void writeJson ( const JsonWriterPtr writer)
overridevirtual

Implements JsonData.

Definition at line 31 of file JsonObject.cpp.

Friends And Related Function Documentation

◆ JPathNavigator

friend class JPathNavigator
friend

Definition at line 38 of file JsonObject.h.


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