Qore Programming Language 1.19.5
Loading...
Searching...
No Matches
QoreSerializationContext Class Reference

serialization context object used in builtin serializer methods More...

#include <common.h>

Public Member Methods

DLLEXPORT void addModule (const char *module)
 adds a module to be loaded when the data is deserialized
 
DLLEXPORT int serializeObject (const QoreObject &obj, std::string &index, ExceptionSink *xsink)
 serializes the given object and return the serialization index More...
 
DLLEXPORT QoreValue serializeValue (const QoreValue val, ExceptionSink *xsink)
 serializes the given value and returns a serialized value representing the value to be serialized More...
 

Detailed Description

serialization context object used in builtin serializer methods

Since
Qore 0.9

Member Function Documentation

◆ serializeObject()

DLLEXPORT int QoreSerializationContext::serializeObject ( const QoreObject obj,
std::string &  index,
ExceptionSink xsink 
)

serializes the given object and return the serialization index

throws a Qore-language exception if there is an error serializing the object

◆ serializeValue()

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


The documentation for this class was generated from the following file: