Use a variable on the stack to not have a temporary in the call
[ACE_TAO.git] / TAO / performance-tests / POA / Implicit_Activation / Factory.h
blob9e50fbf7d930d45eff5c51a32047421850e0169d
2 #ifndef FACTORY_H
3 #define FACTORY_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 #if defined (_MSC_VER)
9 # pragma warning(push)
10 # pragma warning (disable:4250)
11 #endif /* _MSC_VER */
13 /// Implement the Test::Factory interface
14 class Factory
15 : public virtual POA_Test::Factory
17 public:
18 /// Constructor
19 Factory (CORBA::ORB_ptr orb);
21 // = The skeleton methods
23 virtual Test::Simple_ptr create_simple_object ();
25 virtual void shutdown ();
27 private:
28 /// Keep a reference to the ORB
29 CORBA::ORB_var orb_;
32 #if defined(_MSC_VER)
33 # pragma warning(pop)
34 #endif /* _MSC_VER */
36 #include /**/ "ace/post.h"
37 #endif /* FACTORY_H */