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

MadelineTable Class Reference

#include <MadelineTable.h>

Inheritance diagram for MadelineTable:

TableParser List of all members.

Public Member Functions

void debug (void)
int getBlockCount (void)
void setFile (const char *fileName)
void setString (std::string inString)
 MadelineTable ()
 ~MadelineTable ()
const char * getColumnName (unsigned columnIndex)
DATATYPE getColumnType (unsigned columnIndex)
std::string getData (unsigned columnIndex, unsigned long rowIndex)
void display (void)

Private Member Functions

void _readFile (const char *fileName)
void _readString (const std::string inString)
void _getLineCount (void)
void _allocateLineInformationVector (void)
void _assignLinePointers (void)
void _determineNumberOfBlocks (void)
void _assignRecordTypes (void)
void _checkDataBlockRectangularity (void)
void _calculateColumnFillRates (void)
void _determineNumberOfColumns (void)
void _determineFieldBoundaries (void)
char * _readAndNullTerminateColumnName (char *beginning, const char *headerEnd, ColumnOffset &columnOffset)
char * _readColumnType (char *beginning, const char *headerEnd, ColumnOffset &columnOffset)
void _parseHeader (void)
void _fillVectors ()

Private Attributes

char * _header
char * _buffer
LineInformation_lineInfo
unsigned long _lines
int _blocks
const char * _data
unsigned long _firstDataRow
unsigned long _dataRows
unsigned long _lastDataRow
int _length
unsigned long _firstHeaderRow
unsigned long _headerRows
unsigned long _lastHeaderRow
unsigned _dataColumns
unsigned long * _fill
ColumnOffset_columnOffset

Constructor & Destructor Documentation

MadelineTable::MadelineTable  ) 
 

MadelineTable::~MadelineTable  ) 
 


Member Function Documentation

void MadelineTable::_allocateLineInformationVector void   )  [private]
 

void MadelineTable::_assignLinePointers void   )  [private]
 

void MadelineTable::_assignRecordTypes void   )  [private]
 

void MadelineTable::_calculateColumnFillRates void   )  [private]
 

void MadelineTable::_checkDataBlockRectangularity void   )  [private]
 

void MadelineTable::_determineFieldBoundaries void   )  [private]
 

void MadelineTable::_determineNumberOfBlocks void   )  [private]
 

void MadelineTable::_determineNumberOfColumns void   )  [private]
 

void MadelineTable::_fillVectors  )  [private]
 

void MadelineTable::_getLineCount void   )  [private]
 

void MadelineTable::_parseHeader void   )  [private]
 

char * MadelineTable::_readAndNullTerminateColumnName char *  beginning,
const char *  headerEnd,
ColumnOffset columnOffset
[private]
 

char * MadelineTable::_readColumnType char *  beginning,
const char *  headerEnd,
ColumnOffset columnOffset
[private]
 

_readColumnType() : sets the declared type

Allowed field types are: C -- character N -- numeric D -- date G -- genotype A -- allele X -- character-type gender field enum COLUMNTYPE{ ALLELE, DATE, GENDER, GENOTYPE, HAPLOTYPE, MISSING, NUMBER, STRING, UNCLASSIFIED };

void MadelineTable::_readFile const char *  fileName  )  [private]
 

void MadelineTable::_readString const std::string  inString  )  [private]
 

void MadelineTable::debug void   ) 
 

void MadelineTable::display void   ) 
 

int MadelineTable::getBlockCount void   )  [inline]
 

const char* MadelineTable::getColumnName unsigned  columnIndex  )  [inline]
 

DATATYPE MadelineTable::getColumnType unsigned  columnIndex  )  [inline]
 

std::string MadelineTable::getData unsigned  columnIndex,
unsigned long  rowIndex
 

void MadelineTable::setFile const char *  fileName  ) 
 

void MadelineTable::setString std::string  inString  ) 
 


Member Data Documentation

int MadelineTable::_blocks [private]
 

char* MadelineTable::_buffer [private]
 

ColumnOffset* MadelineTable::_columnOffset [private]
 

const char* MadelineTable::_data [private]
 

unsigned MadelineTable::_dataColumns [private]
 

unsigned long MadelineTable::_dataRows [private]
 

unsigned long* MadelineTable::_fill [private]
 

unsigned long MadelineTable::_firstDataRow [private]
 

unsigned long MadelineTable::_firstHeaderRow [private]
 

char* MadelineTable::_header [private]
 

unsigned long MadelineTable::_headerRows [private]
 

unsigned long MadelineTable::_lastDataRow [private]
 

unsigned long MadelineTable::_lastHeaderRow [private]
 

int MadelineTable::_length [private]
 

LineInformation* MadelineTable::_lineInfo [private]
 

unsigned long MadelineTable::_lines [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