36#ifndef vtkBlueObeliskDataParser_h
37#define vtkBlueObeliskDataParser_h
39#include "vtkDomainsChemistryModule.h"
76 int Parse(
const char*)
override;
77 int Parse(
const char*,
unsigned int)
override;
140 float CurrentDefaultColor[3];
164 static int parseInt(
const char*);
165 static float parseFloat(
const char*);
166 static void parseFloat3(
const char* str,
float[3]);
167 static unsigned short parseUnsignedShort(
const char*);
Abstract superclass for all arrays.
Fill a vtkBlueObeliskData container with data from the BODR XML dataset.
std::string CharacterDataValueBuffer
float CurrentCovalentRadius
vtkStdString * CurrentSymbol
vtkStdString * CurrentFamily
vtkStdString * CurrentName
static vtkBlueObeliskDataParser * New()
@ ElectronicConfiguration
@ PaulingElectronegativity
float CurrentMeltingPoint
void EndElement(const char *name) override
vtkBlueObeliskDataParser()
void NewAtomStarted(const char **attr)
unsigned int CurrentPeriod
float CurrentBoilingPoint
void StartElement(const char *name, const char **attr) override
void NewValueStarted(const char **attr)
~vtkBlueObeliskDataParser() override
void SetCurrentValue(const char *data)
float CurrentPaulingElectronegativity
virtual void SetTarget(vtkBlueObeliskData *bodr)
Set the target vtkBlueObeliskData object that this parser will populate.
vtkStdString * CurrentElectronicConfiguration
int Parse(const char *, unsigned int) override
These are only implemented to prevent compiler warnings about hidden virtual overloads.
float CurrentElectronAffinity
vtkStdString * CurrentPeriodicTableBlock
unsigned int CurrentGroup
int Parse() override
Start parsing.
float CurrentIonizationEnergy
int Parse(const char *) override
These are only implemented to prevent compiler warnings about hidden virtual overloads.
vtkBlueObeliskData * Target
void CharacterDataHandler(const char *data, int length) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetCurrentValue(const char *data, int length)
Contains chemical data from the Blue Obelisk Data Repository.
dynamic, self-adjusting array of float
a simple class to control print indentation
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of unsigned short
Parse XML to handle element tags and attributes.