#include <NamedRefStreamer.h>
Definition at line 20 of file NamedRefStreamer.h.
ora::NamedReferenceStreamerBase::NamedReferenceStreamerBase |
( |
const Reflex::Type & |
objectType, |
|
|
MappingElement & |
mapping, |
|
|
ContainerSchema & |
schema |
|
) |
| |
|
explicit |
Definition at line 19 of file NamedRefStreamer.cc.
DataElement * m_refNameDataElement
DataElement * m_ptrDataElement
Reflex::Type m_objectType
ContainerSchema & m_schema
MappingElement & m_mapping
DataElement * m_dataElement
DataElement * m_flagDataElement
IRelationalData * m_relationalData
ora::NamedReferenceStreamerBase::~NamedReferenceStreamerBase |
( |
| ) |
|
|
virtual |
void ora::NamedReferenceStreamerBase::bindDataForRead |
( |
void * |
data | ) |
|
Definition at line 83 of file NamedRefStreamer.cc.
References mergeVDriftHistosByStation::name, ora::namedRefNullLabel(), and ora::throwException().
86 "NamedReferenceStreamerBase::bindDataForRead");
92 std::string
name = refNameAttr.data<std::string>();
94 name = std::string(
"");
99 *
static_cast<boost::shared_ptr<void>*
>(ptrAddress) = ptr;
100 *
static_cast<bool*
>(flagAddress) =
true;
102 *
static_cast<std::string*
>(refNameAddress) = name;
std::string namedRefNullLabel()
DataElement * m_refNameDataElement
void * address(const void *topLevelAddress) const
boost::shared_ptr< void > fetchTypedObjectByName(const std::string &name, const Reflex::Type &asType)
DataElement * m_ptrDataElement
Reflex::Type m_objectType
ContainerSchema & m_schema
DatabaseSession & dbSession()
virtual coral::AttributeList & data()=0
DataElement * m_flagDataElement
char data[epos_bytes_allocation]
void throwException(const std::string &message, const std::string &methodName)
IRelationalData * m_relationalData
void ora::NamedReferenceStreamerBase::bindDataForUpdate |
( |
const void * |
data | ) |
|
Definition at line 70 of file NamedRefStreamer.cc.
References mergeVDriftHistosByStation::name, ora::namedRefNullLabel(), and ora::throwException().
73 "NamedReferenceStreamerBase::bindDataForUpdate");
78 std::string
name = *
static_cast<std::string*
>(refNameAddress);
80 refNameAttr.data<std::string>()= name;
std::string namedRefNullLabel()
DataElement * m_refNameDataElement
void * address(const void *topLevelAddress) const
virtual coral::AttributeList & data()=0
char data[epos_bytes_allocation]
void throwException(const std::string &message, const std::string &methodName)
IRelationalData * m_relationalData
Definition at line 37 of file NamedRefStreamer.cc.
References ora::DataElement::addChild(), ora::IRelationalData::addData(), and ora::throwException().
41 Reflex::Member nameMember =
m_objectType.DataMemberByName(
"m_name");
44 "NamedReferenceStreamerBase::buildDataElement");
47 Reflex::Member ptrMember =
m_objectType.DataMemberByName(
"m_ptr");
50 "NamedReferenceStreamerBase::buildDataElement");
53 Reflex::Member flagMember =
m_objectType.DataMemberByName(
"m_isPersistent");
56 "NamedReferenceStreamerBase::buildDataElement");
61 if( columns.size()==0 ){
63 "NamedReferenceStreamerBase::buildDataElement");
65 m_columnIndex = relationalData.addData( columns[0],
typeid(std::string) );
DataElement * m_refNameDataElement
DataElement * m_ptrDataElement
DataElement & addChild(size_t declaringScopeOffset, Reflex::OffsetFunction offsetFunction)
Reflex::Type m_objectType
MappingElement & m_mapping
const std::vector< std::string > & columnNames() const
DataElement * m_dataElement
DataElement * m_flagDataElement
void throwException(const std::string &message, const std::string &methodName)
IRelationalData * m_relationalData
int ora::NamedReferenceStreamerBase::m_columnIndex |
|
private |
DataElement* ora::NamedReferenceStreamerBase::m_dataElement |
|
private |
DataElement* ora::NamedReferenceStreamerBase::m_flagDataElement |
|
private |
Reflex::Type ora::NamedReferenceStreamerBase::m_objectType |
|
private |
DataElement* ora::NamedReferenceStreamerBase::m_ptrDataElement |
|
private |
DataElement* ora::NamedReferenceStreamerBase::m_refNameDataElement |
|
private |