Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Client_Leaks / Process_Factory.h
blob1481290e47fa791053a2f1dcc2866c7ae8df865f
2 #ifndef CLIENT_LEAKS_PROCESS_FACTORY_H
3 #define CLIENT_LEAKS_PROCESS_FACTORY_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 /// Implement the Test::Process_Factory interface
9 class Process_Factory
10 : public virtual POA_Test::Process_Factory
12 public:
13 /// Constructor
14 Process_Factory (CORBA::ORB_ptr orb);
16 /// Return 1 if the shutdown message has been received already
17 int shutdown_received ();
19 // = The skeleton methods
20 virtual Test::Process_ptr create_new_process ();
22 virtual void noop ();
24 virtual void shutdown ();
26 private:
27 /// Use an ORB reference to convert strings to objects and shutdown
28 /// the application.
29 CORBA::ORB_var orb_;
31 /// Set to 1 when the test has finished
32 int shutdown_received_;
35 #include /**/ "ace/post.h"
36 #endif /* CLIENT_LEAKS_PROCESS_FACTORY_H */