summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/lib/Peer.h
blob: b1f93a4b815f14e308af439ae14df083164ce8f8 (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
/* -*- C++ -*- */
/**
 *  @file Peer.h
 *
 *  $Id$
 *
 *  @author Pradeep Gore <pradeep@oomworks.com>
 *
 *
 */

#ifndef TAO_Notify_Tests_PEER_H
#define TAO_Notify_Tests_PEER_H
#include /**/ "ace/pre.h"

#include "notify_test_export.h"

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

#include "orbsvcs/CosNotifyChannelAdminC.h"
#include "tao/PortableServer/PortableServer.h"
#include "ace/SString.h"

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Arg_Shifter;
ACE_END_VERSIONED_NAMESPACE_DECL

/**
 * @class TAO_Notify_Tests_Peer
 *
 * @brief
 *
 */
class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_Peer
{
public:
  /// Constuctor
  TAO_Notify_Tests_Peer (void);

  /// Destructor
  virtual ~TAO_Notify_Tests_Peer ();

  /// Init
  void init (PortableServer::POA_ptr poa  ACE_ENV_ARG_DECL_NOT_USED);

  /// Init this object.
  virtual int init_state (ACE_Arg_Shifter& arg_shifter);

  /// Set POA
  void set_poa (PortableServer::POA_ptr poa  ACE_ENV_ARG_DECL);

  // Accessor to set/get our name.
  void set_name (ACE_CString& name);
  const ACE_CString& get_name (void);

protected:

  /// My name.
  ACE_CString name_;

  /// Proxy Name.
  ACE_CString proxy_name_;

  ACE_CString admin_name_;

  ACE_CString poa_name_;

  CosNotifyChannelAdmin::InterFilterGroupOperator ifgop_;

  CosNotification::QoSProperties qos_;

  /// The default POA.
  PortableServer::POA_var default_POA_;
};

#if defined (__ACE_INLINE__)
#include "Peer.inl"
#endif /* __ACE_INLINE__ */

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