summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h37
1 files changed, 26 insertions, 11 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h
index 7025c7aa0bb..af856d988cc 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h
@@ -1,12 +1,11 @@
-/* -*- C++ -*- */
+// -*- C++ -*-
+
/**
* @file POA_Helper.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
- *
- *
*/
#ifndef TAO_Notify_POA_Helper_H
@@ -26,6 +25,8 @@
#include "ace/Copy_Disabled.h"
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
/**
* @class TAO_Notify_POA_Helper
*
@@ -39,7 +40,9 @@ public:
TAO_Notify_POA_Helper (void);
/// Create a new PortableServer::POA.
- void init (PortableServer::POA_ptr parent_poa, const char* poa_name ACE_ENV_ARG_DECL);
+ void init (PortableServer::POA_ptr parent_poa,
+ const char* poa_name
+ ACE_ENV_ARG_DECL);
/// Create a new PortableServer::POA. The name is chosen at random.
void init (PortableServer::POA_ptr parent_poa ACE_ENV_ARG_DECL);
@@ -54,34 +57,44 @@ public:
void destroy (ACE_ENV_SINGLE_ARG_DECL);
/// Activate Object, the POA will assign an ID and return its value.
- CORBA::Object_ptr activate (PortableServer::Servant servant, CORBA::Long& id ACE_ENV_ARG_DECL);
+ CORBA::Object_ptr activate (PortableServer::Servant servant,
+ CORBA::Long& id
+ ACE_ENV_ARG_DECL);
/// Activate Object, using existing ID
CORBA::Object_ptr activate_with_id (PortableServer::Servant servant, CORBA::Long id ACE_ENV_ARG_DECL);
/// Deactivate Object with ID
- void deactivate (CORBA::Long id ACE_ENV_ARG_DECL) const;
+ void deactivate (CORBA::Long id
+ ACE_ENV_ARG_DECL) const;
/// Convert ID to reference.
- CORBA::Object_ptr id_to_reference (CORBA::Long id ACE_ENV_ARG_DECL) const;
+ CORBA::Object_ptr id_to_reference (CORBA::Long id
+ ACE_ENV_ARG_DECL) const;
/// Convert reference to pointer to servant
- PortableServer::ServantBase * reference_to_servant (CORBA::Object_ptr ptr ACE_ENV_ARG_DECL) const;
+ PortableServer::ServantBase * reference_to_servant (CORBA::Object_ptr ptr
+ ACE_ENV_ARG_DECL) const;
CORBA::Object_ptr servant_to_reference (PortableServer::ServantBase * servant ACE_ENV_ARG_DECL) const;
protected:
/// Set default POA policies.
- virtual void set_policy (PortableServer::POA_ptr parent_poa, CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL);
+ virtual void set_policy (PortableServer::POA_ptr parent_poa,
+ CORBA::PolicyList &policy_list
+ ACE_ENV_ARG_DECL);
/// Apply the polices and create child POA.
- void create_i (PortableServer::POA_ptr parent_poa, const char* poa_name, CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL);
+ void create_i (PortableServer::POA_ptr parent_poa,
+ const char* poa_name,
+ CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL);
/// Generate a unique id for each POA created.
ACE_CString get_unique_id (void);
/// Convert id to ObjectID
- PortableServer::ObjectId* long_to_ObjectId (CORBA::Long id ACE_ENV_ARG_DECL) const;
+ PortableServer::ObjectId* long_to_ObjectId (CORBA::Long id
+ ACE_ENV_ARG_DECL) const;
protected:
/// POA
@@ -91,6 +104,8 @@ protected:
TAO_Notify_ID_Factory id_factory_;
};
+TAO_END_VERSIONED_NAMESPACE_DECL
+
#if defined (__ACE_INLINE__)
#include "POA_Helper.inl"
#endif /* __ACE_INLINE__ */