20#ifndef GEODE_WRITABLEPDXINSTANCE_H_
21#define GEODE_WRITABLEPDXINSTANCE_H_
25#include "PdxInstance.hpp"
26#include "Serializable.hpp"
32class CacheableObjectArray;
61 virtual void setField(
const std::string& fieldName,
62 std::shared_ptr<Cacheable> value) = 0;
77 virtual void setField(
const std::string& fieldName,
bool value) = 0;
96 virtual void setField(
const std::string& fieldName,
signed char value) = 0;
115 virtual void setField(
const std::string& fieldName,
unsigned char value) = 0;
130 virtual void setField(
const std::string& fieldName, int16_t value) = 0;
145 virtual void setField(
const std::string& fieldName, int32_t value) = 0;
160 virtual void setField(
const std::string& fieldName, int64_t value) = 0;
175 virtual void setField(
const std::string& fieldName,
float value) = 0;
190 virtual void setField(
const std::string& fieldName,
double value) = 0;
205 virtual void setField(
const std::string& fieldName,
char16_t value) = 0;
222 virtual void setField(
const std::string& fieldName,
223 std::shared_ptr<CacheableDate> value) = 0;
238 virtual void setField(
const std::string& fieldName,
239 const std::vector<bool>& value) = 0;
254 virtual void setField(
const std::string& fieldName,
255 const std::vector<int8_t>& value) = 0;
270 virtual void setField(
const std::string& fieldName,
271 const std::vector<int16_t>& value) = 0;
286 virtual void setField(
const std::string& fieldName,
287 const std::vector<int32_t>& value) = 0;
302 virtual void setField(
const std::string& fieldName,
303 const std::vector<int64_t>& value) = 0;
318 virtual void setField(
const std::string& fieldName,
319 const std::vector<float>& value) = 0;
334 virtual void setField(
const std::string& fieldName,
335 const std::vector<double>& value) = 0;
350 virtual void setField(
const std::string& fieldName,
351 const std::string& value) = 0;
366 virtual void setField(
const std::string& fieldName,
367 const std::vector<char16_t>& value) = 0;
384 virtual void setField(
const std::string& fieldName, std::string* value,
404 virtual void setField(
const std::string& fieldName, int8_t** value,
405 int32_t arrayLength, int32_t* elementLength) = 0;
422 virtual void setField(
const std::string& fieldName,
423 std::shared_ptr<CacheableObjectArray> value) = 0;
PdxInstance provides run time access to the fields of a PDX without deserializing the PDX.
Definition: PdxInstance.hpp:51
WritablePdxInstance is a PdxInstance that also supports field modification using the setField method.
Definition: WritablePdxInstance.hpp:40
virtual void setField(const std::string &fieldName, float value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::vector< float > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, std::shared_ptr< Cacheable > value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::vector< int8_t > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::vector< bool > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, int64_t value)=0
Set the existing named field to the given value.
WritablePdxInstance()=default
constructors
virtual void setField(const std::string &fieldName, const std::vector< int16_t > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::vector< char16_t > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, char16_t value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, std::string *value, int32_t length)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, signed char value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, bool value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, unsigned char value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, int32_t value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::vector< double > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::vector< int64_t > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::string &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, int16_t value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, std::shared_ptr< CacheableDate > value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, const std::vector< int32_t > &value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, std::shared_ptr< CacheableObjectArray > value)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, int8_t **value, int32_t arrayLength, int32_t *elementLength)=0
Set the existing named field to the given value.
virtual void setField(const std::string &fieldName, double value)=0
Set the existing named field to the given value.
virtual ~WritablePdxInstance()=default
destructor