2
// Cubit_Server.h,v 1.7 2002/01/29 20:20:56 okellogg Exp
4
// ============================================================================
13
// This class implements a simple "cube" CORBA server for the Cubit
14
// example using skeletons generated by the TAO ORB IDL compiler.
17
// Nagarajan Surendran (naga@cs.wustl.edu)
19
// ============================================================================
21
#ifndef _CUBIT_SERVER_H
22
#define _CUBIT_SERVER_H
24
#include "ace/Get_Opt.h"
26
#if !defined (ACE_LACKS_PRAGMA_ONCE)
28
#endif /* ACE_LACKS_PRAGMA_ONCE */
30
#include "ace/Log_Msg.h"
31
#include "tao/PortableServer/ORB_Manager.h"
32
#include "Cubit_Client.h"
38
// Defines a Cubit Server class that implements the functionality
39
// of a server process as an object.
42
// The interface is quite simple. A server program has to call
43
// init to initialize the cubit_server's state and then call run
46
// = Initialization and termination methods.
48
// Default constructor
56
// Initialize the Cubit_Server state - parsing arguments and ...
58
int run (ACE_ENV_SINGLE_ARG_DECL);
62
int parse_args (void);
63
// Parses the commandline arguments.
65
FILE* ior_output_file_;
66
// File to output the cubit factory IOR.
68
TAO_ORB_Manager orb_manager_;
71
Cubit_Factory_i *factory_impl_;
72
// Implementation object of the cubit factory.
74
CORBA::String_var factory_id_;
78
// Number of commandline arguments.
81
// commandline arguments.
84
#endif /* _CUBIT_SERVER_H */