00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __QPARSERFINDER_HH_
00011 #define __QPARSERFINDER_HH_
00012
00013 #include <map>
00014 #include <string>
00015
00016 #include "QCuore.hh"
00017 #include "QCommand.hh"
00018
00019 class QBaseCmdParser;
00020
00021 class QParserFinder {
00022 public:
00023 virtual ~QParserFinder();
00024
00025 static QParserFinder* Get();
00026
00027 QBaseCmdParser& GetParser() {return *fParser;}
00028
00029 private:
00030 QParserFinder();
00031 static QParserFinder *me;
00032
00033 void SetParser(QBaseCmdParser* p) {fParser=p;}
00034
00035 QBaseCmdParser *fParser;
00036
00037 friend int main(int,char**);
00038
00039 };
00040
00041 #endif