DWFCore::DWFXMLBuildable Interface Reference

#include "dwfcore/XML.h"

List of all members.


Detailed Description

This interface is used to indicate those classes that can be dynamically constructed during the document parsing process.

Since:
7.4.0

Definition at line 229 of file XML.h.

Public Types

typedef DWFCore::DWFXMLBuildable::tUnresolved tUnresolved
 This defines a structure to return unresolved attributes back to the caller when trying to parse the attributes of an XML buildable.
typedef std::vector< tUnresolvedtUnresolvedList
 This defines a list of the tResolvedAttributes.

Public Member Functions

virtual _DWFCORE_API ~DWFXMLBuildable () throw ()
virtual _DWFCORE_API void parseAttributeList (const char **ppAttributeList)=0 throw ( DWFException )
virtual _DWFCORE_API void parseAttributeList (const char **ppAttributeList, tUnresolvedList &rUnresolvedList) throw ( DWFException )

Protected Member Functions

_DWFCORE_API DWFXMLBuildable () throw ()

Classes

struct  tUnresolved
 This defines a structure to return unresolved attributes back to the caller when trying to parse the attributes of an XML buildable. More...


Constructor & Destructor Documentation

virtual _DWFCORE_API DWFCore::DWFXMLBuildable::~DWFXMLBuildable  )  throw () [inline, virtual]
 

Destructor

Exceptions:
None 

Definition at line 269 of file XML.h.

_DWFCORE_API DWFCore::DWFXMLBuildable::DWFXMLBuildable  )  throw () [inline, protected]
 

Constructor

Exceptions:
None 

Definition at line 322 of file XML.h.


Member Function Documentation

virtual _DWFCORE_API void DWFCore::DWFXMLBuildable::parseAttributeList const char **  ppAttributeList,
tUnresolvedList rUnresolvedList
throw ( DWFException ) [virtual]
 

Receives and processes an attribute list from the parser; using it to initialize class members.

Parameters:
ppAttributeList An array of null-terminated atribute name, value string pairs. The array itself is zero-terminated.
rUnresolvedList Unresolved attributes can be returned to the parser/caller via this structure.
Exceptions:
DWFException 

virtual _DWFCORE_API void DWFCore::DWFXMLBuildable::parseAttributeList const char **  ppAttributeList  )  throw ( DWFException ) [pure virtual]
 

Receives and processes an attribute list from the parser; using it to initialize class members.

Example:

                 size_t iAttrib = 0;
       
                 for(; ppAttributeList[iAttrib]; iAttrib += 2)
                 {
                    //
                    // dump attribute 
                    //
                    cout << "Attribute Name: " << ppAttributeList[iAttrib] << " ";
                    cout << "Attribute Value: " << ppAttributeList[iAttrib+1] << endl;
                }

Parameters:
ppAttributeList An array of null-terminated atribute name, value string pairs. The array itself is zero-terminated.
Exceptions:
DWFException 


The documentation for this interface was generated from the following file:
Generated on Tue Jan 6 22:39:43 2009 for Autodesk DWF Core Library by  doxygen 1.4.5