ACE+TAO-7_0_8
[ACE_TAO.git] / TAO / tests / Client_Leaks / Process_Factory.h
blobf21a360f0194d9db1c405ab5c5752f3cf99b5969
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 (void);
19 // = The skeleton methods
20 virtual Test::Process_ptr create_new_process (void);
22 virtual void noop (void);
24 virtual void shutdown (void);
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 */