test
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::InlineCArrayUpdater Class Reference

#include <InlineCArrayStreamer.h>

Inheritance diagram for ora::InlineCArrayUpdater:
ora::InlineCArrayStreamerBase ora::IRelationalUpdater

Public Member Functions

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

Private Attributes

std::vector< IRelationalUpdater * > m_updaters
 

Additional Inherited Members

- Protected Attributes inherited from ora::InlineCArrayStreamerBase
Reflex::Type m_arrayType
 
Reflex::Type m_objectType
 
RelationalStreamerFactory m_streamerFactory
 

Detailed Description

Definition at line 56 of file InlineCArrayStreamer.h.

Constructor & Destructor Documentation

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

Definition at line 98 of file InlineCArrayStreamer.cc.

100  :
101  InlineCArrayStreamerBase( objectType, mapping, contSchema ),
102  m_updaters(){
103 }
std::vector< IRelationalUpdater * > m_updaters
InlineCArrayStreamerBase(const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema)
ora::InlineCArrayUpdater::~InlineCArrayUpdater ( )
virtual

Definition at line 105 of file InlineCArrayStreamer.cc.

105  {
106  for( std::vector< IRelationalUpdater* >::iterator iU = m_updaters.begin();
107  iU != m_updaters.end(); ++iU ){
108  delete *iU;
109  }
110  m_updaters.clear();
111 }
std::vector< IRelationalUpdater * > m_updaters

Member Function Documentation

bool ora::InlineCArrayUpdater::build ( DataElement dataElement,
IRelationalData relationalData,
RelationalBuffer operationBuffer 
)
virtual

Implements ora::IRelationalUpdater.

Definition at line 122 of file InlineCArrayStreamer.cc.

Referenced by psClasses.BuildThread::run().

124  {
125  return buildDataElement( dataElement, relationalData, &operationBuffer );
126 }
bool buildDataElement(DataElement &dataElement, IRelationalData &relationalData, RelationalBuffer *operationBuffer)
void ora::InlineCArrayUpdater::processArrayElement ( DataElement arrayElementOffset,
IRelationalData relationalData,
MappingElement arrayElementMapping,
RelationalBuffer operationBuffer 
)
virtual

Implements ora::InlineCArrayStreamerBase.

Definition at line 113 of file InlineCArrayStreamer.cc.

References ora::IRelationalUpdater::build().

116  {
117  IRelationalUpdater* arrayElementUpdater = m_streamerFactory.newUpdater( m_arrayType, arrayElementMapping );
118  m_updaters.push_back( arrayElementUpdater );
119  arrayElementUpdater->build( arrayElementOffset, relationalData, *operationBuffer );
120 }
std::vector< IRelationalUpdater * > m_updaters
RelationalStreamerFactory m_streamerFactory
IRelationalUpdater * newUpdater(const Reflex::Type &dataType, MappingElement &dataMapping)
void ora::InlineCArrayUpdater::setRecordId ( const std::vector< int > &  identity)
virtual

Implements ora::IRelationalUpdater.

Definition at line 128 of file InlineCArrayStreamer.cc.

128  {
129  for( std::vector< IRelationalUpdater* >::iterator iU = m_updaters.begin();
130  iU != m_updaters.end(); ++iU){
131  (*iU)->setRecordId( identity );
132  }
133 }
std::vector< IRelationalUpdater * > m_updaters
void ora::InlineCArrayUpdater::update ( int  oid,
const void *  data 
)
virtual

Updates a data element.

Implements ora::IRelationalUpdater.

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

136  {
137  for( std::vector< IRelationalUpdater* >::iterator iU = m_updaters.begin();
138  iU != m_updaters.end(); ++iU ){
139  (*iU)->update( oid, data );
140  }
141 }
std::vector< IRelationalUpdater * > m_updaters
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82

Member Data Documentation

std::vector<IRelationalUpdater*> ora::InlineCArrayUpdater::m_updaters
private

Definition at line 70 of file InlineCArrayStreamer.h.