Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

DWFToolkit::DWFUnits Class Reference
[DWF Package API]

#include "dwf/package/Units.h"

Inheritance diagram for DWFToolkit::DWFUnits:

Inheritance graph
[legend]
Collaboration diagram for DWFToolkit::DWFUnits:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class is used describe model viewing and measurement units.
Since:
7.0.1.

The data provided by this class is always used in conjunction with the transformation provided by each graphic resource in the section. See DWFEModelSection for more on using DWFUnits.

Definition at line 48 of file Units.h.

Public Member Functions

_DWFTK_API DWFUnits () throw ()
_DWFTK_API DWFUnits (teType eType) throw ()
virtual _DWFTK_API ~DWFUnits () throw ()
_DWFTK_API const DWFStringtype () const throw ()
virtual _DWFTK_API void parseAttributeList (const char **ppAttributeList) throw ( DWFException )
_DWFTK_API void serializeXML (DWFXMLSerializer &rSerializer, unsigned int nFlags) throw ( DWFException )


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWFUnits::DWFUnits  )  throw ()
 

Constructor

Exceptions:
None 

_DWFTK_API DWFToolkit::DWFUnits::DWFUnits teType  eType  )  throw ()
 

Constructor

Parameters:
eType The enumeration value identifying the unit type.
Exceptions:
None 

virtual _DWFTK_API DWFToolkit::DWFUnits::~DWFUnits  )  throw () [virtual]
 

Destructor

Exceptions:
None 


Member Function Documentation

virtual _DWFTK_API void DWFToolkit::DWFUnits::parseAttributeList const char **  ppAttributeList  )  throw ( DWFException ) [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:
None 

Implements DWFToolkit::DWFXMLBuildable.

_DWFTK_API void DWFToolkit::DWFUnits::serializeXML DWFXMLSerializer rSerializer,
unsigned int  nFlags
throw ( DWFException ) [virtual]
 

Writes an XML representation of the object into a stream.

Parameters:
rSerializer The object that accepts the serialization of the object.
nFlags An implementation-defined set of options for altering the serialization process of this object.

Implements DWFToolkit::DWFXMLSerializable.

_DWFTK_API const DWFString& DWFToolkit::DWFUnits::type  )  const throw () [inline]
 

Returns an enumeration value identifying the unit type.

Exceptions:
None 

Definition at line 105 of file Units.h.


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:39:08 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1