~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- c++ -*-
2
 
// Cubit_Server.h,v 1.7 2002/01/29 20:20:56 okellogg Exp
3
 
 
4
 
// ============================================================================
5
 
//
6
 
// = LIBRARY
7
 
//    TAO/tests/IDL_Cubit
8
 
//
9
 
// = FILENAME
10
 
//    Cubit_Server.h
11
 
//
12
 
// = DESCRIPTION
13
 
//      This class implements a simple "cube" CORBA server for the Cubit
14
 
//      example using skeletons generated by the TAO ORB IDL compiler.
15
 
//
16
 
// = AUTHORS
17
 
//    Nagarajan Surendran (naga@cs.wustl.edu)
18
 
//
19
 
// ============================================================================
20
 
 
21
 
#ifndef _CUBIT_SERVER_H
22
 
#define _CUBIT_SERVER_H
23
 
 
24
 
#include "ace/Get_Opt.h"
25
 
 
26
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
27
 
# pragma once
28
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
29
 
 
30
 
#include "ace/Log_Msg.h"
31
 
#include "tao/PortableServer/ORB_Manager.h"
32
 
#include "Cubit_Client.h"
33
 
#include "Cubit_i.h"
34
 
 
35
 
class Cubit_Server
36
 
{
37
 
  // = TITLE
38
 
  //   Defines a Cubit Server class that implements the functionality
39
 
  //   of a server process as an object.
40
 
  //
41
 
  // = DESCRIPTION
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
44
 
  //   to run the orb.
45
 
public:
46
 
  // = Initialization and termination methods.
47
 
  Cubit_Server (void);
48
 
  // Default constructor
49
 
 
50
 
  ~Cubit_Server (void);
51
 
  // Destructor
52
 
 
53
 
  int init (int argc,
54
 
            char **argv
55
 
            ACE_ENV_ARG_DECL);
56
 
  // Initialize the Cubit_Server state - parsing arguments and ...
57
 
 
58
 
  int run (ACE_ENV_SINGLE_ARG_DECL);
59
 
  // Run the orb
60
 
 
61
 
private:
62
 
  int parse_args (void);
63
 
  // Parses the commandline arguments.
64
 
 
65
 
  FILE* ior_output_file_;
66
 
  // File to output the cubit factory IOR.
67
 
 
68
 
  TAO_ORB_Manager orb_manager_;
69
 
  // The ORB manager.
70
 
 
71
 
  Cubit_Factory_i *factory_impl_;
72
 
  // Implementation object of the cubit factory.
73
 
 
74
 
  CORBA::String_var factory_id_;
75
 
  // Id of the factory.
76
 
 
77
 
  int argc_;
78
 
  // Number of commandline arguments.
79
 
 
80
 
  char **argv_;
81
 
  // commandline arguments.
82
 
};
83
 
 
84
 
#endif /* _CUBIT_SERVER_H */