FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMQPixAltFileSinkBin.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  ********************************************************************************/
15 #ifndef FAIRMQPIXALTFILESINKBIN_H_
16 #define FAIRMQPIXALTFILESINKBIN_H_
17 
18 #include <FairMQDevice.h>
19 #include <fstream>
20 #include <string>
21 
22 class FairMQPixAltFileSinkBin : public FairMQDevice
23 {
24  public:
26  virtual ~FairMQPixAltFileSinkBin();
27 
28  void SetOutputFileName(const std::string& tempString) { fFileName = tempString; }
29  std::string GetOutputFileName() { return fFileName; }
30 
31  void SetInputChannelName(const std::string& tstr) { fInputChannelName = tstr; }
32  void SetAckChannelName(const std::string& tstr) { fAckChannelName = tstr; }
33 
34  protected:
35  bool StoreData(FairMQParts&, int);
36  virtual void Init();
37 
38  private:
39  std::string fInputChannelName;
40  std::string fAckChannelName;
41 
42  std::string fFileName;
43 
44  std::ofstream fOutFile;
45 
48 };
49 
50 #endif /* FAIRMQPIXALTFILESINKBIN_H_ */
bool StoreData(FairMQParts &, int)
void SetOutputFileName(const std::string &tempString)
void SetAckChannelName(const std::string &tstr)
void SetInputChannelName(const std::string &tstr)