FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRemoteSource.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -----------------------------------------------------------------------------
9 // ----- -----
10 // ----- FairRemoteSource -----
11 // ----- Created 12.04.2013 by D.Kresan -----
12 // -----------------------------------------------------------------------------
13 
14 #ifndef FAIRREMOTESOURCE_H
15 #define FAIRREMOTESOURCE_H
16 
17 #include "FairMbsSource.h"
18 
19 class MRevBuffer;
20 class REvent;
21 
22 class TSocket;
23 
25 {
26  public:
27  FairRemoteSource(char* node);
28  FairRemoteSource(const FairRemoteSource& source);
29  virtual ~FairRemoteSource();
30 
31  virtual Bool_t Init();
32  virtual Int_t ReadEvent(UInt_t = 0);
33  virtual void Close();
34 
35  inline const char* GetNode() const { return fNode; }
36 
37  private:
38  char* fNode;
39  TSocket* fSocket;
40  MRevBuffer* fBuffer;
41  REvent* fREvent;
42 
43  FairRemoteSource& operator=(const FairRemoteSource&);
44 
45  public:
47 };
48 
49 #endif
virtual ~FairRemoteSource()
virtual void Close()
virtual Bool_t Init()
FairRemoteSource(char *node)
ClassDef(FairRemoteSource, 0)
virtual Int_t ReadEvent(UInt_t=0)
const char * GetNode() const