MPMA::Vary Class Reference

A variable that can have eithar an integral, real, or string type. It can convert itself between the different types. More...

#include <Vary.h>

List of all members.

Public Types

enum  Type { INTEGER, REAL, STRING }
 Type of variable. More...

Public Member Functions

 Vary ()
 ctor
 Vary (const Vary &o)
 ctor
 Vary (const int &ival)
 ctor
 Vary (const uint &ival)
 ctor
 Vary (const float &rval)
 ctor
 Vary (const std::string &sval)
 ctor
 Vary (const char *sval)
 ctor
 Vary (const std::vector< char > &sval)
 ctor
const Type GetType () const
 Retrieves the current type.
void Clear ()
 Resets the value of the variable, but not the type.
const Varyoperator= (const Vary &vval)
 op=
const Varyoperator= (const int &ival)
 op=
const Varyoperator= (const uint &ival)
 op=
const Varyoperator= (const float &rval)
 op=
const Varyoperator= (const std::string &sval)
 op=
const Varyoperator= (const char *sval)
 op=
const Varyoperator= (const std::vector< char > &sval)
 op=
 operator const int () const
 conversion
 operator const std::string & () const
 conversion
 operator const float () const
 conversion
const int AsInt () const
 conversion
const std::string & AsString () const
 conversion
const float AsFloat () const
 conversion
void MakeInt ()
 Changes the current type.
void MakeReal ()
 Changes the current type.
void MakeString ()
 Changes the current type.
const Varyoperator+= (const Vary &var)
 Addition (for numeric) and concatenation (for string).
const Vary operator+ (const Vary &var) const
 Addition (for numeric) and concatenation (for string).
Varyoperator++ ()
 Increment (valid only on INTEGER and REAL types).
Varyoperator-- ()
 Decrement (valid on all types, on strings it removes the last character (if any)).


Detailed Description

A variable that can have eithar an integral, real, or string type. It can convert itself between the different types.

Member Enumeration Documentation

enum MPMA::Vary::Type

Type of variable.

Enumerator:
INTEGER  signed integer
REAL  floating point type
STRING  character string


The documentation for this class was generated from the following files:
Generated on Wed Feb 13 20:57:09 2008 for MPMA Framework by  doxygen 1.5.4