StructuralJsonParser Class Reference

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

Public Types

enum  TokenType {
  eWhitespace, eOpeningCurlyBracket, eClosingCurlyBracket, eOpeningSquareBracket,
  eClosingSquareBracket, eColon, eComma, eId,
  eString, eNumber, eBoolean, eNull
}
 

Public Member Functions

std::string geterr ()
 
void geterrpos (int &line, int &col)
 
std::string geterrposstr ()
 
std::string getlongerrposstr ()
 
bool iserr ()
 
void parse ()
 
 StructuralJsonParser (const std::string &src, bool acceptSingleValue=true, bool accceptJsStyleKeys=true)
 
 ~StructuralJsonParser ()
 

Static Public Member Functions

static bool DequoteString (std::string str, std::string &res)
 

Public Attributes

JsonDataPtr parsedJson
 

Detailed Description

Definition at line 35 of file StructuralJsonParser.h.

Member Enumeration Documentation

◆ TokenType

enum TokenType
Enumerator
eWhitespace 
eOpeningCurlyBracket 
eClosingCurlyBracket 
eOpeningSquareBracket 
eClosingSquareBracket 
eColon 
eComma 
eId 
eString 
eNumber 
eBoolean 
eNull 

Definition at line 38 of file StructuralJsonParser.h.

Constructor & Destructor Documentation

◆ StructuralJsonParser()

StructuralJsonParser ( const std::string &  src,
bool  acceptSingleValue = true,
bool  accceptJsStyleKeys = true 
)

Definition at line 28 of file StructuralJsonParser.cpp.

◆ ~StructuralJsonParser()

Definition at line 48 of file StructuralJsonParser.cpp.

Member Function Documentation

◆ DequoteString()

bool DequoteString ( std::string  str,
std::string &  res 
)
static

Definition at line 361 of file StructuralJsonParser.cpp.

+ Here is the call graph for this function:

◆ geterr()

std::string geterr ( )

Definition at line 337 of file StructuralJsonParser.cpp.

◆ geterrpos()

void geterrpos ( int &  line,
int &  col 
)

Definition at line 342 of file StructuralJsonParser.cpp.

◆ geterrposstr()

std::string geterrposstr ( )

Definition at line 347 of file StructuralJsonParser.cpp.

+ Here is the call graph for this function:

◆ getlongerrposstr()

std::string getlongerrposstr ( )

Definition at line 354 of file StructuralJsonParser.cpp.

+ Here is the call graph for this function:

◆ iserr()

bool iserr ( )

Definition at line 332 of file StructuralJsonParser.cpp.

+ Here is the caller graph for this function:

◆ parse()

void parse ( )

Definition at line 53 of file StructuralJsonParser.cpp.

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

Member Data Documentation

◆ parsedJson

JsonDataPtr parsedJson

Definition at line 47 of file StructuralJsonParser.h.


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