CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::STLContainerUpdater Class Reference

#include <STLContainerStreamer.h>

Inheritance diagram for ora::STLContainerUpdater:
ora::IRelationalUpdater

List of all members.

Public Member Functions

bool build (DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)
void setRecordId (const std::vector< int > &identity)
 STLContainerUpdater (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema)
 Constructor.
void update (int oid, const void *data)
 Updates a data element.
virtual ~STLContainerUpdater ()

Private Attributes

RelationalDeleter m_deleter
STLContainerWriter m_writer

Detailed Description

Definition at line 57 of file STLContainerStreamer.h.


Constructor & Destructor Documentation

ora::STLContainerUpdater::STLContainerUpdater ( const Reflex::Type &  objectType,
MappingElement mapping,
ContainerSchema contSchema 
)

Constructor.

Definition at line 199 of file STLContainerStreamer.cc.

                                                                           :
  m_deleter( mapping ),
  m_writer( objectType, mapping, contSchema ){
}
ora::STLContainerUpdater::~STLContainerUpdater ( ) [virtual]

Definition at line 206 of file STLContainerStreamer.cc.

                                            {
}

Member Function Documentation

bool ora::STLContainerUpdater::build ( DataElement offset,
IRelationalData relationalData,
RelationalBuffer operationBuffer 
) [virtual]

Implements ora::IRelationalUpdater.

Definition at line 209 of file STLContainerStreamer.cc.

                                                                        {
  m_deleter.build( operationBuffer );
  m_writer.build( offset, relationalData, operationBuffer );
  return true;
}
void ora::STLContainerUpdater::setRecordId ( const std::vector< int > &  identity) [virtual]

Implements ora::IRelationalUpdater.

Definition at line 217 of file STLContainerStreamer.cc.

                                                                        {
  m_writer.setRecordId( identity );
}
void ora::STLContainerUpdater::update ( int  oid,
const void *  data 
) [virtual]

Updates a data element.

Implements ora::IRelationalUpdater.

Definition at line 221 of file STLContainerStreamer.cc.

                                                         {
  m_deleter.erase( oid );
  m_writer.write( oid, data );
}

Member Data Documentation

Definition at line 75 of file STLContainerStreamer.h.

Definition at line 76 of file STLContainerStreamer.h.