|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
FileWriterBase for small-data files, with a scratch buffer of transition size and a NamesLookup. More...
#include <FileWriterBase.hh>
Inherits Drp::FileWriterBase.
Inherited by Drp::SmdWriter.
Public Member Functions | |
| SmdWriterBase (size_t maxTrSize) | |
| Allocate buffer with maxTrSize bytes. | |
| virtual | ~SmdWriterBase () |
| Does nothing; empty body. | |
| void | addNames (XtcData::Xtc &parent, const void *bufEnd, unsigned nodeId) |
| Declared here, but no definition is compiled: FileWriterBase.cc defines SmdWriter::addNames() with this signature and is not listed in drp/CMakeLists.txt. | |
Public Member Functions inherited from Drp::FileWriterBase | |
| FileWriterBase () | |
| Start with the writing counter at 0. | |
| virtual | ~FileWriterBase () |
| Does nothing; empty body. | |
| virtual int | open (const std::string &fileName)=0 |
| Pure virtual: open fileName for writing; the implementations in FileWriter.cc return 0 on success. | |
| virtual int | close ()=0 |
| Pure virtual: flush buffered data and close the current file. | |
| virtual void | writeEvent (const void *data, size_t size, XtcData::TimeStamp ts)=0 |
| Pure virtual: write size bytes from data; the implementations use the seconds of ts to age their batches. | |
| virtual uint64_t | writing () const |
| Return the writing counter (non-zero while an implementation is inside a write). | |
Public Attributes | |
| std::vector< uint8_t > | buffer |
| Scratch buffer of maxTrSize bytes, sized by the constructor. | |
| XtcData::NamesLookup | namesLookup |
| Names lookup table for the small-data datagrams. | |
Additional Inherited Members | |
Protected Attributes inherited from Drp::FileWriterBase | |
| volatile uint64_t | m_writing |
FileWriterBase for small-data files, with a scratch buffer of transition size and a NamesLookup.
|
inline |
Allocate buffer with maxTrSize bytes.
|
inlinevirtual |
Does nothing; empty body.
| void Drp::SmdWriterBase::addNames | ( | XtcData::Xtc & | parent, |
| const void * | bufEnd, | ||
| unsigned | nodeId | ||
| ) |
Declared here, but no definition is compiled: FileWriterBase.cc defines SmdWriter::addNames() with this signature and is not listed in drp/CMakeLists.txt.
No caller was found in psdaq.
| std::vector<uint8_t> Drp::SmdWriterBase::buffer |
Scratch buffer of maxTrSize bytes, sized by the constructor.
| XtcData::NamesLookup Drp::SmdWriterBase::namesLookup |
Names lookup table for the small-data datagrams.