GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GANIL/WatcherClient.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2010 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
21 #ifndef _WatcherClient
22 #define _WatcherClient
23 
24 // Gw includes
25 #ifndef Gw_FrameDispatcher
26 #include "FrameDispatcher.h"
27 #endif
28 #ifndef Gw_WatcherProducer
29 #include "WatcherProducer.h"
30 #endif
31 
33 
40 {
41 private:
43  Gw::WatcherProducer fProducer;
45  ADF::OneBlock fBlock;
46 
47 private:
49  TH1F *fError;
50 
51 public:
52  WatcherClient(const char *name, const char *title, TDirectory *mother_dir_of_watcher = 0x0, TDirectory *mother_dir_tag = 0x0);
53  virtual ~WatcherClient()
54  {;}
55 
56  virtual void ShowStat(Option_t* option = ""); //*MENU*
57 
59  Bool_t SetConnection(const Char_t *machine ="localhost", UInt_t port = 9090); //*MENU*
60 
62  virtual void Exec(Option_t *option="");
63 
64  ClassDef(WatcherClient,0) // WatcherClient
65 };
66 
67 
68 #endif
69 
70 
Process a buffer, trigg and dispachs the work to sub-watchers.
virtual ~WatcherClient()
WatcherClient(const char *name, const char *title, TDirectory *mother_dir_of_watcher=0x0, TDirectory *mother_dir_tag=0x0)
virtual void ShowStat(Option_t *option="")
To get a buffer from a server.
virtual void Exec(Option_t *option="")
to get a new block of Frames and send it to the ProcessBlock
To get a buffer from an actor, trigg on a Frame and dispach the Frame to sub-watchers.
Bool_t SetConnection(const Char_t *machine="localhost", UInt_t port=9090)
change the place where are picked data
It implements an in-memory block of Frames.
Definition: FrameBlock.h:206