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

WT_Option Class Reference

#include <object.h>

Inheritance diagram for WT_Option:

Inheritance graph
[legend]
Collaboration diagram for WT_Option:

Collaboration graph
[legend]
List of all members.

Detailed Description

A dependent sub-object that always gets seralized inside of a parent object.

Definition at line 221 of file object.h.

Public Types

enum  
 Materialization stage.

Public Member Functions

 WT_Option ()
 Constructs a WT_Option object.
WT_Type object_type () const
 Returns the object type WT_Type::Option.
virtual WT_Result materialize (WT_Opcode const &, WT_File &)
 Provided to implement WT_Object, but not used (returns WT_Result::Toolkit_Usage_Error).
virtual WT_Result materialize (WT_Object &parent, WT_Optioncode const &optioncode, WT_File &file)=0
 Materializes the dependent WT_Option of the parent object.
virtual WT_Result process (WT_File &file)
 Calls the configured action handler for this object (passes in the file reference.).
virtual WT_Result serialize (WT_File &) const
 Provided to implement WT_Object, but not used (returns WT_Result::Toolkit_Usage_Error).
virtual WT_Result serialize (WT_Object const &parent, WT_File &file) const =0
 Serializes this dependent WT_Option of the parent object.
virtual WT_Result skip_operand (WT_Optioncode const &optioncode, WT_File &file)
 Causes the file reading to proceed to the end of this option.

Public Attributes

int m_stage
 The current materialization stage.


Member Function Documentation

virtual WT_Result WT_Option::materialize WT_Object parent,
WT_Optioncode const &  optioncode,
WT_File file
[pure virtual]
 

Materializes the dependent WT_Option of the parent object.

Parameters:
parent  The parent object for this dependent option.
optioncode  A derivative of WT_Opcode which corresponds to this WT_Option.
file  The file being read.

Implemented in WT_Font_Option_Font_Name, WT_Font_Option_Charset, WT_Font_Option_Pitch, WT_Font_Option_Family, WT_Font_Option_Style, WT_Font_Option_Height, WT_Font_Option_Rotation, WT_Font_Option_Width_Scale, WT_Font_Option_Spacing, WT_Font_Option_Oblique, WT_Font_Option_Flags, WT_Pattern_Scale, WT_Text_Option_Scoring, WT_Text_Option_Bounds, WT_Text_Option_Reserved, and WT_Viewport_Option_Viewport_Units.

virtual WT_Result WT_Option::process WT_File file  )  [virtual]
 

Calls the configured action handler for this object (passes in the file reference.).

Warning:
This is used by the framework and should not be called by client code.

Implements WT_Object.

virtual WT_Result WT_Option::serialize WT_Object const &  parent,
WT_File file
const [pure virtual]
 

Serializes this dependent WT_Option of the parent object.

Parameters:
parent  The parent object for this dependent option.
file  The file being written.

Implemented in WT_Font_Option_Font_Name, WT_Font_Option_Charset, WT_Font_Option_Pitch, WT_Font_Option_Family, WT_Font_Option_Style, WT_Font_Option_Height, WT_Font_Option_Rotation, WT_Font_Option_Width_Scale, WT_Font_Option_Spacing, WT_Font_Option_Oblique, WT_Font_Option_Flags, WT_Pattern_Scale, WT_Text_Option_Scoring, WT_Text_Option_Bounds, WT_Text_Option_Reserved, and WT_Viewport_Option_Viewport_Units.

virtual WT_Result WT_Option::skip_operand WT_Optioncode const &  optioncode,
WT_File file
[virtual]
 

Causes the file reading to proceed to the end of this option.

Warning:
This is used by the framework and should not be called by client code.


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