CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::RelationalRefLoader Class Reference

Inheritance diagram for ora::RelationalRefLoader:
ora::IPtrLoader

List of all members.

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 ()

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) [inline, explicit]

Definition at line 132 of file UniqueRefStreamer.cc.

                                               :
        m_reader(),
        m_refId( refId ),
        m_valid( false ){
      }
virtual ora::RelationalRefLoader::~RelationalRefLoader ( ) [inline, virtual]

Definition at line 138 of file UniqueRefStreamer.cc.

                                    {
      }

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.

                                                                                                      {
        m_reader.build( objectType, mapping, contSchema );
        m_valid = true;
      }
void ora::RelationalRefLoader::invalidate ( ) [inline, virtual]

Implements ora::IPtrLoader.

Definition at line 155 of file UniqueRefStreamer.cc.

References m_valid.

                       {
        m_valid = false;
      }
bool ora::RelationalRefLoader::isValid ( void  ) const [inline, virtual]

Implements ora::IPtrLoader.

Definition at line 159 of file UniqueRefStreamer.cc.

References m_valid.

                          {
        return m_valid;
      }
void* ora::RelationalRefLoader::load ( ) const [inline, virtual]

Implements ora::IPtrLoader.

Definition at line 147 of file UniqueRefStreamer.cc.

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

                         {
        if(!m_valid){
          throwException("Ref Loader has been invalidate.",
                         "RelationalRefLoader::load");
        }
        return m_reader.read( m_refId );
      }

Member Data Documentation

Definition at line 164 of file UniqueRefStreamer.cc.

Referenced by build(), and load().

Definition at line 165 of file UniqueRefStreamer.cc.

Referenced by load().

Definition at line 166 of file UniqueRefStreamer.cc.

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