VMware Tanzu GemFire Native C++ Reference
10.1.5
|
20 #ifndef GEODE_PDXWRITER_H_
21 #define GEODE_PDXWRITER_H_
25 #include "internal/geode_globals.hpp"
31 class CacheableObjectArray;
33 class PdxUnreadFields;
165 std::shared_ptr<CacheableDate> date) = 0;
178 const std::string& value) = 0;
198 std::shared_ptr<Cacheable> value) = 0;
212 const std::vector<bool>& array) = 0;
226 const std::vector<char16_t>& array) = 0;
240 const std::vector<int8_t>& array) = 0;
254 const std::vector<int16_t>& array) = 0;
268 const std::vector<int32_t>& array) = 0;
282 const std::vector<int64_t>& array) = 0;
296 const std::vector<float>& array) = 0;
310 const std::vector<double>& array) = 0;
324 const std::string& fieldName,
const std::vector<std::string>& array) = 0;
341 const std::string& fieldName,
342 std::shared_ptr<CacheableObjectArray> array) = 0;
358 int8_t*
const*
const array,
360 const int* elementLength) = 0;
400 std::shared_ptr<PdxUnreadFields> unread) = 0;
402 virtual std::shared_ptr<PdxSerializer> getPdxSerializer()
const = 0;
408 #endif // GEODE_PDXWRITER_H_
virtual PdxWriter & writeByte(const std::string &fieldName, int8_t value)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeLongArray(const std::string &fieldName, const std::vector< int64_t > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeInt(const std::string &fieldName, int32_t value)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeChar(const std::string &fieldName, char16_t value)=0
Writes the named field with the given value to the serialized form The fields type is char16_t
A PdxWriter will be passed to PdxSerializable.toData when it is serializing the domain class.
Definition: PdxWriter.hpp:41
virtual PdxWriter & writeIntArray(const std::string &fieldName, const std::vector< int32_t > &array)=0
Writes the named field with the given value to the serialized form.
PdxWriter()=default
constructors
virtual PdxWriter & writeCharArray(const std::string &fieldName, const std::vector< char16_t > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeDate(const std::string &fieldName, std::shared_ptr< CacheableDate > date)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeByteArray(const std::string &fieldName, const std::vector< int8_t > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeShort(const std::string &fieldName, int16_t value)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeArrayOfByteArrays(const std::string &fieldName, int8_t *const *const array, int arrayLength, const int *elementLength)=0
Writes the named field with the given value to the serialized form.
virtual ~PdxWriter()=default
destructor
virtual PdxWriter & writeShortArray(const std::string &fieldName, const std::vector< int16_t > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeDouble(const std::string &fieldName, double value)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeLong(const std::string &fieldName, int64_t value)=0
Writes the named field with the given value to the serialized form.
Contains generic template definitions for Cacheable types and instantiations for built-in types.
virtual PdxWriter & writeString(const std::string &fieldName, const std::string &value)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeUnreadFields(std::shared_ptr< PdxUnreadFields > unread)=0
Writes the given unread fields to the serialized form.
virtual PdxWriter & writeStringArray(const std::string &fieldName, const std::vector< std::string > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeFloatArray(const std::string &fieldName, const std::vector< float > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeDoubleArray(const std::string &fieldName, const std::vector< double > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeFloat(const std::string &fieldName, float value)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & markIdentityField(const std::string &fieldName)=0
Indicate that the given field name should be included in hashCode and equals checks of this object on...
virtual PdxWriter & writeBooleanArray(const std::string &fieldName, const std::vector< bool > &array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeObjectArray(const std::string &fieldName, std::shared_ptr< CacheableObjectArray > array)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeBoolean(const std::string &fieldName, bool value)=0
Writes the named field with the given value to the serialized form.
virtual PdxWriter & writeObject(const std::string &fieldName, std::shared_ptr< Cacheable > value)=0
Writes the named field with the given value to the serialized form.
Apache Geode C++ Cache API Documentation