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 141 of file CArrayStreamer.cc.

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

Definition at line 148 of file CArrayStreamer.cc.

148  {
149 }

Member Function Documentation

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

Implements ora::IRelationalUpdater.

Definition at line 151 of file CArrayStreamer.cc.

Referenced by psClasses.BuildThread::run().

153  {
154  m_deleter.build( operationBuffer );
155  m_writer.build( offset, relationalData, operationBuffer );
156  return true;
157 }
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 159 of file CArrayStreamer.cc.

159  {
160  m_writer.setRecordId( identity );
161 }
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 163 of file CArrayStreamer.cc.

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

164  {
165  m_deleter.erase( oid );
166  m_writer.write( oid, data );
167 }
CArrayWriter m_writer
RelationalDeleter m_deleter
void write(int oid, const void *data)
Writes a data element.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82

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.