QGUISocketInterface.hh

00001 /*
00002  * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore
00003  * 
00004  * A.Giachero created 14/12/06 - <Andrea.Giachero@ge.infn.it>
00005  *
00006  * $Id: QGUIApolloInterface.hh 556 2006-12-14 16:26:43Z giacher $
00007  * $Revision: 556 $
00008  *
00009  * Class QGUISocketInterface: GUI Interface to APOLLO                       
00010  *                            by Socket Communicatiuons
00011  *
00012  */
00013 
00014 
00015 #ifndef _QGUI_SOCKET_INTERFACE_HH_
00016 #define _QGUI_SOCKET_INTERFACE_HH_
00017 
00018 // ROOT Includes
00019 #include "Rtypes.h"
00020 
00021 // Used Classes
00022 #include "QApolloSocketClient.hh"
00023 
00024 class QGUISocketInterface
00025 {
00026 
00027 public:
00028   
00029   // ctor
00030   QGUISocketInterface();
00031   
00032   // dtor
00033   virtual ~QGUISocketInterface();
00034   
00036   bool StartRun(unsigned int settingsBasket, 
00037                 unsigned int runNumb,
00038                 unsigned int shifterSet,
00039                 std::string& serverAnswer);
00040   
00042   bool StopRun(unsigned int shifterSet,
00043                std::string& serverAnswer);
00044   
00050   int GetStatus(std::string& response);
00051   
00058   int GetCurrentRun(std::string& response);
00059 
00064   inline const std::string& GetServerPort()    const {return fClient.GetServerPort();}
00065   
00070   inline const std::string& GetServerAddress() const {return fClient.GetServerAddress();}
00071 
00072 
00073 private:
00074   
00075   // Local Socket Client for Apollo 
00076   QApolloSocketClient fClient;
00077   
00078   // To integrate QGUISocketInterface class into the ROOT system
00079   ClassDef(QGUISocketInterface,0);
00080 };
00081 
00082 #endif // _QGUI_SOCKET_INTERFACE_HH_

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