DABC (Data Acquisition Backbone Core)  2.9.9
HldInput.h
Go to the documentation of this file.
1 // $Id: HldInput.h 4480 2020-04-15 14:40:06Z linev $
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 HADAQ_HldInput
17 #define HADAQ_HldInput
18 
19 #ifndef DABC_DataIO
20 #include "dabc/DataIO.h"
21 #endif
22 
23 #ifndef HADAQ_HldFile
24 #include "hadaq/HldFile.h"
25 #endif
26 
27 namespace hadaq {
28 
31  class HldInput : public dabc::FileInput {
32  protected:
33 
35 
36  bool CloseFile();
37  bool OpenNextFile();
38 
39  public:
40  HldInput(const dabc::Url& ulr);
41  virtual ~HldInput();
42 
43  virtual bool Read_Init(const dabc::WorkerRef& wrk, const dabc::Command& cmd);
44 
45  virtual unsigned Read_Size();
46  virtual unsigned Read_Complete(dabc::Buffer& buf);
47  };
48 
49 }
50 
51 #endif
Reference on memory from memory pool.
Definition: Buffer.h:135
Represents command with its arguments.
Definition: Command.h:99
Interface for implementing file inputs.
Definition: DataIO.h:246
Uniform Resource Locator interpreter.
Definition: Url.h:33
Reference on dabc::Worker
Definition: Worker.h:466
HLD file implementation.
Definition: HldFile.h:31
Implementation of file input for HLD files.
Definition: HldInput.h:31
virtual unsigned Read_Complete(dabc::Buffer &buf)
Complete reading of the buffer from source,.
Definition: HldInput.cxx:82
bool OpenNextFile()
Definition: HldInput.cxx:48
virtual ~HldInput()
Definition: HldInput.cxx:36
bool CloseFile()
Definition: HldInput.cxx:65
virtual unsigned Read_Size()
Defines required buffer size for next operation.
Definition: HldInput.cxx:72
hadaq::HldFile fFile
Definition: HldInput.h:34
virtual bool Read_Init(const dabc::WorkerRef &wrk, const dabc::Command &cmd)
Initialize data input, using port and command.
Definition: HldInput.cxx:41
HldInput(const dabc::Url &ulr)
Definition: HldInput.cxx:26
Support for HADAQ - HADES DAQ
Definition: api.h:27