6#include <amdis/Output.hpp>
22 template <
class BaseClass>
32 virtual std::unique_ptr<BaseClass>
create() = 0;
41 template <
class BaseClass>
47 std::unique_ptr<BaseClass>
create() final
49 error_exit(
"Should not be called. Call create(string) instead!");
63 template <
class BaseClass>
67 test_exit_dbg(result,
"Can not cast CreatorInterface to CreatorInterfaceName!");
Interface for creators with name.
Definition: CreatorInterface.hpp:44
virtual std::unique_ptr< BaseClass > createWithString(std::string)=0
Must be implemented by sub classes of CreatorInterfaceName. Creates a new instance of the sub class o...
std::unique_ptr< BaseClass > create() final
Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of Ba...
Definition: CreatorInterface.hpp:47
Interface for the implementation of the factory method pattern. The creation of an object of a sub cl...
Definition: CreatorInterface.hpp:24
virtual std::unique_ptr< BaseClass > create()=0
Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of Ba...