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

TableParser.h

Go to the documentation of this file.
00001 
00002 //
00003 // This file is part of the MADELINE 2 program 
00004 // written by Edward H. Trager and Ritu Khanna
00005 // Copyright (c) 2005 by the
00006 // Regents of the University of Michigan.
00007 // All Rights Reserved.
00008 // 
00009 // The latest version of this program is available from:
00010 // 
00011 //   http://eyegene.ophthy.med.umich.edu/madeline/
00012 //   
00013 // Released under the GNU General Public License.
00014 // A copy of the GPL is included in the distribution
00015 // package of this software, or see:
00016 // 
00017 //   http://www.gnu.org/copyleft/
00018 //   
00019 // ... for licensing details.
00020 // 
00022 //
00023 // 2006.12.04.ET
00024 //
00025 
00026 //
00027 // TableParser.h
00028 //
00029 
00030 #ifndef TableParser_INCLUDED
00031 #define TableParser_INCLUDED
00032 
00033 #include <string>
00034 #include <vector>
00035 
00036 class TableParser{
00037         
00038 private:
00039         
00040 protected:
00041         
00042         unsigned      _columns;
00043         unsigned long _rows;
00044         
00045         std::vector<std::string> _element;
00046         std::vector<char>        _columnType;
00047         std::vector<std::string> _title;
00048 public:
00049         
00050         unsigned                              getColumnCount ( void ) const { return _columns;    };
00051         unsigned long                         getNumberOfRows( void ) const { return _rows;       };
00052         const std::vector<std::string> *const getContents    ( void ) const { return &_element;    };
00053         const std::vector<char>        *const getTypes       ( void ) const { return &_columnType; };
00054         const std::vector<std::string> *const getTitles      ( void ) const { return &_title;      };
00055         
00056 };
00057 
00058 #endif

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