1 #ifndef TAO_Notify_Tests_COMMAND_FACTORY_T_CPP
2 #define TAO_Notify_Tests_COMMAND_FACTORY_T_CPP
4 #include "Command_Factory_T.h"
7 #include "ace/Dynamic_Service.h"
9 #include "Command_Builder.h"
12 template <class COMMAND
>
13 TAO_Notify_Tests_Command_Factory_T
<COMMAND
>::TAO_Notify_Tests_Command_Factory_T ()
15 if (TAO_debug_level
> 0)
16 ACE_DEBUG ((LM_DEBUG
, "Creating command factory for %s\n", COMMAND::name()));
19 template <class COMMAND
>
20 TAO_Notify_Tests_Command_Factory_T
<COMMAND
>::~TAO_Notify_Tests_Command_Factory_T ()
24 template <class COMMAND
> int
25 TAO_Notify_Tests_Command_Factory_T
<COMMAND
>::init (int /*argc*/, ACE_TCHAR
/*argv*/ *[])
27 /// register with Command builder
28 TAO_Notify_Tests_Command_Builder
* cmd_builder
=
29 ACE_Dynamic_Service
<TAO_Notify_Tests_Command_Builder
>::instance (TAO_Notify_Tests_Name::command_builder
);
32 cmd_builder
->_register (COMMAND::name(), this);
34 ACE_DEBUG ((LM_DEBUG
, "Could not register command builder %s\n", COMMAND::name()));
38 template <class COMMAND
> int
39 TAO_Notify_Tests_Command_Factory_T
<COMMAND
>::fini ()
44 template <class COMMAND
> TAO_Notify_Tests_Command
*
45 TAO_Notify_Tests_Command_Factory_T
<COMMAND
>::create ()
47 return new COMMAND ();
50 #endif /* TAO_Notify_Tests_COMMAND_FACTORY_T_CPP */