Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / Peer.h
blob0583742a62fc4cf97e1c8fd0c0a1287289bc6366
1 /* -*- C++ -*- */
2 /**
3 * @file Peer.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_Notify_Tests_PEER_H
9 #define TAO_Notify_Tests_PEER_H
10 #include /**/ "ace/pre.h"
12 #include "notify_test_export.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "orbsvcs/CosNotifyChannelAdminC.h"
19 #include "tao/PortableServer/PortableServer.h"
20 #include "ace/SString.h"
21 #include "ace/Arg_Shifter.h"
23 /**
24 * @class TAO_Notify_Tests_Peer
26 * @brief
28 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_Peer
30 public:
31 /// Constructor
32 TAO_Notify_Tests_Peer ();
34 /// Destructor
35 virtual ~TAO_Notify_Tests_Peer ();
37 /// Init
38 void init (PortableServer::POA_ptr poa);
40 /// Init this object.
41 virtual int init_state (ACE_Arg_Shifter& arg_shifter);
43 /// Set POA
44 void set_poa (PortableServer::POA_ptr poa);
46 // Accessor to set/get our name.
47 void set_name (ACE_CString& name);
48 const ACE_CString& get_name ();
50 protected:
51 /// My name.
52 ACE_CString name_;
54 /// Proxy Name.
55 ACE_CString proxy_name_;
57 ACE_CString admin_name_;
59 ACE_CString poa_name_;
61 CosNotifyChannelAdmin::InterFilterGroupOperator ifgop_;
63 CosNotification::QoSProperties qos_;
65 /// The default POA.
66 PortableServer::POA_var default_POA_;
69 #if defined (__ACE_INLINE__)
70 #include "Peer.inl"
71 #endif /* __ACE_INLINE__ */
73 #include /**/ "ace/post.h"
74 #endif /* TAO_Notify_Tests_PEER_H */