DUECA/DUSIME
|
Specific subcontractor template. More...
#include <ConglomerateFactory.hxx>
Public Member Functions | |
CFSubcontractor (const typename Xbase::Key &key, const std::string &description=std::string()) | |
Constructor, only uses the key as argument. | |
~CFSubcontractor () | |
Destructor. | |
Xbase::ProductBase | create (const typename Xbase::Key &key, const typename Xbase::SpecBase &spec) |
Only function, create a new object. | |
void | print (std::ostream &os) |
Print name and description. | |
Specific subcontractor template.
Create a single instance of this subcontractor, which will be able to use the definition of the derived class (Derived) to create the desired objects of type XBase::ProductBase, for instance bare pointers, shared or intrusive pointers, etc.
The constructor of the CFSubcontractor template will register and add the subcontractor to the conglomerate.
XBase | Definition of the key type, base product type and specification type |
Derived | Class defining the subcontractor's product. Needs a constructor of the type Derived(const XBase::SpecBase&); |
Conglomerat | Class definition of the conglomerate, needs an instance() singleton function. |
|
inlinevirtual |
Only function, create a new object.
Implements SubcontractorBase< Xbase >.
|
inlinevirtual |
Print name and description.
Reimplemented from SubcontractorBase< Xbase >.