blob: 05398af6b86e6c61ae6b216187dfdf9c1bea2882 (
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
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/orbsvcs/tests/ImplRepo
//
// = FILENAME
// airplane_i.h
//
// = DESCRIPTION
// This class implements a simple CORBA server which returns a random
// paper airplane from the book "Oddballs, Wing-Flappers, & Spinners:
// Great Paper Airplanes" by John Bringhurst. ISBN: 0-07-067910-X (pbk.)
// An excellent book to have! I personally recommend getting it just
// for the wing-flappers.
//
// = AUTHOR
// Darrell Brunsch <brunsch@cs.wustl.edu>
//
// ============================================================================
#if !defined (AIRPLANE_I_H)
#define AIRPLANE_I_H
#include "AirplaneS.h"
// Forward declarations.
class Airplane_i;
// Typedefs.
typedef Airplane_i *Airplane_i_ptr;
typedef Airplane_i_ptr Airplane_i_ref;
class Airplane_i: public POA_Paper_Airplane_Server
{
// = TITLE
// Paper Airplane Server Implementation
//
// = DESCRIPTION
// This server has one method that returns the featured paper airplane
// at this moment (in other words, a random airplane).
public:
Airplane_i (int shutdown = 0);
// Constructor that takes in an optional shutdown parameter which, if nonzero,
// will shutdown the server after each call to get_plane.
~Airplane_i (void);
// Destructor
virtual char *get_plane (CORBA::Environment &_env);
// Returns a random plane.
private:
int shutdown_;
// Shutdown flag
};
#endif /* AIRPLANE_I_H */
|