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 ()
 
bool isValid () const
 
void * load () const
 
 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 130 of file UniqueRefStreamer.cc.

Constructor & Destructor Documentation

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

Definition at line 132 of file UniqueRefStreamer.cc.

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

Definition at line 138 of file UniqueRefStreamer.cc.

138  {
139  }

Member Function Documentation

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

Definition at line 142 of file UniqueRefStreamer.cc.

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

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

Implements ora::IPtrLoader.

Definition at line 155 of file UniqueRefStreamer.cc.

References m_valid.

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

Implements ora::IPtrLoader.

Definition at line 159 of file UniqueRefStreamer.cc.

References m_valid.

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

Implements ora::IPtrLoader.

Definition at line 147 of file UniqueRefStreamer.cc.

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

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

Member Data Documentation

DependentClassReader ora::RelationalRefLoader::m_reader
mutableprivate

Definition at line 164 of file UniqueRefStreamer.cc.

Referenced by build(), and load().

int ora::RelationalRefLoader::m_refId
private

Definition at line 165 of file UniqueRefStreamer.cc.

Referenced by load().

bool ora::RelationalRefLoader::m_valid
private

Definition at line 166 of file UniqueRefStreamer.cc.

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