// $Id$ #ifndef TAO_Notify_Tests_COMMAND_FACTORY_T_CPP #define TAO_Notify_Tests_COMMAND_FACTORY_T_CPP #include "Command_Factory_T.h" ACE_RCSID(Notify, TAO_Command_Factory_T, "$Id$") #include "ace/Dynamic_Service.h" #include "tao/debug.h" #include "Command_Builder.h" #include "Name.h" template TAO_Notify_Tests_Command_Factory_T::TAO_Notify_Tests_Command_Factory_T (void) { if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG, "Creating command factory for %s\n", COMMAND::name())); } template TAO_Notify_Tests_Command_Factory_T::~TAO_Notify_Tests_Command_Factory_T () { } template int TAO_Notify_Tests_Command_Factory_T::init (int /*argc*/, char/*argv*/ *[]) { /// register with Command builder TAO_Notify_Tests_Command_Builder* cmd_builder = ACE_Dynamic_Service::instance (TAO_Notify_Tests_Name::command_builder); if (cmd_builder) cmd_builder->_register (COMMAND::name(), this); else ACE_DEBUG ((LM_DEBUG, "Could not register command builder %s\n", COMMAND::name())); return 0; } template int TAO_Notify_Tests_Command_Factory_T::fini (void) { return 0; } template TAO_Notify_Tests_Command* TAO_Notify_Tests_Command_Factory_T::create (void) { return new COMMAND (); } #endif /* TAO_Notify_Tests_COMMAND_FACTORY_T_CPP */