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

DataColumn Class Reference

#include <DataColumn.h>

List of all members.

Public Member Functions

 DataColumn ()
 DataColumn (const std::string &name, DATATYPE columnType=MISSING, unsigned long rows=0, unsigned ordinal=0)
 ~DataColumn ()
void setColumnType (DATATYPE columnType)
void setName (const char *name)
void setName (const std::string &name)
void setShowOnPedigree (bool value)
void setShowOnIcon (bool value)
void set (std::vector< std::string > &vec)
void setRow (unsigned long row, const std::string &value)
bool True () const
bool False () const
DATATYPE getColumnType (void) const
std::string getColumnTypeAsString (void) const
int getOrdinal (void) const
int getNumberOfRows (void) const
std::string getName (void) const
std::string getCaseInvariantName (void) const
bool getShowOnPedigree (void) const
bool getShowOnIcon (void) const
void printData (void)
void printData (unsigned long i)
std::string get (unsigned long i) const
DatagetDataAtIndex (unsigned long i) const
std::vector< Data * > getData ()
const UniqueList *const getUniqueList (void)

Private Attributes

std::string _name
int _ordinal
DATATYPE _columnType
unsigned long _rows
std::vector< Data * > _data
bool _showOnPedigree
bool _showOnIcon
UniqueList_uniqueList


Detailed Description

This class is used to store columns of information, which are then stored inside the Data Table


Constructor & Destructor Documentation

DataColumn::DataColumn  ) 
 

DataColumn::DataColumn const std::string &  name,
DATATYPE  columnType = MISSING,
unsigned long  rows = 0,
unsigned  ordinal = 0
 

DataColumn::~DataColumn  ) 
 


Member Function Documentation

bool DataColumn::False  )  const [inline]
 

std::string DataColumn::get unsigned long  i  )  const
 

get: Get data at index as a string.

std::string DataColumn::getCaseInvariantName void   )  const
 

getCaseInvariantName() : Used for sorting and searching

DATATYPE DataColumn::getColumnType void   )  const [inline]
 

std::string DataColumn::getColumnTypeAsString void   )  const
 

std::vector<Data*> DataColumn::getData  )  [inline]
 

Data * DataColumn::getDataAtIndex unsigned long  i  )  const
 

getDataAtIndex:

std::string DataColumn::getName void   )  const [inline]
 

int DataColumn::getNumberOfRows void   )  const [inline]
 

int DataColumn::getOrdinal void   )  const [inline]
 

bool DataColumn::getShowOnIcon void   )  const
 

bool DataColumn::getShowOnPedigree void   )  const
 

const UniqueList *const DataColumn::getUniqueList void   ) 
 

getUniqueList(): Creates a list of unique data values present in the data column. This cannot be a const method because it needs to create the private _uniqueList if not yet present:

void DataColumn::printData unsigned long  i  ) 
 

void DataColumn::printData void   ) 
 

void DataColumn::set std::vector< std::string > &  vec  ) 
 

void DataColumn::setColumnType DATATYPE  columnType  )  [inline]
 

void DataColumn::setName const std::string &  name  )  [inline]
 

void DataColumn::setName const char *  name  )  [inline]
 

void DataColumn::setRow unsigned long  row,
const std::string &  value
 

void DataColumn::setShowOnIcon bool  value  ) 
 

void DataColumn::setShowOnPedigree bool  value  ) 
 

bool DataColumn::True  )  const [inline]
 


Member Data Documentation

DATATYPE DataColumn::_columnType [private]
 

std::vector<Data*> DataColumn::_data [private]
 

std::string DataColumn::_name [private]
 

int DataColumn::_ordinal [private]
 

unsigned long DataColumn::_rows [private]
 

bool DataColumn::_showOnIcon [private]
 

bool DataColumn::_showOnPedigree [private]
 

UniqueList* DataColumn::_uniqueList [private]
 


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