#include <PStack.h>
Collaboration diagram for PSElement:
Public Types | |
enum | ParmType { NIL = 0, BOOL, FLOAT, INTEGER, STRING, PARAMETER, USERDATA } |
Public Member Functions | |
PSElement (const MString &sI) | |
PSElement (const char *sI) | |
PSElement (const char *sI, int Length) | |
PSElement (float fI) | |
PSElement (int iI) | |
PSElement (unsigned iI) | |
PSElement (bool bI) | |
PSElement (void *vI) | |
PSElement (void) | |
PSElement (const PSElement &RHS) | |
PSElement & | operator= (const PSElement &RHS) |
~PSElement () | |
MString | GetValueS () const |
int | GetValueI () const |
float | GetValueF () const |
bool | GetValueB () const |
void * | GetValueV () const |
operator MString () const | |
operator int () const | |
operator float () const | |
operator bool () const | |
operator void * () const | |
bool | GetValueS (MString &ret) |
bool | GetValueI (long &ret) |
bool | GetValueF (float &ret) |
bool | GetValueB (bool &ret) |
bool | GetValueV (void *&ret) |
ParmType | GetType () const |
void | ForceType (ParmType tI) |
PSElement (ParmType tI) | |
PSElement | Operate (const MString &sOperator, const PSElement &pRHS) |
void | SetValueF (const float fToSet) |
Private Attributes | |
ParmType | type |
PSElement::ParmData | data |
Classes | |
union | ParmData |
Used for containing a single parameter when being sent into, or out of a Mercury Command-structure function
Definition at line 11 of file PStack.h.
enum PSElement::ParmType |
PSElement::PSElement | ( | const char * | sI, | |
int | Length | |||
) | [inline] |
MString PSElement::GetValueS | ( | ) | const |
Definition at line 7 of file PStack.cpp.
int PSElement::GetValueI | ( | ) | const |
Definition at line 40 of file PStack.cpp.
float PSElement::GetValueF | ( | ) | const |
Definition at line 74 of file PStack.cpp.
bool PSElement::GetValueB | ( | ) | const |
Definition at line 107 of file PStack.cpp.
void * PSElement::GetValueV | ( | ) | const |
Definition at line 140 of file PStack.cpp.
bool PSElement::GetValueS | ( | MString & | ret | ) |
Definition at line 23 of file PStack.cpp.
bool PSElement::GetValueI | ( | long & | ret | ) |
Definition at line 54 of file PStack.cpp.
bool PSElement::GetValueF | ( | float & | ret | ) |
Definition at line 86 of file PStack.cpp.
bool PSElement::GetValueB | ( | bool & | ret | ) |
Definition at line 119 of file PStack.cpp.
bool PSElement::GetValueV | ( | void *& | ret | ) |
Definition at line 148 of file PStack.cpp.
PSElement::ParmType PSElement::GetType | ( | ) | const |
Definition at line 158 of file PStack.cpp.
Definition at line 433 of file PStack.cpp.
ParmType PSElement::type [private] |
union PSElement::ParmData PSElement::data [private] |