35 #ifndef _Wolframe_MODULE_AUTHENTICATION_CONSTRUCTOR_HPP_INCLUDED
36 #define _Wolframe_MODULE_AUTHENTICATION_CONSTRUCTOR_HPP_INCLUDED
41 #include <boost/lexical_cast.hpp>
49 template<
class UNIT,
class CONFIG>
59 const CONFIG* cfg =
dynamic_cast<const CONFIG*
>(&cfgi);
60 if (!cfg)
throw std::logic_error(
"internal: wrong configuration interface passed to authentication constructor");
61 UNIT* rt =
new UNIT( *cfg);
72 return "AuthenticationConstructor";
virtual ~AuthenticationConstructor()
Definition: authenticationConstructor.hpp:56
Base classes for virtual constructors to build objects loaded from modules.
virtual ObjectConstructorBase::ObjectType objectType() const
The type of the object. Filter, DDL compiler, authentication etc.
Definition: authenticationConstructor.hpp:65
ObjectType
Definition: constructor.hpp:47
virtual const char * objectClassName() const
Definition: authenticationConstructor.hpp:70
Basic interface classes that to build objects and the Wolframe module interface.
Constructor of an authentication unit.
Definition: authenticationConstructor.hpp:50
A named configuration is a normal configuration that provides also an className function.
Definition: configurationBase.hpp:126
Definition: constructor.hpp:48
virtual UNIT * object(const _Wolframe::config::NamedConfiguration &cfgi)
Definition: authenticationConstructor.hpp:57
AuthenticationConstructor()
Definition: authenticationConstructor.hpp:54
top-level header file for authentication unit interface