00001 #ifndef COMMAND_LINE_H 00002 #define COMMAND_LINE_H 00003 #include <string> 00004 00010 class CommandLine 00011 { 00012 char* history_file; 00013 00014 void Init(const char* _history_file); 00015 public: 00016 00019 CommandLine(const char* _history_file) { Init(_history_file); } 00020 00023 CommandLine(std::string _history_file) { Init(_history_file.c_str()); } 00024 00025 ~CommandLine(); 00026 00030 std::string GetLine(std::string prompt); 00031 }; 00032 00033 #endif // COMMAND_LINE_H
1.5.8