Callback class for deserialization.
More...
#include <misc/pv/serialize.h>
Callback class for deserialization.
This must be provided by code that calls deserialize.
Definition at line 93 of file serialize.h.
virtual epics::pvData::DeserializableControl::~DeserializableControl |
( |
| ) |
|
|
inlinevirtual |
virtual std::tr1::shared_ptr<const Field> epics::pvData::DeserializableControl::cachedDeserialize |
( |
ByteBuffer * |
buffer | ) |
|
|
pure virtual |
deserialize via cache
- Parameters
-
buffer | buffer to be deserialized from |
virtual bool epics::pvData::DeserializableControl::directDeserialize |
( |
ByteBuffer * |
existingBuffer, |
|
|
char * |
deserializeTo, |
|
|
std::size_t |
elementCount, |
|
|
std::size_t |
elementSize |
|
) |
| |
|
pure virtual |
Method for deserializing array data. Hook for supplying custom deserialization implementation. The deserialization implementation need not be provided. Returns true if method performs deserialization, false otherwise. This should only be used for arrays of primitive types. i.e. boolean, byte,..., double. It cannot be called for string, structure, or union arrays.
- Parameters
-
existingBuffer | the existing buffer from the caller. |
deserializeTo | location of data. |
elementCount | number of elements. |
elementSize | element size. |
- Returns
- true if deserialization performed, else false.
virtual void epics::pvData::DeserializableControl::ensureData |
( |
std::size_t |
size | ) |
|
|
pure virtual |
Helper method. Ensures specified size of bytes, provides it if necessary.
- Parameters
-
The documentation for this class was generated from the following file: