ActiveLib
Loading...
Searching...
No Matches
Classes | Concepts | Functions
active::serialise::doc Namespace Reference

Classes

class  Handler
 
class  Object
 

Concepts

concept  Serialisable
 Concept for classes that can be serialised into a document.
 
concept  Reconstructable
 Concept for classes that can reconstruct an instance from a serialised document object.
 
concept  Transportable
 Concept for classes that can be transported in a serialised document.
 
concept  Typed
 Concept for classes that specify a document type name to reconstruct objects from serialised data.
 

Functions

template<typename T >
requires Reconstructable<T>
void * reconstructFunc (const Object &incoming)
 

Detailed Description

Copyright 2024 Ralph Wessel and Hugh Wessel Distributed under the MIT License (See accompanying file LICENSE.txt or copy at https://opensource.org/license/mit/)

Function Documentation

◆ reconstructFunc()

template<typename T >
requires Reconstructable<T>
void * active::serialise::doc::reconstructFunc ( const Object & incoming)

Factory function to reconstruct an object instance based on an incoming serialised document object

Parameters
incomingThe incoming document object
Returns
A new instance reconstructed from the document object (nullptr on failure)