Version: 8.3.0
vtkJSONParser Class Reference

#include <vtkJSONParser.h>

Inheritance diagram for vtkJSONParser:
Inheritance graph

Data Structures

struct  Info
 

Public Member Functions

 vtkGetStringMacro (FileName)
 
 vtkSetStringMacro (FileName)
 
virtual int Parse (vtkTable *theTable)
 

Static Public Member Functions

static vtkJSONParserNew ()
 

Protected Member Functions

 vtkJSONParser ()
 
 ~vtkJSONParser ()
 

Protected Attributes

char * FileName
 
int LineNumber
 
int ColumnNumber
 
std::vector< InfoCInfoVector
 
FILE * File
 
std::vector< vtkJSONNode * > Nodes
 
vtkJSONNodeCurrentNode
 
vtkJSONMetaNodeMetaNode
 
std::vector< char > ExpectedCharacters
 
bool InsideQuotes
 
bool ParseList
 
bool ParseObjectList
 
bool ShortNamesFilled
 
char * LastString
 
std::vector< const char * > Strings
 
std::vector< const char * > CurrentList
 
std::vector< const char * > ShortNames
 
double LastValue
 

Private Member Functions

 vtkJSONParser (const vtkJSONParser &)
 
void operator= (const vtkJSONParser &)
 
vtkJSONMetaNodeGetMetaNode ()
 
vtkJSONInfoNodeGetInfoNode ()
 
void processOCB ()
 
void processCCB ()
 
void processOSB ()
 
void processCSB ()
 
void processCOMMA ()
 
void processCOLON ()
 
void processENDL ()
 
void processQTS ()
 
void processCharacter (const char ch)
 
void processMetaNode ()
 
void processInfoNode ()
 
void readDoubleValue ()
 
char * getString (long b, long e)
 
void allowsDigits ()
 
bool isDigitsAllowed ()
 
void checkShortName (const char *unit)
 
void finalize (vtkTable *t)
 
void clean ()
 
void throwSimpleException (const char *message)
 
void throwException (const char *message)
 
void throwException (const char *message, int ln, int cn)
 
void throwException (const char *message, int ln)
 

Constructor & Destructor Documentation

vtkJSONParser::vtkJSONParser ( )
protected
vtkJSONParser::~vtkJSONParser ( )
protected

References FileName.

vtkJSONParser::vtkJSONParser ( const vtkJSONParser )
private

Member Function Documentation

static vtkJSONParser* vtkJSONParser::New ( )
static
vtkJSONParser::vtkGetStringMacro ( FileName  )
vtkJSONParser::vtkSetStringMacro ( FileName  )
void vtkJSONParser::operator= ( const vtkJSONParser )
private
vtkJSONMetaNode * vtkJSONParser::GetMetaNode ( )
private

References CurrentNode.

vtkJSONInfoNode * vtkJSONParser::GetInfoNode ( )
private

References CurrentNode.

void vtkJSONParser::processOCB ( )
private
void vtkJSONParser::processCSB ( )
private
void vtkJSONParser::processCOMMA ( )
private
void vtkJSONParser::processCOLON ( )
private
void vtkJSONParser::processENDL ( )
private
void vtkJSONParser::processCharacter ( const char  ch)
private
void vtkJSONParser::processInfoNode ( )
private
void vtkJSONParser::readDoubleValue ( )
private
char * vtkJSONParser::getString ( long  b,
long  e 
)
private

References File.

void vtkJSONParser::allowsDigits ( )
private

References ExpectedCharacters.

bool vtkJSONParser::isDigitsAllowed ( )
private

References ExpectedCharacters.

void vtkJSONParser::checkShortName ( const char *  unit)
private

References LineNumber, and throwException().

void vtkJSONParser::clean ( )
private

References Nodes.

void vtkJSONParser::throwSimpleException ( const char *  message)
private

References clean().

void vtkJSONParser::throwException ( const char *  message)
private
void vtkJSONParser::throwException ( const char *  message,
int  ln,
int  cn 
)
private

References clean(), and FileName.

void vtkJSONParser::throwException ( const char *  message,
int  ln 
)
private

References clean(), and FileName.

Field Documentation

char* vtkJSONParser::FileName
protected
int vtkJSONParser::LineNumber
protected
int vtkJSONParser::ColumnNumber
protected
std::vector<Info> vtkJSONParser::CInfoVector
protected
FILE* vtkJSONParser::File
protected
std::vector<vtkJSONNode*> vtkJSONParser::Nodes
protected
vtkJSONNode* vtkJSONParser::CurrentNode
protected
vtkJSONMetaNode* vtkJSONParser::MetaNode
protected
std::vector<char> vtkJSONParser::ExpectedCharacters
protected
bool vtkJSONParser::InsideQuotes
protected
bool vtkJSONParser::ParseList
protected
bool vtkJSONParser::ParseObjectList
protected
bool vtkJSONParser::ShortNamesFilled
protected
char* vtkJSONParser::LastString
protected
std::vector<const char*> vtkJSONParser::Strings
protected
std::vector<const char*> vtkJSONParser::CurrentList
protected
std::vector<const char*> vtkJSONParser::ShortNames
protected
double vtkJSONParser::LastValue
protected