20#ifndef GEODE_PDXWRITER_H_
21#define GEODE_PDXWRITER_H_
25#include "internal/geode_globals.hpp"
31class CacheableObjectArray;
164 std::shared_ptr<CacheableDate> date) = 0;
177 const std::string& value) = 0;
197 std::shared_ptr<Cacheable> value) = 0;
210 const std::vector<bool>& array) = 0;
223 const std::vector<char16_t>& array) = 0;
236 const std::vector<int8_t>& array) = 0;
249 const std::vector<int16_t>& array) = 0;
262 const std::vector<int32_t>& array) = 0;
275 const std::vector<int64_t>& array) = 0;
288 const std::vector<float>& array) = 0;
301 const std::vector<double>& array) = 0;
314 const std::string& fieldName,
const std::vector<std::string>& array) = 0;
331 const std::string& fieldName,
332 std::shared_ptr<CacheableObjectArray> array) = 0;
348 int8_t*
const*
const array,
350 const int* elementLength) = 0;
390 std::shared_ptr<PdxUnreadFields> unread) = 0;
392 virtual std::shared_ptr<PdxSerializer> getPdxSerializer()
const = 0;
Contains generic template definitions for Cacheable types and instantiations for built-in types.
A PdxWriter will be passed to PdxSerializable.toData when it is serializing the domain class.
Definition: PdxWriter.hpp:41
virtual PdxWriter & writeBoolean(const std::string &fieldName, bool value)=0
Writes the named field with the given value to the serialized form.
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 & 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 & writeFloat(const std::string &fieldName, float value)=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 & 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 & writeObject(const std::string &fieldName, std::shared_ptr< Cacheable > 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 & 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.
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 & writeShort(const std::string &fieldName, int16_t value)=0
Writes the named field with the given value to the serialized form.
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 & 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 & 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 & writeInt(const std::string &fieldName, int32_t value)=0
Writes the named field with the given value to the serialized form.
PdxWriter()=default
constructors
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()=default
destructor
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 & 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 & 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 & writeByte(const std::string &fieldName, int8_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
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 & writeIntArray(const std::string &fieldName, const std::vector< int32_t > &array)=0
Writes the named field with the given value to the serialized form.