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

// ============================================================================
//
// = LIBRARY
//    TAO/tests/Simple
// 
// = FILENAME
//    simple_object_impl.h
//
// = DESCRIPTION
//    This class implements the Simple Object object.
//
// = AUTHOR
//    Darrell Brunsch <brunsch@cs.wustl.edu>
// 
// ============================================================================

#if !defined (IR_SIMPLE_OBJECT_IMPL_H)
#define	IR_SIMPLE_OBJECT_IMPL_H

#include "Impl_RepoS.h"

// Forward declarations.
class IR_Simple_Impl;

// Typedefs.
typedef IR_Simple_Impl *IR_Simple_Impl_ptr;
typedef IR_Simple_Impl_ptr IR_Simple_Impl_ref;

class IR_Simple_Impl: public POA_simple_object
{
  // = TITLE
  //    Simple Object Implementation
  //
  // = DESCRIPTION
  //    Implementation of a simple object that has two methods, one that 
  //    returns the cube of a long, another that shuts down the server.
public:
  IR_Simple_Impl (CORBA::ORB_ptr orb_ptr,
                  PortableServer::POA_ptr poa_ptr,
                  CORBA::Object_ptr forward_to_ptr);
  // Constructor

  ~IR_Simple_Impl (void);
  // Destructor

  virtual CORBA::Long simple_method (CORBA::Long l,
                                     CORBA::Environment &env);
  // Just cubes the long parameter

  virtual void shutdown (CORBA::Environment &env);
  // Shutdown routine.

  CORBA::ORB_var orb_var_;
  PortableServer::POA_var poa_var_;
  CORBA::Object_var forward_to_var_;
};


#endif /* IR_SIMPLE_OBJECT_IMPL_H */