code::PolyType Class Reference

List of all members.

Detailed Description

A datum that can be stored and accessed as an int, long, unsigned long, double or string.

Its internal storage type is defined by the type passed into the constructor or modify() functions.

Author:
Charles Kerr
Version:
Id
code_PolyType.h,v 1.2 2009/06/02 20:17:38 lakshman Exp
See also:
DataField


Public Member Functions

 PolyType (int i=0)
 PolyType (long l)
 PolyType (unsigned long ul)
 PolyType (double d)
 PolyType (const char *str)
 PolyType (const std::string &str)
 PolyType (const PolyType &)
virtual ~PolyType ()
void modify (int i)
void modify (long l)
void modify (unsigned long ul)
void modify (double d)
void modify (const char *str)
void modify (const std::string str)
void modify (const PolyType &p)
bool isNumeric () const
int getInt () const
long getLong () const
unsigned long getULong () const
double getDouble () const
std::string getString () const
PolyTypeoperator= (const PolyType &)


Constructor & Destructor Documentation

code::PolyType::PolyType ( int  i = 0  ) 

code::PolyType::PolyType ( long  l  ) 

code::PolyType::PolyType ( unsigned long  ul  ) 

code::PolyType::PolyType ( double  d  ) 

code::PolyType::PolyType ( const char *  str  ) 

code::PolyType::PolyType ( const std::string &  str  ) 

code::PolyType::PolyType ( const PolyType  ) 

virtual code::PolyType::~PolyType (  )  [inline, virtual]


Member Function Documentation

double code::PolyType::getDouble (  )  const

int code::PolyType::getInt (  )  const

long code::PolyType::getLong (  )  const

std::string code::PolyType::getString (  )  const

unsigned long code::PolyType::getULong (  )  const

bool code::PolyType::isNumeric (  )  const [inline]

void code::PolyType::modify ( const PolyType p  )  [inline]

void code::PolyType::modify ( const std::string  str  ) 

void code::PolyType::modify ( const char *  str  ) 

void code::PolyType::modify ( double  d  ) 

void code::PolyType::modify ( unsigned long  ul  ) 

void code::PolyType::modify ( long  l  ) 

void code::PolyType::modify ( int  i  ) 

PolyType& code::PolyType::operator= ( const PolyType  ) 


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7