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

DelimitedTableParser.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 //
00024 // DelimitedTableParser.h
00025 //
00026 
00027 #ifndef DELIMITEDTABLEPARSER_INCLUDED
00028 #define DELIMITEDTABLEPARSER_INCLUDED
00029 
00030 #include <iostream>
00031 #include "Exception.h"
00032 #include "ColumnClassifier.h"
00033 
00034 #include "TableParser.h"
00035 
00049 class DelimitedTableParser : public TableParser{
00050         
00051 public:
00052         
00053         DelimitedTableParser(){}
00054         
00055         // Read in the file/string, parse it, and put the results in the _element vector.
00056         void readFile(const char* filename);
00057         void readString(const std::string &inString);
00058         
00059         void display(void);
00060 
00061         // clear variables for a clean read.
00062         void reset();
00063         
00064         unsigned getColumnCount( void ){ return _columns; };
00065         unsigned long getNumberOfRows( void ){ return _rows; }
00066         
00067 };
00068 #endif

Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4