DABC (Data Acquisition Backbone Core)
2.9.9
plugins
hadaq
hadaq
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
34
hadaq::HldFile
fFile
;
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
DataIO.h
HldFile.h
dabc::Buffer
Reference on memory from memory pool.
Definition:
Buffer.h:135
dabc::Command
Represents command with its arguments.
Definition:
Command.h:99
dabc::FileInput
Interface for implementing file inputs.
Definition:
DataIO.h:246
dabc::Url
Uniform Resource Locator interpreter.
Definition:
Url.h:33
dabc::WorkerRef
Reference on dabc::Worker
Definition:
Worker.h:466
hadaq::HldFile
HLD file implementation.
Definition:
HldFile.h:31
hadaq::HldInput
Implementation of file input for HLD files.
Definition:
HldInput.h:31
hadaq::HldInput::Read_Complete
virtual unsigned Read_Complete(dabc::Buffer &buf)
Complete reading of the buffer from source,.
Definition:
HldInput.cxx:82
hadaq::HldInput::OpenNextFile
bool OpenNextFile()
Definition:
HldInput.cxx:48
hadaq::HldInput::~HldInput
virtual ~HldInput()
Definition:
HldInput.cxx:36
hadaq::HldInput::CloseFile
bool CloseFile()
Definition:
HldInput.cxx:65
hadaq::HldInput::Read_Size
virtual unsigned Read_Size()
Defines required buffer size for next operation.
Definition:
HldInput.cxx:72
hadaq::HldInput::fFile
hadaq::HldFile fFile
Definition:
HldInput.h:34
hadaq::HldInput::Read_Init
virtual bool Read_Init(const dabc::WorkerRef &wrk, const dabc::Command &cmd)
Initialize data input, using port and command.
Definition:
HldInput.cxx:41
hadaq::HldInput::HldInput
HldInput(const dabc::Url &ulr)
Definition:
HldInput.cxx:26
hadaq
Support for HADAQ - HADES DAQ
Definition:
api.h:27
Generated by
1.9.1