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::STLContainerUpdater Class Reference

#include <STLContainerStreamer.h>

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

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. More...
 
void update (int oid, const void *data)
 Updates a data element. More...
 
virtual ~STLContainerUpdater ()
 
- Public Member Functions inherited from ora::IRelationalUpdater
virtual ~IRelationalUpdater ()
 

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.

201  :
202  m_deleter( mapping ),
203  m_writer( objectType, mapping, contSchema ){
204 }
ora::STLContainerUpdater::~STLContainerUpdater ( )
virtual

Definition at line 206 of file STLContainerStreamer.cc.

206  {
207 }

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.

211  {
212  m_deleter.build( operationBuffer );
213  m_writer.build( offset, relationalData, operationBuffer );
214  return true;
215 }
bool build(DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)
unsigned int offset(bool)
void build(RelationalBuffer &buffer)
void ora::STLContainerUpdater::setRecordId ( const std::vector< int > &  identity)
virtual

Implements ora::IRelationalUpdater.

Definition at line 217 of file STLContainerStreamer.cc.

217  {
218  m_writer.setRecordId( identity );
219 }
void setRecordId(const std::vector< int > &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.

Referenced by python.seqvaluedict.seqdict::__setslice__(), python.Vispa.Gui.VispaWidget.VispaWidget::autosize(), python.Vispa.Views.LineDecayView.LineDecayContainer::createObject(), python.Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), python.Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), python.Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), python.Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), python.Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), python.Vispa.Gui.FindDialog.FindDialog::reset(), python.Vispa.Gui.PortConnection.PointToPointConnection::select(), python.Vispa.Gui.VispaWidget.VispaWidget::select(), python.Vispa.Views.LineDecayView.LineDecayContainer::select(), python.Vispa.Gui.VispaWidget.VispaWidget::setText(), python.Vispa.Gui.VispaWidget.VispaWidget::setTitle(), python.Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), python.Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and python.Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

222  {
223  m_deleter.erase( oid );
224  m_writer.write( oid, data );
225 }
void write(int oid, const void *data)
Writes a data element.

Member Data Documentation

RelationalDeleter ora::STLContainerUpdater::m_deleter
private

Definition at line 75 of file STLContainerStreamer.h.

STLContainerWriter ora::STLContainerUpdater::m_writer
private

Definition at line 76 of file STLContainerStreamer.h.