#include <vtkJSONParser.h>
vtkJSONParser::vtkJSONParser |
( |
| ) |
|
|
protected |
References ColumnNumber, CurrentNode, File, FileName, InsideQuotes, LastString, LastValue, LineNumber, ParseList, ParseObjectList, and ShortNamesFilled.
vtkJSONParser::~vtkJSONParser |
( |
| ) |
|
|
protected |
vtkJSONParser::vtkGetStringMacro |
( |
FileName |
| ) |
|
vtkJSONParser::vtkSetStringMacro |
( |
FileName |
| ) |
|
int vtkJSONParser::Parse |
( |
vtkTable * |
theTable | ) |
|
|
virtual |
References CCB, CInfoVector, clean(), COLON, ColumnNumber, COMMA, CSB, ENDL, ExpectedCharacters, File, FileName, finalize(), isDigitOrDot(), isDigitsAllowed(), OCB, OSB, processCCB(), processCharacter(), processCOLON(), processCOMMA(), processCSB(), processENDL(), processOCB(), processOSB(), processQTS(), QTS, readDoubleValue(), throwException(), and throwSimpleException().
void vtkJSONParser::processOCB |
( |
| ) |
|
|
private |
References addInfo, CCB, CInfoVector, CurrentNode, ExpectedCharacters, GetMetaNode(), InsideQuotes, MD, OCB, OSB, ParseObjectList, QTS, and Strings.
void vtkJSONParser::processCCB |
( |
| ) |
|
|
private |
References CCB, CInfoVector, COMMA, CSB, CurrentNode, ExpectedCharacters, vtkJSONNode::GetName(), InsideQuotes, Nodes, OCB, ParseObjectList, processInfoNode(), processMetaNode(), ShortNamesFilled, and throwException().
void vtkJSONParser::processOSB |
( |
| ) |
|
|
private |
References addInfo, CInfoVector, vtkJSONParser::Info::cn, ExpectedCharacters, GetMetaNode(), InsideQuotes, vtkJSONParser::Info::ln, OCB, OSB, ParseList, QTS, Strings, throwException(), and vtkJSONParser::Info::type.
void vtkJSONParser::processCSB |
( |
| ) |
|
|
private |
void vtkJSONParser::processCOMMA |
( |
| ) |
|
|
private |
void vtkJSONParser::processCOLON |
( |
| ) |
|
|
private |
void vtkJSONParser::processENDL |
( |
| ) |
|
|
private |
void vtkJSONParser::processQTS |
( |
| ) |
|
|
private |
References addInfo, CCB, CInfoVector, COLON, COMMA, CSB, CurrentList, ExpectedCharacters, File, getString(), InsideQuotes, LastString, OSB, vtkJSONParser::Info::pos, processMetaNode(), QTS, Strings, and vtkJSONParser::Info::type.
void vtkJSONParser::processCharacter |
( |
const char |
ch | ) |
|
|
private |
void vtkJSONParser::processMetaNode |
( |
| ) |
|
|
private |
References checkShortName(), CMT, CurrentList, DT, FileName, GetMetaNode(), LineNumber, LNG, ParseList, vtkJSONMetaNode::SetComment(), vtkJSONMetaNode::SetDate(), vtkJSONMetaNode::SetLongNames(), vtkJSONMetaNode::SetShortNames(), vtkJSONMetaNode::SetTableDescription(), vtkJSONMetaNode::SetTableName(), vtkJSONMetaNode::SetUnits(), SHT, Strings, TBD, TBN, and UNT.
void vtkJSONParser::processInfoNode |
( |
| ) |
|
|
private |
void vtkJSONParser::readDoubleValue |
( |
| ) |
|
|
private |
char * vtkJSONParser::getString |
( |
long |
b, |
|
|
long |
e |
|
) |
| |
|
private |
void vtkJSONParser::allowsDigits |
( |
| ) |
|
|
private |
bool vtkJSONParser::isDigitsAllowed |
( |
| ) |
|
|
private |
void vtkJSONParser::checkShortName |
( |
const char * |
unit | ) |
|
|
private |
void vtkJSONParser::finalize |
( |
vtkTable * |
t | ) |
|
|
private |
void vtkJSONParser::clean |
( |
| ) |
|
|
private |
void vtkJSONParser::throwSimpleException |
( |
const char * |
message | ) |
|
|
private |
void vtkJSONParser::throwException |
( |
const char * |
message | ) |
|
|
private |
void vtkJSONParser::throwException |
( |
const char * |
message, |
|
|
int |
ln, |
|
|
int |
cn |
|
) |
| |
|
private |
void vtkJSONParser::throwException |
( |
const char * |
message, |
|
|
int |
ln |
|
) |
| |
|
private |
char* vtkJSONParser::FileName |
|
protected |
int vtkJSONParser::LineNumber |
|
protected |
int vtkJSONParser::ColumnNumber |
|
protected |
std::vector<Info> vtkJSONParser::CInfoVector |
|
protected |
FILE* vtkJSONParser::File |
|
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 |