#include <epssitem.h>
Inheritance diagram for EPSStackItem:
Public Member Functions | |
EPSStackItem () | |
Initialises a stack item (i.e. sets its type to be EPSTYPE_EMPTY). | |
~EPSStackItem () | |
Deletes storage associated with an EPSStackItem object. | |
void | Init (INT32) |
Initialise an EPSStackItem object to hold a INT32. | |
void | Init (FIXEDPOINT) |
Initialise an EPSStackItem object to hold a fixed point value. | |
void | Init (double) |
Initialise an EPSStackItem object to hold a double. | |
void | Init (TCHAR *Str, BOOL IsName=FALSE) |
Initialise an EPSStackItem object to hold a TCHAR * string. The string is copied. | |
void | Init (EPSCommand) |
Initialise an EPSStackItem object to hold an EPS command. | |
Public Attributes | |
union { | |
INT32 Long | |
FIXEDPOINT FixedPoint | |
double Double | |
TCHAR * pString | |
EPSCommand Cmd | |
} | Data |
EPSType | Type |
Private Member Functions | |
CC_DECLARE_MEMDUMP (EPSStackItem) |
Definition at line 118 of file epssitem.h.
|
Initialises a stack item (i.e. sets its type to be EPSTYPE_EMPTY).
Definition at line 115 of file epssitem.cpp. 00116 { 00117 Type = EPSTYPE_EMPTY; 00118 Data.pString = NULL; 00119 }
|
|
Deletes storage associated with an EPSStackItem object.
Definition at line 131 of file epssitem.cpp. 00132 { 00133 // Delete any data that is pointed to, rather than contained by, the stack item. 00134 if ((Type == EPSTYPE_STRING) || (Type == EPSTYPE_NAME)) 00135 { 00136 delete Data.pString; 00137 Data.pString = NULL; 00138 } 00139 }
|
|
|
|
Initialise an EPSStackItem object to hold an EPS command.
Definition at line 227 of file epssitem.cpp. 00228 { 00229 Type = EPSTYPE_COMMAND; 00230 Data.Cmd = Cmd; 00231 }
|
|
Initialise an EPSStackItem object to hold a TCHAR * string. The string is copied.
Definition at line 206 of file epssitem.cpp. 00207 { 00208 if (IsName) 00209 Type = EPSTYPE_NAME; 00210 else 00211 Type = EPSTYPE_STRING; 00212 00213 Data.pString = pString; 00214 }
|
|
Initialise an EPSStackItem object to hold a double.
Definition at line 186 of file epssitem.cpp. 00187 { 00188 Type = EPSTYPE_DOUBLE; 00189 Data.Double = Double; 00190 }
|
|
Initialise an EPSStackItem object to hold a fixed point value.
Definition at line 169 of file epssitem.cpp. 00170 { 00171 Type = EPSTYPE_FIXEDPOINT; 00172 Data.FixedPoint = FixedPoint; 00173 }
|
|
Initialise an EPSStackItem object to hold a INT32.
Definition at line 152 of file epssitem.cpp. 00153 { 00154 Type = EPSTYPE_INT32; 00155 Data.Long = Long; 00156 }
|
|
Definition at line 138 of file epssitem.h. |
|
|
|
Definition at line 136 of file epssitem.h. |
|
Definition at line 135 of file epssitem.h. |
|
Definition at line 134 of file epssitem.h. |
|
Definition at line 137 of file epssitem.h. |
|
Definition at line 141 of file epssitem.h. |