Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
ExternalSolver Class Reference

#include <elm/serial2/serial.h>

Public Member Functions

virtual ~ExternalSolver (void)
 
voidsolve (string ref)
 
string ref (void *object)
 

Static Public Attributes

static ExternalSolver null
 

Detailed Description

The external solver is used by Serializer and Unserializer classes to solve reference to object out of the scope the currently serialized / unserialized object.

For serializing, the solver provides references to object that does not need to be serialized but a reference is obtained and stored instead.

For unserializing, this solver provide pointer to object internal to the user application and that are linked with unserialized objects. When a reference cannot be solved, it is considered as being provided by the application and the solver is called for solving it.

Its default implementation considers there is not external object.

Constructor & Destructor Documentation

◆ ~ExternalSolver()

~ExternalSolver ( void  )
virtual

Member Function Documentation

◆ ref()

string ref ( void object)

Test if the given object is an external object and return its reference.

Parameters
objectObject to test for.
Returns
External reference of the object or an empty string.

◆ solve()

void * solve ( string  ref)

Try to resolve an external reference.

Parameters
refReference to resolve.
Returns
Reference to matching object or null.

Referenced by XOMUnserializer::flush().

Member Data Documentation

◆ null

ExternalSolver null
static

Null external solver.


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