summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/nestea_server_i.h')
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_server_i.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.h b/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.h
new file mode 100644
index 00000000000..aca9cd69859
--- /dev/null
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.h
@@ -0,0 +1,74 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file nestea_server_i.h
+ *
+ * $Id$
+ *
+ * Server that sets up the ORB and handles the registration and execution
+ * of the Nestea Bookshelf Server.
+ *
+ *
+ * @author Darrell Brunsch <brunsch@cs.wustl.edu>
+ */
+//=============================================================================
+
+
+#if !defined (NESTEA_SERVER_I_H)
+#define NESTEA_SERVER_I_H
+
+#include "nestea_i.h"
+
+/**
+ * @class Nestea_Server_i
+ *
+ * @brief Nestea Bookshelf Server Implementation Class
+ *
+ * Sets up everything necessary to get the Nestea Bookshelf Server
+ * running.
+ */
+class Nestea_Server_i
+{
+public:
+ // = Initialization and termination methods.
+ /// Default constructor
+ Nestea_Server_i (const char *filename = "nestea.dat");
+
+ /// Destructor
+ ~Nestea_Server_i (void);
+
+ /// Initialize the Server state - parsing arguments and waiting
+ int init (int argc, char **argv);
+
+ /// Run the orb
+ int run (void);
+
+private:
+ /// Parses the commandline arguments.
+ int parse_args (void);
+
+ /// Number of command line arguments.
+ int argc_;
+
+ /// The command line arguments.
+ char **argv_;
+
+ CORBA::ORB_var orb_;
+
+ PortableServer::POA_var root_poa_;
+
+ /// The POA for the Nestea Server.
+ PortableServer::POA_var nestea_poa_;
+
+ /// The POA manager.
+ PortableServer::POAManager_var poa_manager_;
+
+ /// The Nestea Bookshelf Server Implementation.
+ Nestea_i *server_impl_;
+
+ /// File where the IOR of the server object is stored.
+ FILE *ior_output_file_;
+};
+
+#endif /* NESTEA_SERVER_I_H */