20#ifndef GEODE_PDXREADER_H_
21#define GEODE_PDXREADER_H_
24#include "PdxUnreadFields.hpp"
31class CacheableObjectArray;
79 virtual char16_t readChar(
const std::string& fieldName) = 0;
101 virtual int8_t
readByte(
const std::string& fieldName) = 0;
112 virtual int16_t
readShort(
const std::string& fieldName) = 0;
123 virtual int32_t
readInt(
const std::string& fieldName) = 0;
134 virtual int64_t
readLong(
const std::string& fieldName) = 0;
145 virtual float readFloat(
const std::string& fieldName) = 0;
168 virtual std::string
readString(
const std::string& fieldName) = 0;
180 const std::string& fieldName) = 0;
191 virtual std::vector<char16_t>
readCharArray(
const std::string& fieldName) = 0;
212 virtual std::vector<int8_t>
readByteArray(
const std::string& fieldName) = 0;
236 virtual std::vector<int32_t>
readIntArray(
const std::string& fieldName) = 0;
248 virtual std::vector<int64_t>
readLongArray(
const std::string& fieldName) = 0;
283 const std::string& fieldName) = 0;
296 const std::string& fieldName) = 0;
312 int32_t& arrayLength,
313 int32_t** elementLength) = 0;
326 const std::string& fieldName) = 0;
336 virtual bool hasField(
const std::string& fieldName) = 0;
363 virtual std::shared_ptr<PdxSerializer> getPdxSerializer()
const = 0;
Contains generic template definitions for Cacheable types and instantiations for built-in types.
A PdxReader will be passed to PdxSerializable.fromData or during deserialization of a PDX.
Definition: PdxReader.hpp:58
virtual std::vector< float > readFloatArray(const std::string &fieldName)=0
Read a float* value from the PdxReader and sets array length.
virtual std::vector< std::string > readStringArray(const std::string &fieldName)=0
Read a array of strings from the PdxReader.
PdxReader()
constructors
Definition: PdxReader.hpp:63
virtual int8_t readByte(const std::string &fieldName)=0
Read a int8_t value from the PdxReader.
virtual bool hasField(const std::string &fieldName)=0
Checks if the named field exists and returns the result.
virtual std::vector< double > readDoubleArray(const std::string &fieldName)=0
Read a double* value from the PdxReader and sets array length.
virtual char16_t readChar(const std::string &fieldName)=0
Read a wide char value from the PdxReader.
virtual bool readBoolean(const std::string &fieldName)=0
Read a bool value from the PdxReader.
virtual int16_t readShort(const std::string &fieldName)=0
Read a int16_t value from the PdxReader.
virtual std::vector< char16_t > readCharArray(const std::string &fieldName)=0
Read a char16_t* value from the PdxReader and sets array length.
virtual std::vector< int32_t > readIntArray(const std::string &fieldName)=0
Read a int32_t* value from the PdxReader and sets array length.
virtual std::vector< int8_t > readByteArray(const std::string &fieldName)=0
Read a int8_t* value from the PdxReader and sets array length.
virtual std::vector< int16_t > readShortArray(const std::string &fieldName)=0
Read a int16_t* value from the PdxReader and sets array length.
virtual double readDouble(const std::string &fieldName)=0
Read a double value from the PdxReader.
virtual float readFloat(const std::string &fieldName)=0
Read a float value from the PdxReader.
virtual ~PdxReader()
destructor
Definition: PdxReader.hpp:68
virtual std::shared_ptr< CacheableObjectArray > readObjectArray(const std::string &fieldName)=0
Read a std::shared_ptr<CacheableObjectArray> value from the PdxReader.
virtual std::vector< int64_t > readLongArray(const std::string &fieldName)=0
Read a int64_t* value from the PdxReader and sets array length.
virtual std::string readString(const std::string &fieldName)=0
Read a std::string value from the PdxReader.
virtual std::shared_ptr< PdxUnreadFields > readUnreadFields()=0
This method returns an object that represents all the unread fields which must be passed to PdxWriter...
virtual bool isIdentityField(const std::string &fieldName)=0
Checks if the named field was PdxWriter#markIdentityFieldmarked as an identity field.
virtual std::shared_ptr< CacheableDate > readDate(const std::string &fieldName)=0
Read a std::shared_ptr<CacheableDate> value from the PdxReader.
virtual int32_t readInt(const std::string &fieldName)=0
Read a int32_t value from the PdxReader.
virtual std::vector< bool > readBooleanArray(const std::string &fieldName)=0
Read a bool* value from the PdxReader and sets array length.
virtual std::shared_ptr< Cacheable > readObject(const std::string &fieldName)=0
Read a std::shared_ptr<Cacheable> value from the PdxReader.
virtual int64_t readLong(const std::string &fieldName)=0
Read a int64_t value from the PdxReader.
virtual int8_t ** readArrayOfByteArrays(const std::string &fieldName, int32_t &arrayLength, int32_t **elementLength)=0
Read a int8_t** value from the PdxReader and sets ArrayOfByteArray's length and individual ByteArray'...