Public Types | |
enum | Element { elem_nil, elem_toplevel, elem_x3d, elem_head, elem_meta, elem_component, elem_scene, elem_route, elem_proto, elem_field, elem_node, elem_use } |
Public Member Functions | |
string | getElementName (Element e, const NodeType *t=0) |
string | getElementName (const StackEntry &e) |
Element | elementLookup (string name) |
void | warning (string message) |
Parser (Ref< ExecutionContext > context, Ref< GroupingNode > rootGroup, string sourceName, XML_Parser xmlParser, ProgressTracker *progressTracker, Logger *logger, Time creationTimeStamp, bool progressive) | |
bool | isWhiteSpace (const char *s) |
Does the string consist of whitespace characters only? | |
bool | eatWord (const char *&s, const char *&from) |
Skip whitespace, then return false if there is no more characters. | |
bool | eat (const char *&s, bool &v, bool &more) |
bool | eat (const char *&s, int &v, bool &more) |
bool | eat (const char *&s, double &v, bool &more) |
bool | eat (const char *&s, Vector2 &v, bool &more) |
bool | eat (const char *&s, Vector3 &v, bool &more) |
bool | eat (const char *&s, Vector4 &v, bool &more) |
bool | eat (const char *&s, Rotation3 &v, bool &more) |
bool | eat (const char *&s, Image &v, bool &more) |
bool | eat (const char *&s, Time &v, bool &more) |
template<class T> | |
bool | parseValue (const char *s, T &v) |
template<class T> | |
bool | parseValue (const char *s, vector< T > &l) |
bool | parseValue (const char *s, string &v) |
We need special handling of SFString fields because anything is valid. | |
bool | parseValue (const char *s, vector< string > &v) |
void | initialize () |
Ref< NodeBase > | lookupUseNode (string name, const NodeType *type) |
Ref< NodeBase > | checkUseAttribute (const char *atts[], const NodeType *nodeType) |
void | displayStack (bool push) |
bool | attr_cmp (string s, string attribute, Element element, bool deprecated=false) |
void | parseStartElement (const char *name, const char *atts[], StackEntry *stackEntry) |
void | startElement (const char *name, const char *atts[]) |
void | endElement () |
void | injectChild (StackEntry *stackEntry) |
void | characterDataHandler (const char *s, int n) |
Public Attributes | |
XML_Parser | xmlParser |
ProgressTracker * | progressTracker |
Time | creationTimeStamp |
bool | progressive |
vector< StackEntry > | containmentStack |
map< const FieldType *, const ValueParserBase * > | valueParsers |
map< string, string > | compatibilityFieldTypeNameMap |
Classes | |
struct | SequenceValueParser |
struct | SingleValueParser |
struct | StackEntry |
struct | ValueParserBase |
Definition at line 71 of file parse_xml.C.
|
Definition at line 370 of file parse_xml.C. |
|
Skip whitespace, then return false if there is no more characters. Otherwise return true and set 'from' to the start of the word and 's' to the character imediately following the last non-whitespace character. Note: We include , as a whitespace character. This seems to be in line with the X3D specification. Definition at line 213 of file parse_xml.C. Referenced by eat(). |
|
Returns elem_nil for an unknown or unimplemented element Definition at line 157 of file parse_xml.C. Referenced by parseStartElement(). |
|
Definition at line 444 of file parse_xml.C. |