#include <PVectorStreamer.h>
Definition at line 23 of file PVectorStreamer.h.
Constructor.
Definition at line 31 of file PVectorStreamer.cc.
35 m_writer( objectType, mapping, contSchema ){
STLContainerWriter m_writer
RelationalBuffer * m_buffer
ora::PVectorUpdater::~PVectorUpdater |
( |
| ) |
|
|
virtual |
Implements ora::IRelationalUpdater.
Definition at line 41 of file PVectorStreamer.cc.
bool build(DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)
STLContainerWriter m_writer
RelationalBuffer * m_buffer
void ora::PVectorUpdater::setRecordId |
( |
const std::vector< int > & |
identity | ) |
|
|
virtual |
void ora::PVectorUpdater::update |
( |
int |
oid, |
|
|
const void * |
data |
|
) |
| |
|
virtual |
Updates a data element.
Implements ora::IRelationalUpdater.
Definition at line 52 of file PVectorStreamer.cc.
References ora::deleteArrayElements(), ora::IArrayHandler::persistentSize(), ora::IArrayHandler::size(), and ora::throwException().
Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().
56 "PVectorUpdater::update");
62 size_t arraySize = arrayHandler.
size(arrayData);
63 size_t* persistentSize = arrayHandler.persistentSize(arrayData);
64 if(*persistentSize>arraySize){
67 else if(*persistentSize<arraySize) {
70 *persistentSize = arraySize;
void * address(const void *topLevelAddress) const
DataElement * dataElement()
virtual size_t size(const void *address)=0
Returns the size of the container.
void deleteArrayElements(MappingElement &mapping, int oid, int fromIndex, RelationalBuffer &buffer)
void write(int oid, const void *data)
Writes a data element.
MappingElement & mapping()
STLContainerWriter m_writer
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
RelationalBuffer * m_buffer
char data[epos_bytes_allocation]
IArrayHandler * arrayHandler()