summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/PortableGroup_Hooks.h
blob: 2103e700efe702cfac39c3c72ad9139ba8776059 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file   PortableGroup_Hooks.h
 *
 *  $Id$
 *
 *  @author Frank Hunleth <fhunleth@cs.wustl.edu>
 */
//=============================================================================

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

#include "PortableServerC.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "POA.h"


/**
 * @class TAO_POA_PortableGroup_Hooks
 *
 * @brief TAO_POA_PortableGroup_Hooks
 *
 * This class is an abstract base class that contains hooks for the
 * PortableGroup library.
 */
class TAO_PortableServer_Export TAO_POA_PortableGroup_Hooks
{
public:
  /// Destructor.
  virtual ~TAO_POA_PortableGroup_Hooks (void);

#if (TAO_HAS_MINIMUM_POA == 0)

  virtual PortableServer::ObjectId * create_id_for_reference (
      TAO_POA &the_poa,
      CORBA::Object_ptr the_ref
      TAO_ENV_ARG_DECL_WITH_DEFAULTS
    )
    ACE_THROW_SPEC ((
      CORBA::SystemException,
      PortableServer::NotAGroupObject
    )) = 0;

  virtual PortableServer::IDs * reference_to_ids (
      TAO_POA &the_poa,
      CORBA::Object_ptr the_ref
      TAO_ENV_ARG_DECL_WITH_DEFAULTS
    )
    ACE_THROW_SPEC ((
      CORBA::SystemException,
      PortableServer::NotAGroupObject
    )) = 0;

  virtual void associate_reference_with_id (
      TAO_POA &the_poa,
      CORBA::Object_ptr ref,
      const PortableServer::ObjectId & oid
      TAO_ENV_ARG_DECL_WITH_DEFAULTS
    )
    ACE_THROW_SPEC ((
      CORBA::SystemException,
      PortableServer::NotAGroupObject
    )) = 0;

  virtual void disassociate_reference_with_id (
      TAO_POA &the_poa,
      CORBA::Object_ptr ref,
      const PortableServer::ObjectId & oid
      TAO_ENV_ARG_DECL_WITH_DEFAULTS
    )
    ACE_THROW_SPEC ((
      CORBA::SystemException,
      PortableServer::NotAGroupObject
    )) = 0;

#endif /* TAO_HAS_MINIMUM_POA == 0 */
};


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