36 #ifndef vtkBlueObeliskDataParser_h
37 #define vtkBlueObeliskDataParser_h
39 #include "vtkDomainsChemistryModule.h"
74 virtual int Parse(
const char *);
75 virtual int Parse(
const char *,
unsigned int);
87 void SetCurrentValue(
const char *
data,
int length);
88 void SetCurrentValue(
const char *
data);
93 void NewAtomStarted(
const char **attr);
94 void NewAtomFinished();
97 void NewValueStarted(
const char **attr);
98 void NewValueFinished();
137 float CurrentDefaultColor[3];
155 static
void ResizeAndSetValue(
float val,
158 static
void ResizeAndSetValue(
unsigned short val,
167 static
int parseInt(const
char *);
168 static
float parseFloat(const
char *);
169 static
void parseFloat3(const
char * str,
float[3]);
170 static
unsigned short parseUnsignedShort(const
char *);
Wrapper around std::string to keep symbols short.
virtual int Parse()
Parse the XML input.
vtkBlueObeliskData * Target
Parse XML to handle element tags and attributes.
vtkStdString * CurrentElectronicConfiguration
Abstract superclass for all arrays.
vtkStdString * CurrentName
float CurrentBoilingPoint
virtual void StartElement(const char *name, const char **atts)
dynamic, self-adjusting array of float
a vtkAbstractArray subclass for strings
unsigned int CurrentPeriod
float CurrentCovalentRadius
float CurrentMeltingPoint
virtual void CharacterDataHandler(const char *data, int length)
float CurrentPaulingElectronegativity
vtkStdString * CurrentPeriodicTableBlock
vtkStdString * CurrentSymbol
unsigned int CurrentGroup
virtual void EndElement(const char *name)
float CurrentIonizationEnergy
static vtkXMLParser * New()
Fill a vtkBlueObeliskData container with data from the BODR XML dataset.
vtkStdString * CurrentFamily
float CurrentElectronAffinity
std::string CharacterDataValueBuffer
dynamic, self-adjusting array of unsigned short
Contains chemical data from the Blue Obelisk Data Repository.