Qore Programming Language Reference Manual 2.1.2
Loading...
Searching...
No Matches
QC_Serializable.dox.h
1
3namespace Qore {
5
18}
19
21namespace Qore {
23
32}
33
35namespace Qore {
37
42 string _index;
44 string _weak;
45};
46}
47
49namespace Qore {
51
60}
61
63namespace Qore {
65
74}
75
77namespace Qore {
79
101
102public:
104/***/
106
107public:
109/***/
111
112private:
114
153
154public:
156
173
174public:
176
194
195private:
197
240
241public:
243
264
265public:
267
284
285public:
287
302static auto deserialize(binary bin, __7_ int flags);
303
304public:
306
324static auto deserialize(string bin, __7_ int flags);
325
326public:
328
345
346public:
348
365
366public:
368
385
386public:
388
405static serialize(auto val, OutputStream stream, __7_ int flags);
406
407public:
409
427static binary serialize(auto val, __7_ int flags);
428
429public:
431
453};
459
463
468
474}
This class defines an abstract interface for input streams.
Definition QC_InputStream.dox.h:19
This class defines an abstract interface for output streams.
Definition QC_OutputStream.dox.h:18
The Serializable class can be used to mark a class as being serializable.
Definition QC_Serializable.dox.h:100
copy()
The copy constructor does not perform any action; this class is just used to mark a class as serializ...
binary serialize(*int flags)
converts the object to binary data representing the object
static auto deserialize(string bin, *int flags)
Deserializes data produced with serialize() and returns the value represented by the data.
static auto deserialize(InputStream stream, *int flags)
Deserializes data produced with serialize() and returns the value represented by the data.
static auto deserialize(binary bin, *int flags)
Deserializes data produced with serialize() and returns the value represented by the data.
static auto deserialize(hash< SerializationInfo > data, *int flags)
Deserializes data produced with serializeToData() 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 ...
nothing deserializeMembers(hash< auto > members)
overrides the default automatic member assignment logic for user classes during data deserialization
serialize(OutputStream stream, *int flags)
converts the object to binary data representing the object
static hash< SerializationInfo > deserializeToData(binary bin, *int flags)
Deserializes data produced with serialize() and returns the value represented by the data.
static binary serialize(auto val, *int flags)
serializes the data and returns the serialized data as a binary object
*hash< auto > serializeMembers(*hash< auto > members)
overrides the default automatic member retrieval for user classes during data serialization
hash< SerializationInfo > serializeToData(*int flags)
converts the object to a serialization hash representing the object
static hash< SerializationInfo > deserializeToData(InputStream stream, *int flags)
Deserializes data produced with serialize() and returns the value represented by the data.
static hash< SerializationInfo > serializeToData(auto val, *int flags)
converts the value to a serialization hash representing the value
static serialize(auto val, OutputStream stream, *int flags)
serializes the data and writes the serialized data to the given output stream
const QDF_MERGE_STATIC_CLASS_VARS
Deserialize static class vars and merge hashes; implies QDF_STATIC_CLASS_VARS.
Definition QC_Serializable.dox.h:470
const QDF_STATIC_CLASS_VARS
Deserialize static class vars.
Definition QC_Serializable.dox.h:472
const QSF_INCLUDE_STATIC_CLASS_VARS
Serialize static class vars of classes serialized.
Definition QC_Serializable.dox.h:461
list< auto > list(...)
Returns a list of the arguments passed at the top level.
binary binary()
Always returns an empty binary object (of zero length)
Qore namespace.
Definition QC_AbstractSmartLock.dox.h:2
hash serialization information for typed hashes or untyped hashes
Definition QC_Serializable.dox.h:54
string _hash
typed hash path name, if any; otherwise for an untyped hash: "^..." where ... is the complex value ty...
Definition QC_Serializable.dox.h:56
*hash< string, auto > _members
member values
Definition QC_Serializable.dox.h:58
object serialization information for an indexed object
Definition QC_Serializable.dox.h:40
string _index
index value
Definition QC_Serializable.dox.h:42
string _weak
index value that returns a weak reference
Definition QC_Serializable.dox.h:44
list serialization information
Definition QC_Serializable.dox.h:68
string _list
the complex list element type info
Definition QC_Serializable.dox.h:72
*list< auto > _elements
the data-serialized list elements
Definition QC_Serializable.dox.h:70
object serialization information
Definition QC_Serializable.dox.h:26
*hash< string, hash< string, auto > > _class_data
member values per class; class path -> member hash
Definition QC_Serializable.dox.h:30
string _class
class path name
Definition QC_Serializable.dox.h:28
serialization information
Definition QC_Serializable.dox.h:8
*hash< string, hash< auto > > _index
Unique object index.
Definition QC_Serializable.dox.h:12
*list< string > _modules
List of modules to load to support the data.
Definition QC_Serializable.dox.h:14
auto _data
Serialized data.
Definition QC_Serializable.dox.h:10
*hash< string, hash< auto > > _sdata
Serialized static class data.
Definition QC_Serializable.dox.h:16