Loom
Public Member Functions | Static Public Member Functions | List of all members
FactoryBase Class Referenceabstract

Base class that factory is derived from. More...

#include <Module_Factory.h>

Inheritance diagram for FactoryBase:
Inheritance graph
[legend]

Public Member Functions

virtual void print_table () const =0
 
virtual LoomModuleCreate (LoomManager *manager, JsonVariant module) const =0
 

Static Public Member Functions

template<class T >
static T * CreateDefault ()
 Creates a LoomModule with its default parameters. More...
 

Detailed Description

Base class that factory is derived from.

Purpose is to allow LoomManger to have a pointer to a LoomFactory, which it cannot do directly because different parameter selections result in different factory classes

Resources

Member Function Documentation

virtual LoomModule* FactoryBase::Create ( LoomManager manager,
JsonVariant  module 
) const
pure virtual
template<class T >
static T* FactoryBase::CreateDefault ( )
inlinestatic

Creates a LoomModule with its default parameters.

Usage example: Loom_Relay r = FactoryInst.CreateDefault<Loom_Relay>();

Returns
The created LoomModule
virtual void FactoryBase::print_table ( ) const
pure virtual

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