summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/ir_server_impl.h
blob: 6da5fd7fc5c64197bf65594214c825f6c828a20b (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
// -*- C++ -*-
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO/tests/Simple
//
// = FILENAME
//    ir_server_impl.h
//
// = DESCRIPTION
//    Class which implements a CORBA server which sets up the simple object
//    implementation and the orb.
//
// = AUTHORS
//    Darrell Brunsch <brunsch@cs.wustl.edu>
//
// ============================================================================

#if !defined (IR_SERVER_IMPL_H)
#define IR_SERVER_IMPL_H

#include "ir_simple_object_impl.h"
#include "tao/TAO.h"

class IR_Server_i
{
  // = TITLE
  //   CORBA Server Implementation
  //
  // = DESCRIPTION
  //   
public:
  // = Initialization and termination methods.
  IR_Server_i (void);
  // Default constructor

  ~IR_Server_i (void);
  // Destructor

  int init (int argc, char **argv, CORBA::Environment& env);
  // Initialize the Server state - parsing arguments and waiting

  int run (CORBA::Environment& env);
  // Run the orb 

private:
  IR_Simple_i *server_impl_;

  int parse_args (void);
  // Parses the commandline arguments.

  int read_ior (char *filename);
  // Reads the IOR of the real server from the file

  TAO_ORB_Manager orb_manager_;
  // The ORB manager.

  FILE *ior_output_file_;
  // File where the IOR of the server object is stored.

  char *server_key_;
  // Key of the obj ref of the server.

  int argc_;
  // Number of command line arguments.

  char **argv_;
  // The command line arguments.
};

#endif /* IR_SERVER_IMPL_H */