00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _QBASECMDPARSER_HH_
00011 #define _QBASECMDPARSER_HH_
00012
00013 #include <map>
00014 #include <string>
00015 #include "QCuore.hh"
00016
00017
00018 class QCommand;
00019
00020 class QBaseCmdParser {
00021 public:
00022
00023
00024 QBaseCmdParser();
00025
00026
00027 virtual ~QBaseCmdParser();
00028
00029
00030 QCommand& Parse(char*);
00031
00032 protected:
00033
00034 virtual void AddCommand(const std::string&, QCommand*);
00035
00036 private:
00037
00038
00039 std::map<std::string,QCommand*> commands;
00040 };
00041
00042 #endif // _QBASECMDPARSER_HH_