GemStone::GemFire::Cache::Generic::IPdxSerializer Interface Reference

Inherited by GemStone::GemFire::Cache::Generic::ReflectionBasedAutoSerializer [private].


Detailed Description

The IPdxSerializer interface allows domain classes to be serialized and deserialized as PDXs without modification of the domain class. A domain class should register delgate Serializable.RegisterPdxType to create new instance of type for de-serilization.

Public Member Functions

Object^ FromData (String^ classname, IPdxReader^ reader)
bool ToData (Object^ o, IPdxWriter^ writer)

Member Function Documentation

Object ^ GemStone::GemFire::Cache::Generic::IPdxSerializer::FromData ( String^   classname,
IPdxReader^   reader 
)

Deserialize this object.

Parameters:
classname the classname whose object need to de-serialize
reader the IPdxReader stream to use for reading the object data

Implemented in GemStone::GemFire::Cache::Generic::ReflectionBasedAutoSerializer.

bool GemStone::GemFire::Cache::Generic::IPdxSerializer::ToData ( Object^   o,
IPdxWriter^   writer 
)

Serializes this object in gemfire PDX format.

Parameters:
o the object which need to serialize
writer the IPdxWriter object to use for serializing the object

Implemented in GemStone::GemFire::Cache::Generic::ReflectionBasedAutoSerializer.


GemFire C++ Cache .NET API Documentation