CModuleCreator

Name

CModuleCreator -- Object creational ABC for CModuleFactory

Synopsis


            class CModuleCreator {
           
  virtual  = 0 CControlHardware* operator()(std::string  name);
};
        

DESCRIPTION

CModuleCreator provides an abstract base class for module creators. Module creators are objects that are registered with the CModuleFactory singleton. Objects that are instances of a concrete derivation from this class are matched up with object type names (used in the Module create command) and are responsible for creating objects of the specified type.

METHODS

virtual = 0 CControlHardware* operator()(std::string name);

Pure virtual method that concrete classes must define/supply. name is the name of the item being created by the Module create command that caused this method to be called.