GenericFileReader1D.h

Go to the documentation of this file.
00001 // GenericFileReader1D1D.h: interface for the GenericFileReader1D class.
00002 //
00004 
00005 #if !defined(AFX_GenericFileReader1D_H__F01D8B25_4EB3_4DF6_9D97_3F4AE2F94FAF__INCLUDED_)
00006 #define AFX_GenericFileReader1D_H__F01D8B25_4EB3_4DF6_9D97_3F4AE2F94FAF__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "FileReader.h"
00013 #include <vector>
00014 #include "IndexOutOfBoundException.h"
00015 #include "NullPointerException.h"
00016 #include "ParseException.h"
00017 //using namespace std;
00018 
00019 
00020 namespace Interpolator
00021 {
00023 class GenericFileReader1D : public FileReader  
00024 {
00025 public:
00026         GenericFileReader1D();
00027         virtual ~GenericFileReader1D();
00028 
00029         GenericFileReader1D(const std::string& sFileName);
00030         GenericFileReader1D(const std::string& sFileName,long lNbColumns,long lNbLines);
00031 
00032         virtual void Parse(); // throw (ParseException);
00033 
00034         double* getColumn(int iColumnNumber)                            const;  // throw (IndexOutOfBoundException,NullPointerException);
00035         double getValue(int iColumnNumber, int iLineNumber)     const;  // throw (IndexOutOfBoundException,NullPointerException);
00036         
00037         std::string getColumnName(int iColumnNumber)            const;  // throw (IndexOutOfBoundException,NullPointerException);
00038         void displayAll();
00039 
00040 private:
00041         vector<double*> *               _mColumnsVector;
00042         vector<std::string>*    _mColumnsNameVector;
00043 };
00044 
00045 }
00046 #endif // !defined(AFX_GenericFileReader1D_H__F01D8B25_4EB3_4DF6_9D97_3F4AE2F94FAF__INCLUDED_)

Generated on Tue Apr 14 09:50:27 2009 for Interpolator Library by  doxygen 1.4.5