00001 #ifndef __FILEHANDLECOMMANDPROCESSOR_H 00002 #define __FILEHANDLECOMMANDPROCESSOR_H 00003 00004 #include "CommandProcessor.h" 00005 #include <string> 00006 00007 using namespace std; 00008 00009 class FileHandleCommandProcessor : public CommandProcessor { 00010 public: 00011 FileHandleCommandProcessor(); 00012 FILE* getOutputStream(); 00013 00014 protected: 00015 virtual void init(); 00016 virtual void readCommand(string* input); 00017 virtual void displayResponse(string* output); 00018 00019 FILE* m_input; 00020 FILE* m_output; 00021 string m_prompt; 00022 }; 00023 00024 #endif 00025