QBaseCmdParser.hh

00001 /*
00002 * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore 
00003 * $Id: QBaseCmdParser.hh 631 2006-12-19 11:54:27Z giacher $
00004 * M.P. created 28/10/4
00005 * 
00006 * Class QBaseCmdParser: base class for all parser
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   // ctor
00024   QBaseCmdParser();
00025 
00026   // dtor
00027   virtual ~QBaseCmdParser();
00028                 
00029   // Parse Command
00030   QCommand& Parse(char*);
00031 
00032 protected:
00033   // Add Command
00034   virtual void AddCommand(const std::string&, QCommand*);
00035   
00036 private:
00037   
00038   // Map that associates the name of the command with the relative QCommand
00039   std::map<std::string,QCommand*> commands;
00040 };
00041 
00042 #endif // _QBASECMDPARSER_HH_

Generated on Fri Mar 6 13:40:40 2009 for CUORE Software by  doxygen 1.5.1