summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Multiple_Deactivations/Empty.h
blob: ff1e9a419e1f2e92fe31522fc0a4bef3277d5c18 (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
//
// $Id$
//

#ifndef MULTIPLE_DEACTIVATIONS_EMPTY_H
#define MULTIPLE_DEACTIVATIONS_EMPTY_H
#include "ace/pre.h"

#include "TestS.h"

/// Implement the Test::Empty interface
class Empty
  : public virtual POA_Test::Empty
{
public:
  /// Constructor
  Empty (void);

  /// Destructor
  virtual ~Empty (void);

  // = The skeleton methods

  virtual void _add_ref (CORBA::Environment &ACE_TRY_ENV)
    ACE_THROW_SPEC (());
  virtual void _remove_ref (CORBA::Environment &ACE_TRY_ENV)
    ACE_THROW_SPEC (());
  virtual void destroy (CORBA::Environment &ACE_TRY_ENV)
    ACE_THROW_SPEC ((CORBA::SystemException));

private:
  /// Keep the reference count
  CORBA::ULong refcnt_;

  static CORBA::ULong in_request_count_;
};

#include "ace/post.h"
#endif /* MULTIPLE_DEACTIVATIONS_EMPTY_H */