00001
00002
00004
00005 #if !defined(AFX_PARAMETERREADER_H__AA24367A_8A38_42D9_9187_BAF643A4381F__INCLUDED_)
00006 #define AFX_PARAMETERREADER_H__AA24367A_8A38_42D9_9187_BAF643A4381F__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #ifdef _WIN32
00013 #include <strstream>
00014 #endif
00015
00016 #include "ReactionNetwork.h"
00017 #include <iostream>
00018 #include <fstream>
00019 #include <assert.h>
00020
00021 #include <sstream>
00022 #include <string>
00023
00024 class ParameterReader
00025 {
00026 public:
00027 ParameterReader(std::string fileName, char commentChar='#');
00028 virtual ~ParameterReader();
00029 virtual double ReadParameter();
00030 virtual void Reset();
00031 virtual bool IsFileGood();
00032 private:
00033
00034 char _commentChar;
00035 char _lineBuffer[1000];
00036 ifstream *_parameterFileStream;
00037 };
00038
00039 #endif // !defined(AFX_PARAMETERREADER_H__AA24367A_8A38_42D9_9187_BAF643A4381F__INCLUDED_)