summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Pluggable/PP_Test_i.h
blob: f964518c379fedcbf5648455a6e83462110f4b61 (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

//=============================================================================
/**
 *  @file    PP_Test_i.h
 *
 *  $Id$
 *
 *  @author Jeff Parsons <parsons@cs.wustl.edu>
 */
//=============================================================================


#ifndef _PP_TEST_I_H
#define _PP_TEST_I_H

#include "PP_TestS.h"

/**
 * @class PP_Test_i
 *
 * @brief Illustrates how to integrate a servant with the generated
 * skeleton.
 *
 * Implementation of the example at the servant side.
 * Sends a no-op oneway and twoway request.
 */
class PP_Test_i : public POA_Pluggable_Test
{
public:
  /// Constructor
  PP_Test_i (CORBA::ORB_ptr orb);

  /// Destructor
  ~PP_Test_i (void);

  /// Test a oneway call.
  virtual void send_oneway (void);

  /// Test a twoway call.
  virtual void send_void (void);

  /// Shutdown routine.
  virtual void shutdown (void);

protected:
  /// Keep a pointer to the ORB so we can shut it down.
  CORBA::ORB_var orb_;
};

/**
 * @class Pluggable_Test_Factory_i:
 *
 * @brief Pluggable_Test_Factory_i
 *
 * Factory object returning the Pluggable_Test objrefs
 */
class Pluggable_Test_Factory_i: public POA_Pluggable_Test_Factory
{
public:
  /// Constructor.
  Pluggable_Test_Factory_i (CORBA::ORB_ptr orb);

  /// Destructor.
  ~Pluggable_Test_Factory_i (void);

  /// Make a Pluggable Test object.
  virtual Pluggable_Test_ptr make_pluggable_test (void);

private:
  PP_Test_i my_pluggable_test_;
};

#endif /* _PP_TEST_I_H */