DABC (Data Acquisition Backbone Core)  2.9.9
LmdOutput.h
Go to the documentation of this file.
1 // $Id: LmdOutput.h 3657 2017-05-03 07:19:32Z adamczew $
2 
3 /************************************************************
4  * The Data Acquisition Backbone Core (DABC) *
5  ************************************************************
6  * Copyright (C) 2009 - *
7  * GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
8  * Planckstr. 1, 64291 Darmstadt, Germany *
9  * Contact: http://dabc.gsi.de *
10  ************************************************************
11  * This software can be used under the GPL license *
12  * agreements as stated in LICENSE.txt file *
13  * which is part of the distribution. *
14  ************************************************************/
15 
16 #ifndef MBS_LmdOutput
17 #define MBS_LmdOutput
18 
19 #ifndef DABC_DataIO
20 #include "dabc/DataIO.h"
21 #endif
22 
23 #ifndef MBS_LmdFile
24 #include "mbs/LmdFile.h"
25 #endif
26 
27 namespace mbs {
28 
31  class LmdOutput : public dabc::FileOutput {
32  protected:
33 
35  std::string fUrlOptions; // remember URL options, may be used for RFIO/LTSM file open
36  bool CloseFile();
37  bool StartNewFile();
38 
39  public:
40 
41  LmdOutput(const dabc::Url& url);
42  virtual ~LmdOutput();
43 
44  virtual bool Write_Init();
45 
46  virtual unsigned Write_Buffer(dabc::Buffer& buf);
47  };
48 
49 }
50 
51 #endif
Reference on memory from memory pool.
Definition: Buffer.h:135
Interface for implementing file outputs.
Definition: DataIO.h:283
Uniform Resource Locator interpreter.
Definition: Url.h:33
Reading/writing LMD files (new API)
Definition: LmdFile.h:35
Output for LMD files (lmd:)
Definition: LmdOutput.h:31
bool CloseFile()
Definition: LmdOutput.cxx:75
virtual bool Write_Init()
This is generic virtual method to initialize output before real work is started.
Definition: LmdOutput.cxx:52
std::string fUrlOptions
Definition: LmdOutput.h:35
LmdOutput(const dabc::Url &url)
Definition: LmdOutput.cxx:34
virtual ~LmdOutput()
Definition: LmdOutput.cxx:46
virtual unsigned Write_Buffer(dabc::Buffer &buf)
Start writing of buffer to output.
Definition: LmdOutput.cxx:85
bool StartNewFile()
Definition: LmdOutput.cxx:59
mbs::LmdFile fFile
Definition: LmdOutput.h:34
Support for MBS - standard GSI DAQ.
Definition: api.h:36