Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ParameterReader.h

Go to the documentation of this file.
00001 // ParameterReader.h: interface for the ParameterReader class.
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 //#include <strstrea.h>
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         // lines beginning with this character are not read
00034         char _commentChar;
00035         char _lineBuffer[1000];
00036         ifstream *_parameterFileStream;
00037 };
00038 
00039 #endif // !defined(AFX_PARAMETERREADER_H__AA24367A_8A38_42D9_9187_BAF643A4381F__INCLUDED_)

Generated on Mon Nov 3 09:38:05 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002