summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/simple_object_impl.h
blob: 1b0818a5444ca0804136b4d1dbd8a265dc2bcc93 (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
// -*- 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>
//
// ============================================================================

#ifndef SIMPLE_OBJECT_IMPL_H
#define SIMPLE_OBJECT_IMPL_H

#include "Simple_ObjectS.h"

// Forward declarations.
class Simple_i;

// Typedefs.
typedef Simple_i *Simple_i_ptr;
typedef Simple_i_ptr Simple_i_ref;

class Simple_i: 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:
  Simple_i (const char *obj_name = 0);
  // Constructor

  ~Simple_i (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.
};


#endif /* SIMPLE_OBJECT_IMPL_H */