Go to the documentation of this file.
23 #include <coil/Properties.h>
64 template <
class T_New>
67 return new T_New(manager);
109 template <
class T_Delete>
427 #endif // RTC_FACTORY_H
void(*)(RTObject_impl *) RtcDeleteFunc
Definition: Factory.h:34
~FactoryCXX() override
Definition: Factory.h:347
RTObject_impl *(*)(Manager *) RtcNewFunc
Definition: Factory.h:33
RtcDeleteFunc m_Delete
The pointer to component object destroy function.
Definition: Factory.h:415
RTM::NumberingPolicyBase * m_policy
The naming policy on creating the components.
Definition: Factory.h:424
void deleteRTObject(RTObject_impl *rtc)
coil::Properties m_Profile
Component profile.
Definition: Factory.h:272
FactoryCXX(const coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func, RTM::NumberingPolicyBase *policy=new RTM::ProcessUniquePolicy())
Constructor.
int m_Number
Number of current RT-Component's instances.
Definition: Factory.h:281
RT-Component class.
Definition: RTObject.h:90
RTObject_impl * create(Manager *mgr) override
Create RT-Components.
void Delete(RTObject_impl *rtc)
Template function to destroy RT-Components.
Definition: Factory.h:110
Definition: NumberingPolicyBase.h:55
void destroy(RTObject_impl *comp) override
Destroy RT-Components.
RtcNewFunc m_New
The pointer to component object create function.
Definition: Factory.h:406
virtual RTObject_impl * create(Manager *mgr)=0
Create components.
FactoryCXX class.
Definition: Factory.h:305
Class for naming policy management when creating objects.
Definition: NumberingPolicy.h:52
FactoryBase base class.
Definition: Factory.h:137
RTObject_impl * Create(Manager *manager)
Template function to create RT-Components.
Definition: Factory.h:65
virtual int number()
Get the number of current instances.
virtual coil::Properties & profile()
Get the component profile.
FactoryBase(const coil::Properties &profile)
Constructor.
Object numbering policy base class.
Manager class.
Definition: Manager.h:90
coil::Properties Properties
Definition: RTC.h:72
virtual ~FactoryBase()
Destructor.
virtual void destroy(RTObject_impl *comp)=0
Destroy components.