|
ActiveLib
|
#include <Handler.h>
Public Types | |
| using | Shared = std::shared_ptr<Handler> |
| Shared pointer. | |
| using | Reconstruction = std::function<void*(const Object& object)> |
Public Member Functions | |
| Handler () | |
| template<typename T , class Obj > requires Reconstructable<T> && Typed<Obj> | |
| T * | reconstruct (const Obj &incoming) const |
| template<typename T > requires Transportable<T> | |
| void | add (std::initializer_list< active::utility::String > const &tags) |
| template<typename T > requires Transportable<T> | |
| void | add (const active::utility::String &tag) |
A class for shipping (sending/receiving) objects in a serialised document
The primary role of this class is to reconstruct class instances from the serialised document objects. An instance of this class should be populated with the identifying tags and reconstruction functions for all required document object types
|
inline |
Default constructor
|
inline |
Add a method of reconstructing an object of a specified type
| tag | A tag that may be used to identify the object type |
|
inline |
Add a method of reconstructing objects of a specified type
| tags | Tag(s) that may be used to identify an object of this type |
|
inline |
Reconstruct a class instance from an incoming serialised document object
| incoming | The incoming serialised document object |