35 #ifndef ARM_COMP_ATTACH_PT_T_H_INCLUDED
36 #define ARM_COMP_ATTACH_PT_T_H_INCLUDED
158 m_hasAttached =
false;
172 if(m_notifier) m_notifier->attachNotify(1);
173 m_hasAttached =
true;
185 return attach(component);
190 if(m_comp != component)
193 m_hasAttached =
false;
194 if(m_notifier) m_notifier->attachNotify(0);
200 return (m_enabled) ? m_comp : 0;
210 return ((m_comp != 0) ? 1 : 0);
216 m_hasAttached =
false;
217 if(m_notifier) m_notifier->attachNotify(0);
222 m_notifier = notifier;
Single component interface pointer attachment point.
IComponentAttachNotifier * m_notifier
const bool hasAttachedAndEnabled() const
const bool hasAttached() const
OpenCSD : Component attach point notifier interface.
virtual ocsd_err_t replace_first(T *component)
virtual int num_attached()
virtual ~componentAttachPt()
virtual ocsd_err_t attach(T *component)
void set_notifier(IComponentAttachNotifier *notifier)
void set_enabled(const bool enable)
virtual ocsd_err_t detach(T *component)
const bool enabled() const
virtual void detach_all()
enum _ocsd_err_t ocsd_err_t
@ OCSD_ERR_ATTACH_TOO_MANY
@ OCSD_ERR_ATTACH_COMP_NOT_FOUND
OpenCSD : Standard Types used in the library interfaces.