Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Scalar Class Reference

Scalar class implements Scalar variables. More...

#include <Scalar.h>

Inheritance diagram for Scalar:

Variable List of all members.

Public Member Functions

 Scalar (const std::string &name)
 Scalar (const std::string &name, const short valueType, const std::string &value)
 ~Scalar ()
 Scalar (const Scalar &s)
Scalaroperator= (const Scalar &s)
const std::string get (void) const
 Returns a std::string representation of the scalar value.
const std::string getValueType () const
 Returns a string version of the value type.
const std::string getVariableType () const
void set (const short valueType, const std::string value)
 Assigns a value to a scalar variable.

Private Attributes

Data_val
 Value of the scalar variable.

Friends

bool operator== (const Scalar &a, const Scalar &b)
bool operator< (const Scalar &a, const Scalar &b)

Detailed Description

Scalar class implements Scalar variables.

Scalar variables are strongly typed.


Constructor & Destructor Documentation

Scalar::Scalar const std::string &  name  )  [inline]
 

Scalar::Scalar const std::string &  name,
const short  valueType,
const std::string &  value
[inline]
 

Scalar::~Scalar  )  [inline]
 

Scalar::Scalar const Scalar s  )  [inline]
 


Member Function Documentation

const std::string Scalar::get void   )  const [virtual]
 

Returns a std::string representation of the scalar value.

Implements Variable.

const std::string Scalar::getValueType  )  const [virtual]
 

Returns a string version of the value type.

Implements Variable.

const std::string Scalar::getVariableType  )  const [inline, virtual]
 

Implements Variable.

Scalar & Scalar::operator= const Scalar s  ) 
 

void Scalar::set const short  valueType,
const std::string  value
 

Assigns a value to a scalar variable.


Friends And Related Function Documentation

bool operator< const Scalar a,
const Scalar b
[friend]
 

bool operator== const Scalar a,
const Scalar b
[friend]
 


Member Data Documentation

Data* Scalar::_val [private]
 

Value of the scalar variable.


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4