blob: 28e36c7a7a4d3f981377b034f82a5b7021ac56f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/orbsvcs/tests/ImplRepo
//
// = FILENAME
// airplane_server_i.h
//
// = DESCRIPTION
// Server that sets up the ORB and handles the registration and execution
// of the Paper Airplane Server.
//
// = AUTHORS
// Darrell Brunsch <brunsch@cs.wustl.edu>
//
// ============================================================================
#if !defined (AIRPLANE_SERVER_I_H)
#define AIRPLANE_SERVER_I_H
#include "tao/TAO.h"
#include "airplane_i.h"
#include "IR_Helper.h"
class Airplane_Server_i
{
// = TITLE
// Paper Airplane Server Implementation Class
//
// = DESCRIPTION
// Sets up everything necessary to get the Paper Airplane Server
// running.
//
public:
// = Initialization and termination methods.
Airplane_Server_i (void);
// Default constructor
~Airplane_Server_i (void);
// Destructor
int init (int argc, char **argv, CORBA::Environment &ACE_TRY_ENV);
// Initialize the Server state - parsing arguments and waiting
int run (CORBA::Environment &ACE_TRY_ENV);
// Run the orb
private:
int parse_args (void);
// Parses the commandline arguments.
int argc_;
// Number of command line arguments.
char **argv_;
// The command line arguments.
TAO_ORB_Manager orb_manager_;
// The ORB manager.
Airplane_i *server_impl_;
// The Paper Airplane Server Implementation.
FILE *ior_output_file_;
// File where the IOR of the server object is stored.
IR_Helper *ir_helper_;
// Helper class for using the IR.
int register_with_ir_;
// Flag for whether or not to register startup with the IR.
int use_ir_;
// Flag for whether or not to use the IR.
};
#endif /* AIRPLANE_SERVER_I_H */
|