blob: ff9f133a0273676afaa1d85032ac7ad513cb7466 (
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
|
/* -*- C++ -*- */
/**
* @file Container.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
*
*
*/
#ifndef TAO_NS_CONTAINER_H
#define TAO_NS_CONTAINER_H
#include "ace/pre.h"
#include "notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/NotifyExtC.h"
#include "Object.h"
class TAO_NS_POA_Helper;
class TAO_NS_QoSAdmin;
/**
* @class TAO_NS_Container
*
* @brief A Base class for implementing the Notify participants that behave as Obejct Containers.
*
*/
class TAO_Notify_Export TAO_NS_Container : public virtual TAO_NS_Object
{
public:
/// Constuctor
TAO_NS_Container (void);
/// Destructor
virtual ~TAO_NS_Container ();
/// Init this object.
void init (TAO_NS_POA_Helper* poa, TAO_NS_Worker_Task* worker_task, TAO_NS_POA_Helper* object_poa, TAO_NS_POA_Helper* proxy_poa ACE_ENV_ARG_DECL);
/// Cleanup
void cleanup (ACE_ENV_SINGLE_ARG_DECL);
/// Accessor for the object_poa_
/// Setting the object_poa_ gives ownership to this class.
void object_poa (TAO_NS_POA_Helper* object_poa);
TAO_NS_POA_Helper* object_poa (void);
/// Accessor for the proxy_poa_
/// Setting the proxy_poa_ gives ownership to this class.
void proxy_poa (TAO_NS_POA_Helper* proxy_poa);
TAO_NS_POA_Helper* proxy_poa (void);
protected:
/// = Protected Methods
/// = Data Members
/// The POA in which the object's are activated.
TAO_NS_POA_Helper* object_poa_;
/// The POA in which the proxys are activated.
TAO_NS_POA_Helper* proxy_poa_;
/// Flag that indicates if we own <object_poa_>
int delete_object_poa_;
/// Flag that indicates if we own <proxy_poa_>
int delete_proxy_poa_;
};
#if defined (__ACE_INLINE__)
#include "Container.inl"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /* TAO_NS_CONTAINER_H */
|