QSlowGetCommand.hh

00001 /*
00002  * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore
00003  * 
00004  * M.Pallavicini - A.Giachero created 17/01/07 - <Andrea.Giachero@ge.infn.it> 
00005  * 
00006  $ $Id: QSlowGetCommand.hh 2257 2008-11-26 10:22:55Z giachero $
00007  * $Revision: 2257 $
00008  *
00009  * Class QSlowGetCommand: get command (any parameter getting)
00010  *                           
00011  *
00012  */
00013 
00014 
00015 #ifndef _QSLOW_GET_COMMAND_HH_
00016 #define _QSLOW_GET_COMMAND_HH_
00017 
00018 // C/C++ Includes
00019 #include <map>
00020 #include <string>
00021 
00022 // Apollo Includes
00023 #include "QCuore.hh"
00024 #include "QSlowBaseCommand.hh"
00025 
00026 class QSlowGetCommand : public QSlowBaseCommand {
00027 public:    
00028 
00029    // ctor
00030    QSlowGetCommand();
00031   
00032    // dotr
00033    virtual ~QSlowGetCommand();
00034   
00035    // Execute Command
00036    virtual void Execute();
00037   
00038    // Check Commands Parameters
00039    virtual void CheckParams();
00040   
00041 private:
00042   
00043    // Get formatted std::string with numerical value from the hardware
00044    void GetHardwareValue(QError& ErrorRet, QSlowTarget_t Target, QSlowEleCommand_t CmdCode, 
00045                          std::string& sValue, QSlowBoolType_t Type=QSLOW_NO_BOOL);
00046 
00047    // Get formatted std::string with text from the hardware
00048    void GetHardwareText (QError& ErrorRet, QSlowTarget_t Target, QSlowEleCommand_t CmdCode, std::string& sValue);
00049 
00050    // Get formatted std::string about Server parameters
00051    void GetFromServer (QError& ErrorRet, QSlowEleCommand_t CmdCode, std::string& sValue);
00052    
00053    void GetInterface(QError& ErrorRet, std::string& sValue);
00054 
00055    
00056    // Get formatted std::string about Server parameters
00057    void GetFromPowerSupply (QError& ErrorRet, QSlowEleCommand_t CmdCode, std::string& sValue);
00058   
00059 
00060 };
00061 
00062 #endif // _QSLOW_GET_COMMAND_HH_

Generated on Tue Nov 16 10:49:55 2010 for CUORE Software by  doxygen 1.5.6