 |
Qore Programming Language Reference Manual
0.9.4.5
|
12 *hash<string, hash<ObjectSerializationInfo>>
_index;
object serialization information for an indexed object
Definition: QC_Serializable.dox.h:38
*hash< string, hash< string, auto > > _class_data
member values per class; class path -> member hash
Definition: QC_Serializable.dox.h:28
hash< SerializationInfo > serializeToData()
converts the object to a serialization hash representing the object
The Serializable class can be used to mark a class as being serializable.
Definition: QC_Serializable.dox.h:96
static auto deserialize(binary bin)
Deserializes data produced with serialize() and returns the value represented by the data.
*list< string > _modules
list of modules to load to support the data
Definition: QC_Serializable.dox.h:14
serialization information
Definition: QC_Serializable.dox.h:8
*hash< string, hash< ObjectSerializationInfo > > _index
unique object index
Definition: QC_Serializable.dox.h:12
auto _data
serialized data
Definition: QC_Serializable.dox.h:10
string _list
the complex list element type info
Definition: QC_Serializable.dox.h:68
static binary serialize(auto val)
serializes the data and returns the serialized data as a binary object
list serialization information
Definition: QC_Serializable.dox.h:64
string _index
index value
Definition: QC_Serializable.dox.h:40
*hash< auto > serializeMembers(*hash< auto > members)
overrides the default automatic member retrieval for user classes during data serialization
nothing deserializeMembers(hash< auto > members)
overrides the default automatic member assignment logic for user classes during data deserialization
static auto deserialize(InputStream stream)
Deserializes data produced with serialize() and returns the value represented by the data.
constructor()
The constructor does not perform any action; this class is just used to mark a class as serializable ...
serialize(OutputStream stream)
converts the object to binary data representing the object
*list< auto > _elements
the data-serialized list elements
Definition: QC_Serializable.dox.h:66
*hash< string, auto > _members
member values
Definition: QC_Serializable.dox.h:54
This class defines an abstract interface for output streams.
Definition: QC_OutputStream.dox.h:18
static auto deserialize(hash< SerializationInfo > data)
Deserializes data produced with serializeToData() and returns the value represented by the data.
binary serialize()
converts the object to binary data representing the object
string _class
class path name
Definition: QC_Serializable.dox.h:26
static hash< SerializationInfo > serializeToData(auto val)
converts the value to a serialization hash representing the value
static hash< SerializationInfo > deserializeToData(InputStream stream)
Deserializes data produced with serialize() and returns the value represented by the data.
object serialization information
Definition: QC_Serializable.dox.h:24
copy()
The copy constructor does not perform any action; this class is just used to mark a class as serializ...
static hash< SerializationInfo > deserializeToData(binary bin)
Deserializes data produced with serialize() and returns the value represented by the data.
static serialize(auto val, OutputStream stream)
serializes the data and writes the serialized data to the given output stream
static auto deserialize(string bin)
Deserializes data produced with serialize() and returns the value represented by the data.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
hash serialization information for typed hashes or untyped hashes
Definition: QC_Serializable.dox.h:50
string _hash
typed hash path name, if any; otherwise for an untyped hash: "^..." where ... is the complex value ty...
Definition: QC_Serializable.dox.h:52
binary binary()
Always returns an empty binary object (of zero length)