Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

DataColDef Class Reference

Column definition in tabular data sets. More...

List of all members.

Public Types

enum  MatchLevel { Exact, Start, None }

Public Member Functions

 DataColDef (const char *nm, const char *ref=0, const UnitOfMeasure *un=0)
bool operator== (const DataColDef &dcd) const
MatchLevel compare (const DataColDef &, bool use_name) const
 if !use_name, matches ref_ .
void putTo (BufferString &) const
void getFrom (const char *)

Static Public Member Functions

static const DataColDefunknown ()

Public Attributes

BufferString name_
BufferString ref_
const UnitOfMeasureunit_

Detailed Description

Column definition in tabular data sets.

The ref_ is intended for whatever references that are important in the software but which should probably not be displayed to the user.

All but the 'user name' is optional.


Member Enumeration Documentation

Enumerator:
Exact 
Start 
None 

Constructor & Destructor Documentation

DataColDef::DataColDef ( const char *  nm,
const char *  ref = 0,
const UnitOfMeasure un = 0 
) [inline]

Member Function Documentation

MatchLevel DataColDef::compare ( const DataColDef ,
bool  use_name 
) const

if !use_name, matches ref_ .

void DataColDef::getFrom ( const char *   ) 
bool DataColDef::operator== ( const DataColDef dcd  )  const [inline]
void DataColDef::putTo ( BufferString  )  const
static const DataColDef& DataColDef::unknown (  )  [static]

Member Data Documentation