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

comfile.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------
00002 #ifndef Comfile_H
00003 #define Comfile_H
00004 //---------------------------------------------------------------------------
00005 
00006 
00007 #include "configsource.h"
00008 
00009 
00010 #define MAX_COM_FILE 10
00011 
00012 //#define CS_MODE_COMMAND  0
00013 #define CS_MODE_FILE     1
00014 #define CS_MODE_ARCHIVE  2
00015 
00016 
00017 
00018 //---------------------------------------------------------------------------
00019 class TComFileParser : public ConfigSource
00020 {
00021 private:
00022 
00023 protected:
00024 
00025         FILE *       files[MAX_COM_FILE];
00026         int            OpenFileCount;
00027         FILE *       Archive;
00028 
00029         char *       name;
00030         bool                eof;
00031 
00032 public:
00033    TComFileParser();
00034    ~TComFileParser();
00035 
00036    bool Open(const char* p_filename);
00037 
00038    bool DesignateArchive(FILE* p_file);
00039 
00040    void Close();
00041 
00042    int  ReadLine();
00043 
00044 };
00045 
00046 #endif

Generated on Tue May 6 09:16:00 2003 for Earthworm Libs by doxygen1.3-rc3