Callback class for serialization.
More...
#include <misc/pv/serialize.h>
Callback class for serialization.
This must be provided by code that calls serialize.
Definition at line 42 of file serialize.h.
virtual epics::pvData::SerializableControl::~SerializableControl |
( |
| ) |
|
|
inlinevirtual |
virtual void epics::pvData::SerializableControl::cachedSerialize |
( |
std::tr1::shared_ptr< const Field > const & |
field, |
|
|
ByteBuffer * |
buffer |
|
) |
| |
|
pure virtual |
serialize via cache
- Parameters
-
field | instance to be serialized |
buffer | buffer to be serialized to |
virtual bool epics::pvData::SerializableControl::directSerialize |
( |
ByteBuffer * |
existingBuffer, |
|
|
const char * |
toSerialize, |
|
|
std::size_t |
elementCount, |
|
|
std::size_t |
elementSize |
|
) |
| |
|
pure virtual |
Method for serializing primitive array data. Hook for supplying custom serialization implementation. The serialization implementation need not be provided. Returns true if method performs serialization, 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. |
toSerialize | location of data to be put into buffer. |
elementCount | number of elements. |
elementSize | element size. |
- Returns
- true if serialization performed, else false.
virtual void epics::pvData::SerializableControl::ensureBuffer |
( |
std::size_t |
size | ) |
|
|
pure virtual |
Make sure buffer has at least size bytes remaining. If not flush existing buffer and provide a new one.
- Parameters
-
virtual void epics::pvData::SerializableControl::flushSerializeBuffer |
( |
| ) |
|
|
pure virtual |
Done with this buffer. Flush it.
The documentation for this class was generated from the following file: