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

#include <CArrayStreamer.h>

Inheritance diagram for ora::CArrayUpdater:
ora::IRelationalUpdater

Public Member Functions

bool build (DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)
 
 CArrayUpdater (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema)
 Constructor. More...
 
void setRecordId (const std::vector< int > &identity)
 
void update (int oid, const void *data)
 Updates a data element. More...
 
virtual ~CArrayUpdater ()
 
- Public Member Functions inherited from ora::IRelationalUpdater
virtual ~IRelationalUpdater ()
 

Private Attributes

RelationalDeleter m_deleter
 
CArrayWriter m_writer
 

Detailed Description

Definition at line 50 of file CArrayStreamer.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 142 of file CArrayStreamer.cc.

144  :
145  m_deleter( mapping ),
146  m_writer( objectType, mapping, contSchema ){
147 }
CArrayWriter m_writer
RelationalDeleter m_deleter
ora::CArrayUpdater::~CArrayUpdater ( )
virtual

Definition at line 149 of file CArrayStreamer.cc.

149  {
150 }

Member Function Documentation

bool ora::CArrayUpdater::build ( DataElement offset,
IRelationalData relationalData,
RelationalBuffer operationBuffer 
)
virtual

Implements ora::IRelationalUpdater.

Definition at line 152 of file CArrayStreamer.cc.

154  {
155  m_deleter.build( operationBuffer );
156  m_writer.build( offset, relationalData, operationBuffer );
157  return true;
158 }
bool build(DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)
CArrayWriter m_writer
RelationalDeleter m_deleter
unsigned int offset(bool)
void build(RelationalBuffer &buffer)
void ora::CArrayUpdater::setRecordId ( const std::vector< int > &  identity)
virtual

Implements ora::IRelationalUpdater.

Definition at line 160 of file CArrayStreamer.cc.

160  {
161  m_writer.setRecordId( identity );
162 }
CArrayWriter m_writer
void setRecordId(const std::vector< int > &identity)
void ora::CArrayUpdater::update ( int  oid,
const void *  data 
)
virtual

Updates a data element.

Implements ora::IRelationalUpdater.

Definition at line 164 of file CArrayStreamer.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().

165  {
166  m_deleter.erase( oid );
167  m_writer.write( oid, data );
168 }
CArrayWriter m_writer
RelationalDeleter m_deleter
void write(int oid, const void *data)
Writes a data element.

Member Data Documentation

RelationalDeleter ora::CArrayUpdater::m_deleter
private

Definition at line 68 of file CArrayStreamer.h.

CArrayWriter ora::CArrayUpdater::m_writer
private

Definition at line 69 of file CArrayStreamer.h.