33 : m_Profile(profile), m_Number(-1)
85 m_Delete(delete_func),
89 throw std::bad_alloc();
104 if (rtobj == 0)
return NULL;
RTObject_impl *(* RtcNewFunc)(Manager *manager)
int m_Number
Number of current RT-Component's instances.
virtual coil::Properties & profile()
Get the component profile.
NumberingPolicy * m_policy
The naming policy on creating the components.
virtual int number()
Get the number of current instances.
coil::Properties m_Profile
Component profile.
FactoryCXX(const coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func, NumberingPolicy *policy=new DefaultNumberingPolicy())
Constructor.
virtual void onDelete(void *obj)=0
Delete the name when deleting objects.
const char * getTypeName()
[local interface] Get type name
Abstruct class for naming policy management when creating objects.
FactoryBase(const coil::Properties &profile)
Constructor.
RtcNewFunc m_New
The pointer to component object create function.
Class represents a set of properties.
virtual std::string onCreate(void *obj)=0
Create the name when creating objects.
virtual ~FactoryBase(void)
Destructor.
void setInstanceName(const char *instance_name)
[local interface] Set instance name
void(* RtcDeleteFunc)(RTObject_impl *rtc)
virtual RTObject_impl * create(Manager *mgr)
Create RT-Components.
virtual void destroy(RTObject_impl *comp)
Destroy RT-Components.
void setProperties(const coil::Properties &prop)
[local interface] Set RTC property
RtcDeleteFunc m_Delete
The pointer to component object destroy function.