summaryrefslogtreecommitdiff
path: root/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h
diff options
context:
space:
mode:
authordai_y <dai_y@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-10-19 00:27:51 +0000
committerdai_y <dai_y@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-10-19 00:27:51 +0000
commitb29e5800752ecefbe4e9317ac908e40d9c6eded0 (patch)
tree3bdec835860a692ca76bdcd5baa5f069645bf248 /TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h
parent189f1baf20ea719b1724adef186b8699706eb065 (diff)
downloadATCD-b29e5800752ecefbe4e9317ac908e40d9c6eded0.tar.gz
Tue Oct 18 17:24:26 MST 2005 Yan Dai <dai_y@ociweb.com>
Diffstat (limited to 'TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h')
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h b/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h
new file mode 100644
index 00000000000..0c10f8341d0
--- /dev/null
+++ b/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h
@@ -0,0 +1,44 @@
+// $Id$
+#ifndef SERVERAPP_H
+#define SERVERAPP_H
+
+#include "FooC.h"
+#include "tao/PortableServer/PortableServer.h"
+#include "ace/SString.h"
+
+class ServerApp
+{
+ public:
+
+ ServerApp();
+ ~ServerApp();
+
+ int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
+
+
+ private:
+
+ int parse_args(int argc, char* argv[]);
+ void usage_statement();
+
+ Foo_ptr
+ create_foo(
+ PortableServer::POA_ptr poa,
+ const char* servant_name
+ ACE_ENV_ARG_DECL);
+
+ Callback_ptr
+ create_callback(
+ PortableServer::POA_ptr poa,
+ const char* servant_name
+ ACE_ENV_ARG_DECL);
+
+
+ ACE_CString exe_name_;
+
+ CORBA::ORB_var orb_;
+
+ int synch_with_server_;
+};
+
+#endif