Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / Command_Factory_T.h
blob559ed609abe5dc218ce65dd1dd08ae0e2a0bd491
1 /* -*- C++ -*- */
2 /**
3 * @file Command_Factory_T.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_COMMAND_FACTORY_T_H
9 #define TAO_COMMAND_FACTORY_T_H
10 #include /**/ "ace/pre.h"
12 #include "ace/Service_Config.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "ace/Service_Object.h"
19 #include "Command_Factory.h"
21 class TAO_Notify_Tests_Command;
23 /**
24 * @class TAO_Command_Factory_T
26 * @brief Template class to create COMMAND specific factories.
28 template <class COMMAND>
29 class TAO_Notify_Tests_Command_Factory_T : public TAO_Notify_Tests_Command_Factory, public ACE_Service_Object
31 public:
32 /// Constructor
33 TAO_Notify_Tests_Command_Factory_T ();
35 /// Destructor
36 ~TAO_Notify_Tests_Command_Factory_T ();
38 /// = Service_Object virtual method overloads.
39 virtual int init (int argc, ACE_TCHAR *argv[]);
40 virtual int fini ();
42 /// Create the <COMMAND> command.
43 TAO_Notify_Tests_Command* create ();
46 #include "Command_Factory_T.cpp"
48 #include /**/ "ace/post.h"
49 #endif /* TAO_COMMAND_FACTORY_T_H */