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

#include <ObjectStreamer.h>

Inheritance diagram for ora::ObjectUpdater:
ora::ObjectStreamerBase ora::IRelationalUpdater

Public Member Functions

bool build (DataElement &dataElement, IRelationalData &relationalData, RelationalBuffer &operationBuffer)
 
 ObjectUpdater (const edm::TypeWithDict &objectType, MappingElement &mapping, ContainerSchema &contSchema)
 
void processDataMember (DataElement &dataElement, IRelationalData &relationalData, edm::TypeWithDict &dataMemberType, MappingElement &dataMemberMapping, RelationalBuffer *operationBuffer)
 
void setRecordId (const std::vector< int > &identity)
 
void update (int oid, const void *data)
 Updates a data element. More...
 
virtual ~ObjectUpdater ()
 
- Public Member Functions inherited from ora::ObjectStreamerBase
void buildBaseDataMembers (DataElement &dataElement, IRelationalData &relationalData, const edm::TypeWithDict &objType, RelationalBuffer *operationBuffer)
 
bool buildDataMembers (DataElement &dataElement, IRelationalData &relationalData, RelationalBuffer *operationBuffer)
 
 ObjectStreamerBase (const edm::TypeWithDict &objectType, MappingElement &mapping, ContainerSchema &contSchema)
 
virtual ~ObjectStreamerBase ()
 
- Public Member Functions inherited from ora::IRelationalUpdater
virtual ~IRelationalUpdater ()
 

Private Attributes

std::vector< IRelationalUpdater * > m_updaters
 

Additional Inherited Members

- Protected Attributes inherited from ora::ObjectStreamerBase
RelationalStreamerFactory m_streamerFactory
 

Detailed Description

Definition at line 53 of file ObjectStreamer.h.

Constructor & Destructor Documentation

ora::ObjectUpdater::ObjectUpdater ( const edm::TypeWithDict objectType,
MappingElement mapping,
ContainerSchema contSchema 
)

Definition at line 189 of file ObjectStreamer.cc.

191  :
192  ObjectStreamerBase( objectType, mapping, contSchema ),
193  m_updaters(){
194 }
ObjectStreamerBase(const edm::TypeWithDict &objectType, MappingElement &mapping, ContainerSchema &contSchema)
std::vector< IRelationalUpdater * > m_updaters
ora::ObjectUpdater::~ObjectUpdater ( )
virtual

Definition at line 196 of file ObjectStreamer.cc.

196  {
197  for( std::vector< IRelationalUpdater* >::iterator iU = m_updaters.begin();
198  iU != m_updaters.end(); ++iU ){
199  delete *iU;
200  }
201  m_updaters.clear();
202 }
std::vector< IRelationalUpdater * > m_updaters

Member Function Documentation

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

Implements ora::IRelationalUpdater.

Definition at line 204 of file ObjectStreamer.cc.

Referenced by psClasses.BuildThread::run().

206  {
207  return buildDataMembers( dataElement, relationalData, &operationBuffer );
208 }
bool buildDataMembers(DataElement &dataElement, IRelationalData &relationalData, RelationalBuffer *operationBuffer)
void ora::ObjectUpdater::processDataMember ( DataElement dataElement,
IRelationalData relationalData,
edm::TypeWithDict dataMemberType,
MappingElement dataMemberMapping,
RelationalBuffer operationBuffer 
)
virtual

Implements ora::ObjectStreamerBase.

Definition at line 226 of file ObjectStreamer.cc.

References ora::IRelationalUpdater::build().

230  {
231  IRelationalUpdater* dataMemberUpdater = m_streamerFactory.newUpdater( dataMemberType, dataMemberMapping );
232  m_updaters.push_back( dataMemberUpdater );
233  dataMemberUpdater->build( dataMemberElement, relationalData, *operationBuffer );
234 }
std::vector< IRelationalUpdater * > m_updaters
IRelationalUpdater * newUpdater(const edm::TypeWithDict &dataType, MappingElement &dataMapping)
RelationalStreamerFactory m_streamerFactory
void ora::ObjectUpdater::setRecordId ( const std::vector< int > &  identity)
virtual

Implements ora::IRelationalUpdater.

Definition at line 210 of file ObjectStreamer.cc.

210  {
211  for( std::vector< IRelationalUpdater* >::iterator iU = m_updaters.begin();
212  iU != m_updaters.end(); ++iU){
213  (*iU)->setRecordId( identity );
214  }
215 }
std::vector< IRelationalUpdater * > m_updaters
void ora::ObjectUpdater::update ( int  oid,
const void *  data 
)
virtual

Updates a data element.

Writes a data element.

Implements ora::IRelationalUpdater.

Definition at line 218 of file ObjectStreamer.cc.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), 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(), dqm-mbProfile.Profile::finish(), 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(), MatrixUtil.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().

219  {
220  for( std::vector< IRelationalUpdater* >::iterator iU = m_updaters.begin();
221  iU != m_updaters.end(); ++iU ){
222  (*iU)->update( oid, data );
223  }
224 }
std::vector< IRelationalUpdater * > m_updaters
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82

Member Data Documentation

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

Definition at line 75 of file ObjectStreamer.h.