WarnMsgInfo() { name_ = "Warn"; id_ = WarnMsg_ID; size_ = WarnMsg_LENGTH; addToRegistry(); }
void Register(EventHandler* handler) { assert(NULL != handler); if(!addToRegistry(handler)) { /* NOTE: In production code, this error should be delegated to the client instead. */ error("No more registrations possible"); } }
OpenSteer::PlugIn::PlugIn (void) { // save this new instance in the registry addToRegistry (); }
/* Implementation of the Reactor interface used for registrations.*/ void Register(EventHandler* handler) { assert(NULL != handler); addToRegistry(handler); }