Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

UnitConfParserState Class Reference

Collaboration diagram for UnitConfParserState:

Collaboration graph
[legend]
List of all members.

Public Types

enum  State {
  AtTop, InUnitConf, InDimensions, InPrefixes,
  InDimensionGroups, InUnitSystems, InDimension, InPrefix,
  InGroup, InDimPower, InUnit, InSystem,
  InStdUnit, Unknown
}

Public Methods

 UnitConfParserState ()
 ~UnitConfParserState ()
void startElement ( const CHAR* name, const CHAR** attrs )
void endElement ( const CHAR* name )
void characters ( const CHAR* val, int len )
void startDocument ()
void endDocument ()
xmlEntityPtr getEntity ( const CHAR* name )
void reset ()

Protected Methods

void terminateBuffer ()
void copyBufferTo ( CHAR*& )
void emptyData ( CHAR*& )

Protected Attributes

State level
State unknownRecover
int unknownDepth
DimensionGroupcurGroup
UnitSystemcurSys
vector<DimensionPowergrpPowers
CHAR* buffer
int buflen
int bufmax
bool rememberString
CHAR* nameData
CHAR* plurData
CHAR* symData
CHAR chrData
double scale
double offset
int power
bool one
bool avoid
bool noPlural
bool noPrefix

Static Protected Attributes

char* stateNames []

Detailed Description

Debug flags. DBG_STARTELE - display the arguments that startElement is called with. DBG_ENDELE - display the arguments that endElement is called with.


Member Data Documentation

char * UnitConfParserState::stateNames[] [static, protected]
 

Initializer:

{
    "AtTop",
    "InUnitConf",
    "InDimensions",
    "InPrefixes",
    "InDimensionGroups",
    "InUnitSystems",
    "InDimension",
    "InPrefix",
    "InGroup",
    "InDimPower",
    "InUnit",
    "InSystem",
    "InStdUnit",
    "Unknown"
}


The documentation for this class was generated from the following file:
Citrus C++ Reference Manual  20010520