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

//=============================================================================
/**
 *  @file    PP_Test_i.h
 *
 *  @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 ();

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

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

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

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 ();

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

private:
  PP_Test_i my_pluggable_test_;
};

#endif /* _PP_TEST_I_H */