CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::RelationalRefLoader Class Reference
Inheritance diagram for ora::RelationalRefLoader:
ora::IPtrLoader

Public Member Functions

void build (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema)
 
void invalidate () override
 
bool isValid () const override
 
void * load () const override
 
 RelationalRefLoader (int refId)
 
virtual ~RelationalRefLoader ()
 
- Public Member Functions inherited from ora::IPtrLoader
virtual ~IPtrLoader ()
 

Private Attributes

DependentClassReader m_reader
 
int m_refId
 
bool m_valid
 

Detailed Description

Definition at line 131 of file UniqueRefStreamer.cc.

Constructor & Destructor Documentation

ora::RelationalRefLoader::RelationalRefLoader ( int  refId)
inlineexplicit

Definition at line 133 of file UniqueRefStreamer.cc.

133  :
134  m_reader(),
135  m_refId( refId ),
136  m_valid( false ){
137  }
DependentClassReader m_reader
virtual ora::RelationalRefLoader::~RelationalRefLoader ( )
inlinevirtual

Definition at line 139 of file UniqueRefStreamer.cc.

139  {
140  }

Member Function Documentation

void ora::RelationalRefLoader::build ( const Reflex::Type &  objectType,
MappingElement mapping,
ContainerSchema contSchema 
)
inline

Definition at line 143 of file UniqueRefStreamer.cc.

References ora::DependentClassReader::build(), m_reader, and m_valid.

Referenced by psClasses.BuildThread::run().

143  {
144  m_reader.build( objectType, mapping, contSchema );
145  m_valid = true;
146  }
DependentClassReader m_reader
void build(const Reflex::Type &objectType, MappingElement &depMapping, ContainerSchema &contSchema)
void ora::RelationalRefLoader::invalidate ( )
inlineoverridevirtual

Implements ora::IPtrLoader.

Definition at line 156 of file UniqueRefStreamer.cc.

References m_valid.

156  {
157  m_valid = false;
158  }
bool ora::RelationalRefLoader::isValid ( void  ) const
inlineoverridevirtual

Implements ora::IPtrLoader.

Definition at line 160 of file UniqueRefStreamer.cc.

References m_valid.

160  {
161  return m_valid;
162  }
void* ora::RelationalRefLoader::load ( ) const
inlineoverridevirtual

Implements ora::IPtrLoader.

Definition at line 148 of file UniqueRefStreamer.cc.

References m_reader, m_refId, m_valid, ora::DependentClassReader::read(), and ora::throwException().

Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().

148  {
149  if(!m_valid){
150  throwException("Ref Loader has been invalidate.",
151  "RelationalRefLoader::load");
152  }
153  return m_reader.read( m_refId );
154  }
DependentClassReader m_reader
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
Definition: Exception.cc:10

Member Data Documentation

DependentClassReader ora::RelationalRefLoader::m_reader
mutableprivate

Definition at line 165 of file UniqueRefStreamer.cc.

Referenced by build(), and load().

int ora::RelationalRefLoader::m_refId
private

Definition at line 166 of file UniqueRefStreamer.cc.

Referenced by load().

bool ora::RelationalRefLoader::m_valid
private

Definition at line 167 of file UniqueRefStreamer.cc.

Referenced by build(), invalidate(), isValid(), and load().