14 #define GAUDI_NTUPLEIMP_CPP 1 32 for (
auto& i :
m_items ) i->release();
48 for (
auto& i :
m_items ) i->reset();
55 [&]( ItemContainer::const_reference j ) {
return j->name() ==
name; } );
virtual const std::string & name() const =0
Access _Item name.
void reset() override
Reset all entries to their default values.
constexpr static const auto FAILURE
TupleImp(const TupleImp &)=delete
Standard Copy Constructor.
A select statement can either contain.
std::unique_ptr< char[]> m_buffer
Buffer.
StatusCode add(INTupleItem *item) override
Add an item row to the N tuple.
StatusCode attachSelector(ISelectStatement *sel) override
Attach selector.
ISelectStatement * selector() override
Access selector.
StatusCode write() override
Write record of the NTuple (Shortcut of writeRecord)
StatusCode save() override
Save the NTuple.
TYPE * get() const
Get interface pointer.
INTupleSvc * m_ntupleSvc
Reference to N-tuple service used.
StatusCode read() override
Read record of the NTuple (Shortcut of readRecord)
NTuple interface class definition.
~TupleImp() override
Standard Destructor.
StatusCode remove(INTupleItem *item) override
Remove an item row (identified by pointer) from the N tuple.
This class is used for returning status codes from appropriate routines.
virtual StatusCode writeRecord(NTuple::Tuple *tuple)=0
Write single record to N tuple.
virtual StatusCode save(const std::string &fullPath)=0
Save N tuple to disk.
StatusCode readRecord() override
Read record of the NTuple.
constexpr static const auto SUCCESS
SmartIF< ISelectStatement > m_pSelector
Possibly hanging selector.
INTupleItem * i_find(const std::string &name) const override
Internally used by abstract classes.
ItemContainer m_items
Container with N tuple _Columns.
virtual StatusCode readRecord(NTuple::Tuple *tuple)=0
Read single record from N tuple.
virtual void release()=0
Destruct object.
const std::string & name() const
Retreive DataObject name. It is the name when registered in the store.
virtual char * setBuffer(std::unique_ptr< char[]> &&buff)
Set N tuple data buffer.
StatusCode item(const std::string &name, Item< TYPE > &result)
Locate a scalar Item of data to the N tuple type safe.
StatusCode writeRecord() override
Write record of the NTuple.