00001 // SambaFileReader.h: interface for the SambaFileReader class. 00002 // 00004 00005 #if !defined(AFX_SAMBAFILEREADER_H__3CD964AC_69BE_40F9_ABB6_05C5D8FA401F__INCLUDED_) 00006 #define AFX_SAMBAFILEREADER_H__3CD964AC_69BE_40F9_ABB6_05C5D8FA401F__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "FileReader.h" 00013 #include <vector> 00014 00015 #include "IndexOutOfBoundException.h" 00016 #include "NullPointerException.h" 00017 #include "ParseException.h" 00018 //using namespace std; 00019 namespace Interpolator 00020 { 00023 class SambaFileReader : public FileReader 00024 { 00025 public: 00026 SambaFileReader(); 00027 SambaFileReader(const std::string& sFileName); 00028 SambaFileReader(const std::string& sFileName,long lNbColumns,long lNbLines); 00029 00030 virtual ~SambaFileReader(); 00031 virtual void Parse() ;// throw (ParseException); 00032 00033 double* getThetaEncoder() const ;// throw (NullPointerException); 00034 double* getThetaReal() const ;// throw (NullPointerException); 00035 double* getThetaDiff() const ;// throw (NullPointerException); 00036 00037 double getXValue(int i) const ;// throw (IndexOutOfBoundException); 00038 double getYValue(int i) const ;// throw (IndexOutOfBoundException); 00039 00040 double getThetaEncoderValue(int i) const ;// throw (IndexOutOfBoundException); 00041 double getThetaRealValue(int i) const ;// throw (IndexOutOfBoundException); 00042 00043 private: 00044 00045 double* _mThetaEncoder; 00046 double* _mThetaReal; 00047 double* _mThetaDiff; 00048 00049 }; 00050 } 00051 #endif // !defined(AFX_SAMBAFILEREADER_H__3CD964AC_69BE_40F9_ABB6_05C5D8FA401F__INCLUDED_)
1.4.5