smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
Loading...
Searching...
No Matches
Classes | Static Protected Member Functions | List of all members
smgl::policy::DefaultFactoryError< IdentifierType, ProductType > Class Template Reference

Default factory error policy. More...

#include <smgl/Factory.hpp>

Classes

class  unknown_identifier
 Default exception thrown when registered type not found. More...
 

Static Protected Member Functions

static ProductType OnUnknownType (const IdentifierType &id)
 
static IdentifierType OnUnnamedType (const std::type_info &info)
 

Detailed Description

template<class IdentifierType, class ProductType>
class smgl::policy::DefaultFactoryError< IdentifierType, ProductType >

Default factory error policy.

Definition at line 14 of file Factory.hpp.

Member Function Documentation

◆ OnUnknownType()

template<class IdentifierType , class ProductType >
P smgl::policy::DefaultFactoryError< I, P >::OnUnknownType ( const IdentifierType &  id)
staticprotected

Executes when unregistered identifier encountered

Exceptions
unknown_identifier

Definition at line 20 of file FactoryImpl.hpp.

◆ OnUnnamedType()

template<class I , class P >
I smgl::policy::DefaultFactoryError< I, P >::OnUnnamedType ( const std::type_info info)
staticprotected

Executes when unregistered type-info encountered

Exceptions
unknown_identifier

Definition at line 26 of file FactoryImpl.hpp.


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