![]() |
Qore Programming Language - C/C++ Library 2.1.1
|
serialization context object used in builtin serializer methods More...
#include <common.h>
Public Member Functions | |
| DLLEXPORT void | addModule (const char *module) |
| Adds a module to be loaded when the data is deserialized. | |
| DLLEXPORT int64 | getFlags () const |
| Returns the current serialization flag bitfield. | |
| DLLEXPORT int | serializeHash (const QoreHashNode &h, std::string &index, ExceptionSink *xsink) |
| Serializes the given hash and returns the serialization index. | |
| DLLEXPORT int | serializeList (const QoreListNode &l, std::string &index, ExceptionSink *xsink) |
| Serializes the given list and returns the serialization index. | |
| DLLEXPORT int | serializeObject (const QoreObject &obj, std::string &index, ExceptionSink *xsink) |
| Serializes the given object and returns the serialization index. | |
| DLLEXPORT QoreValue | serializeValue (const QoreValue val, ExceptionSink *xsink) |
| Serializes the given value and returns a serialized value representing the value to be serialized. | |
serialization context object used in builtin serializer methods
| DLLEXPORT int QoreSerializationContext::serializeHash | ( | const QoreHashNode & | h, |
| std::string & | index, | ||
| ExceptionSink * | xsink ) |
Serializes the given hash and returns the serialization index.
Throws a Qore-language exception if there is an error serializing the hash
| DLLEXPORT int QoreSerializationContext::serializeList | ( | const QoreListNode & | l, |
| std::string & | index, | ||
| ExceptionSink * | xsink ) |
Serializes the given list and returns the serialization index.
Throws a Qore-language exception if there is an error serializing the list
| DLLEXPORT int QoreSerializationContext::serializeObject | ( | const QoreObject & | obj, |
| std::string & | index, | ||
| ExceptionSink * | xsink ) |
Serializes the given object and returns the serialization index.
Throws a Qore-language exception if there is an error serializing the object
| DLLEXPORT QoreValue QoreSerializationContext::serializeValue | ( | const QoreValue | val, |
| ExceptionSink * | xsink ) |
Serializes the given value and returns a serialized value representing the value to be serialized.
throws a Qore-language exception if there is an error serializing the object