PSElement Class Reference

Parameter Stack Element. More...

#include <PStack.h>

Collaboration diagram for PSElement:

Collaboration graph
[legend]
List of all members.

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)
PSElementoperator= (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

Detailed Description

Parameter Stack Element.

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.


Member Enumeration Documentation

enum PSElement::ParmType

Enumerator:
NIL 
BOOL 
FLOAT 
INTEGER 
STRING 
PARAMETER 
USERDATA 

Definition at line 47 of file PStack.h.


Constructor & Destructor Documentation

PSElement::PSElement ( const MString sI  )  [inline]

Definition at line 14 of file PStack.h.

PSElement::PSElement ( const char *  sI  )  [inline]

Definition at line 15 of file PStack.h.

PSElement::PSElement ( const char *  sI,
int  Length 
) [inline]

Definition at line 16 of file PStack.h.

PSElement::PSElement ( float  fI  )  [inline]

Definition at line 17 of file PStack.h.

PSElement::PSElement ( int  iI  )  [inline]

Definition at line 18 of file PStack.h.

PSElement::PSElement ( unsigned  iI  )  [inline]

Definition at line 19 of file PStack.h.

PSElement::PSElement ( bool  bI  )  [inline]

Definition at line 20 of file PStack.h.

PSElement::PSElement ( void *  vI  )  [inline]

Definition at line 21 of file PStack.h.

PSElement::PSElement ( void   )  [inline]

Definition at line 22 of file PStack.h.

PSElement::PSElement ( const PSElement RHS  )  [inline]

Definition at line 24 of file PStack.h.

PSElement::~PSElement (  )  [inline]

Definition at line 27 of file PStack.h.

PSElement::PSElement ( ParmType  tI  )  [inline]

Definition at line 60 of file PStack.h.


Member Function Documentation

PSElement& PSElement::operator= ( const PSElement RHS  )  [inline]

Definition at line 25 of file PStack.h.

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.

PSElement::operator MString (  )  const [inline]

Definition at line 35 of file PStack.h.

PSElement::operator int (  )  const [inline]

Definition at line 36 of file PStack.h.

PSElement::operator float (  )  const [inline]

Definition at line 37 of file PStack.h.

PSElement::operator bool (  )  const [inline]

Definition at line 38 of file PStack.h.

PSElement::operator void * (  )  const [inline]

Definition at line 39 of file PStack.h.

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.

void PSElement::ForceType ( ParmType  tI  )  [inline]

Definition at line 59 of file PStack.h.

PSElement PSElement::Operate ( const MString sOperator,
const PSElement pRHS 
)

Definition at line 433 of file PStack.cpp.

void PSElement::SetValueF ( const float  fToSet  )  [inline]

Definition at line 64 of file PStack.h.


Member Data Documentation

ParmType PSElement::type [private]

Definition at line 66 of file PStack.h.

union PSElement::ParmData PSElement::data [private]


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo