21 #ifndef __vtkJSONParser_h_
22 #define __vtkJSONParser_h_
24 #include <vtkObject.h>
41 const char* what()
const throw();
53 vtkGetStringMacro(FileName);
54 vtkSetStringMacro(FileName);
56 virtual int Parse(vtkTable* theTable);
99 std::vector<vtkJSONNode*>
Nodes;
146 void processCharacter(
const char ch);
148 void processMetaNode();
149 void processInfoNode();
151 void readDoubleValue();
153 char* getString(
long b,
long e);
157 bool isDigitsAllowed();
159 void checkShortName(
const char* unit);
161 void finalize(vtkTable *t);
165 void throwSimpleException(
const char* message);
167 void throwException(
const char* message);
169 void throwException(
const char* message,
int ln,
int cn);
171 void throwException(
const char* message,
int ln);
173 #endif //__vtkJSONParser_h_