summaryrefslogtreecommitdiff
path: root/tests/POA/Generic_Servant/test_i.h
blob: cc3c834acb5f1d0e63c24eb02323eb803231003b (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
//=============================================================================
/**
 *  @file     test_i.h
 *
 *  $Id$
 *
 *   Defines test_i class for the test interface
 *
 *
 *  @author  Irfan Pyarali
 */
//=============================================================================


#include "testS.h"

class GENERIC_SERVANT_Export test_i : public POA_test
{
public:
  /// Constructor - takes a POA and a value parameter
  test_i (CORBA::ORB_ptr orb,
          PortableServer::POA_ptr poa);

  /// Returns the Default POA of this servant
  PortableServer::POA_ptr _default_POA (void);

  /// A twoway operation.
  void method (void);

  /// A oneway operation.
  void oneway_method (void);

  /// A timed twoway operation.
  void timed_method (CORBA::ULong timeout);

  /// A timed twoway operation.
  void timed_oneway_method (CORBA::ULong timeout);

  /// Shutdown the ORB
  void shutdown (void);

  /// Sleep for some time.
  void sleep (CORBA::ULong timeout,
              const char *operation);

protected:
  /// Our ORB.
  CORBA::ORB_var orb_;

  /// Our POA.
  PortableServer::POA_var poa_;
};