summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-13 08:06:45 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-13 08:06:45 +0000
commitf979d8aad4bb72dbf8373a270f219ca9449bef07 (patch)
tree9f16d7a5c69755b4416b91713a70100cceac818d
parent390a38cbcb17948012b9c8bf8e2cef3789af064e (diff)
downloadATCD-f979d8aad4bb72dbf8373a270f219ca9449bef07.tar.gz
ChangeLogTag: Thu Jul 13 02:50:26 2000 Irfan Pyarali <irfan@cs.wustl.edu>
-rw-r--r--TAO/ChangeLogs/ChangeLog-02a205
-rw-r--r--TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h35
-rw-r--r--TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp39
-rw-r--r--TAO/examples/Advanced/ch_12/server.cpp77
-rw-r--r--TAO/examples/Advanced/ch_12/server.h18
-rw-r--r--TAO/examples/Advanced/ch_18/server.cpp25
-rw-r--r--TAO/examples/Advanced/ch_18/server.h8
-rw-r--r--TAO/examples/Advanced/ch_21/server.cpp33
-rw-r--r--TAO/examples/Advanced/ch_21/server.h8
-rw-r--r--TAO/examples/POA/Adapter_Activator/server.cpp34
-rw-r--r--TAO/examples/POA/DSI/server.cpp13
-rw-r--r--TAO/examples/POA/Default_Servant/server.cpp28
-rw-r--r--TAO/examples/POA/Explicit_Activation/server.cpp14
-rw-r--r--TAO/examples/POA/Explicit_Activation/server.dsp12
-rw-r--r--TAO/examples/POA/FindPOA/FindPOA.cpp17
-rw-r--r--TAO/examples/POA/Forwarding/MyFooServant.cpp8
-rw-r--r--TAO/examples/POA/Forwarding/Servant_Locator.h2
-rw-r--r--TAO/examples/POA/Forwarding/server.cpp34
-rw-r--r--TAO/examples/POA/Loader/Servant_Activator.h2
-rw-r--r--TAO/examples/POA/Loader/Servant_Locator.h2
-rw-r--r--TAO/examples/POA/Loader/Server_Manager.cpp22
-rw-r--r--TAO/examples/POA/NewPOA/NewPOA.cpp34
-rw-r--r--TAO/examples/POA/On_Demand_Activation/Servant_Activator.h2
-rw-r--r--TAO/examples/POA/On_Demand_Activation/Servant_Locator.h2
-rw-r--r--TAO/examples/POA/On_Demand_Activation/server.cpp37
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Servant_Activator.h2
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Servant_Locator.h2
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp25
-rw-r--r--TAO/examples/POA/Reference_Counted_Servant/server.cpp12
-rw-r--r--TAO/examples/POA/RootPOA/RootPOA.cpp16
-rw-r--r--TAO/examples/POA/TIE/server.cpp29
-rw-r--r--TAO/examples/Quoter/Quoter_i.cpp12
-rw-r--r--TAO/orbsvcs/IFR_Service/IFR_Service.cpp58
-rw-r--r--TAO/orbsvcs/IFR_Service/IFR_Service.h2
-rw-r--r--TAO/orbsvcs/IFR_Service/Servant_Locator.h3
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp14
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancer_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LoadBalancer_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaLocator.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/ReplicaLocator.h2
-rw-r--r--TAO/tao/Buffering_Constraint_Policy.cpp16
-rw-r--r--TAO/tao/Buffering_Constraint_Policy.h8
-rw-r--r--TAO/tao/Client_Priority_Policy.cpp16
-rw-r--r--TAO/tao/Client_Priority_Policy.h8
-rw-r--r--TAO/tao/Current.pidl58
-rw-r--r--TAO/tao/CurrentC.cpp149
-rw-r--r--TAO/tao/CurrentC.h139
-rw-r--r--TAO/tao/CurrentC.i136
-rw-r--r--TAO/tao/CurrentS.cpp94
-rw-r--r--TAO/tao/DomainS.cpp2
-rw-r--r--TAO/tao/DynAnyS.cpp2
-rw-r--r--TAO/tao/Exception.cpp2
-rw-r--r--TAO/tao/Forwarding_Servant.cpp2
-rw-r--r--TAO/tao/GIOP_Server_Request.cpp2
-rw-r--r--TAO/tao/ImplRepoS.h2
-rw-r--r--TAO/tao/Key_Adapters.h2
-rw-r--r--TAO/tao/LocalObject.cpp12
-rw-r--r--TAO/tao/LocalObject.h33
-rw-r--r--TAO/tao/LocalObject.i8
-rw-r--r--TAO/tao/Makefile4
-rw-r--r--TAO/tao/MessagingS.h2
-rw-r--r--TAO/tao/Messaging_Policy_i.cpp32
-rw-r--r--TAO/tao/Messaging_Policy_i.h17
-rw-r--r--TAO/tao/ORB.cpp11
-rw-r--r--TAO/tao/ORB_Core.cpp74
-rw-r--r--TAO/tao/ORB_Core.h10
-rw-r--r--TAO/tao/Object_Adapter.cpp29
-rw-r--r--TAO/tao/Object_Adapter.h35
-rw-r--r--TAO/tao/POA.cpp650
-rw-r--r--TAO/tao/POA.h104
-rw-r--r--TAO/tao/POA.i32
-rw-r--r--TAO/tao/POAC.cpp5736
-rw-r--r--TAO/tao/POAC.h2555
-rw-r--r--TAO/tao/POAC.i4146
-rw-r--r--TAO/tao/POAManager.cpp6
-rw-r--r--TAO/tao/POAManager.h20
-rw-r--r--TAO/tao/POAS.cpp2995
-rw-r--r--TAO/tao/POAS.h1265
-rw-r--r--TAO/tao/POAS.i226
-rw-r--r--TAO/tao/POA_CORBA.h2586
-rw-r--r--TAO/tao/Policy.pidl67
-rw-r--r--TAO/tao/PolicyC.cpp2065
-rw-r--r--TAO/tao/PolicyC.h1016
-rw-r--r--TAO/tao/PolicyC.i1446
-rw-r--r--TAO/tao/PolicyS.cpp741
-rw-r--r--TAO/tao/Policy_Manager.cpp1
-rw-r--r--TAO/tao/Policy_Manager.h16
-rw-r--r--TAO/tao/PortableServer.pidl278
-rw-r--r--TAO/tao/PortableServerC.cpp2971
-rw-r--r--TAO/tao/PortableServerC.h3182
-rw-r--r--TAO/tao/PortableServerC.i3210
-rw-r--r--TAO/tao/RT_Mutex.cpp12
-rw-r--r--TAO/tao/RT_Mutex.h11
-rw-r--r--TAO/tao/RT_Policy_i.cpp112
-rw-r--r--TAO/tao/RT_Policy_i.h66
-rw-r--r--TAO/tao/Servant_Base.cpp25
-rw-r--r--TAO/tao/Servant_Base.h25
-rw-r--r--TAO/tao/Server_Request.cpp1
-rw-r--r--TAO/tao/TAO.dsp56
-rw-r--r--TAO/tao/TAO.h2
-rw-r--r--TAO/tao/TAO_Static.dsp26
-rw-r--r--TAO/tao/diffs/Current.pidl.diff13
-rw-r--r--TAO/tao/diffs/CurrentC.cpp.diff29
-rw-r--r--TAO/tao/diffs/CurrentC.h.diff20
-rw-r--r--TAO/tao/diffs/CurrentC.i.diff0
-rw-r--r--TAO/tao/diffs/MessagingS.h.diff74
-rw-r--r--TAO/tao/diffs/Policy.pidl.diff96
-rw-r--r--TAO/tao/diffs/PolicyC.cpp.diff3276
-rw-r--r--TAO/tao/diffs/PolicyC.h.diff1733
-rw-r--r--TAO/tao/diffs/PolicyC.i.diff179
-rw-r--r--TAO/tao/diffs/PolicyS.cpp.diff318
-rw-r--r--TAO/tao/diffs/PortableServerC.cpp.diff198
-rw-r--r--TAO/tao/diffs/PortableServerC.h.diff438
-rw-r--r--TAO/tao/diffs/PortableServerC.i.diff96
-rw-r--r--TAO/tao/orbconf.h35
-rw-r--r--TAO/tests/MProfile_Forwarding/Manager.cpp24
-rw-r--r--TAO/tests/MProfile_Forwarding/Manager.h11
-rwxr-xr-xTAO/tests/MProfile_Forwarding/Servant_Locator.h2
119 files changed, 17158 insertions, 26861 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a
index fe9c954fc18..f5297970755 100644
--- a/TAO/ChangeLogs/ChangeLog-02a
+++ b/TAO/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,208 @@
+Thu Jul 13 02:50:26 2000 Irfan Pyarali <irfan@cs.wustl.edu>
+
+ * tao/Current.pidl: Made CORBA::Current interface local per CMM
+ spec. Generated diff files. CurrentS.cpp is no longer needed.
+
+ * tao/Policy.pidl: Marked Current, Policy_Manager, and
+ Policy_Current to be local.
+
+ * tao/PortableServer.pidl: New file replaces old POA.pidl file.
+ This name is more suitable since this is what OMG names it in
+ the distribution of pidl files. Note that almost all interfaces
+ are made local. Generated diff files. POAS.* files are no
+ longer needed.
+
+ * tao/POA:
+
+ - All interfaces in the PortableServer module were made local.
+
+ - All policy classes now inherit from
+ TAO_Local_RefCounted_Object instead of RefCountServantBase.
+
+ - New method was added the_children().
+
+ - Code in ~POA() was running too late for many applications.
+ Therefore, that code was moved to complete_destruction_i(),
+ which executes as soon as a POA can be destroyed.
+
+ - <check_for_destruction> flag was added to TAO_POA_Guard. This
+ allows POA::destroy() to be called even after a call to
+ ORB::shutdown(), even though ORB::shutdown() will destroy all
+ POAs. This was done for backward compatibility.
+
+ - No more calls to "delete this"; instead call
+ complete_destruction_i().
+
+ - Policy::destroy() are now no-ops.
+
+ * tao/Object_Adapter.cpp (poa_cleanup): Call
+ "poa_->complete_destruction_i()" instead of "delete poa_"
+ because of the change in what TAO_POA inherits from.
+
+ * tao/Object_Adapter.h: TAO_Export'ed all the classes.
+
+ * tao/POAManager.cpp (remove_poa): Call "CORBA::release (this)"
+ instead of "delete this" because of the change in what
+ TAO_POA_Manager inherits from.
+
+ * tao/LocalObject:
+
+ - Fixed signature of copy constructor and asssignment operator.
+
+ - Added a new class TAO_Local_RefCounted_Object. This class
+ adds default reference counting to local objects.
+
+ * tao: Changed inheritance from CORBA::LocalObject to
+ TAO_Buffering_Constraint_Policy. This way we can remove
+ _add_ref() and _remove_ref() for the following classes:
+
+ - TAO_Buffering_Constraint_Policy
+ - TAO_Client_Priority_Policy
+ - TAO_RelativeRoundtripTimeoutPolicy
+ - TAO_Sync_Scope_Policy
+ - TAO_RT_Mutex
+ - TAO_PriorityModelPolicy
+ - TAO_ThreadpoolPolicy
+ - TAO_PrivateConnectionPolicy
+ - TAO_PriorityBandedConnectionPolicy
+ - TAO_ServerProtocolPolicy
+ - TAO_ClientProtocolPolicy
+ - TAO_TCP_Properties
+ - TAO_GIOP_Properties
+
+ * tao: Made the following local interfaces inherit from
+ TAO_Local_RefCounted_Object to get the proper reference
+ counting:
+
+ - TAO_POA_Manager
+ - TAO_POA_Current
+ - TAO_Policy_Manager
+ - TAO_Policy_Current
+
+ * tao/POA_CORBA.h (POA_CORBA): Skeletons for Current,
+ Policy_Manager, and Policy_Current were removed since these
+ interfaces are local.
+
+ * tao/Policy_Manager.h: Changed TAO_Policy_Manager to inherit from
+ CORBA::PolicyManager rather than inherit from
+ POA_CORBA::PolicyManager. Also, changed TAO_Policy_Current to
+ inherit from CORBA::PolicyCurrent rather than inherit from
+ POA_CORBA::PolicyCurrent.
+
+ * tao/POAManager.h: Changed TAO_POA_Manager to inherit from
+ PortableServer::POAManager rather than inherit from
+ POA_PortableServer::POAManager.
+
+ * tao/Object_Adapter: Changed TAO_POA_Current to inherit from
+ PortableServer::Current rather than inherit from
+ POA_PortableServer::Current.
+
+ * tao/orbconf.h:
+
+ - Since all locality constraint policies were removed, all the
+ #defines related to remote and locality constraint policies were
+ removed.
+
+ - Added new macros to deal with the environment missing in
+ preinvoke(), postinvoke(), etherealize(), and incarnate() in
+ some cases.
+
+ * tao/Servant_Base: TAO_Locality_Constrained_ServantBase was used
+ for servants that did register with the POA but do not produce a
+ valid stub, i.e., object references of this servant cannot be
+ exported. This class was used by the POA policies. Since these
+ policy classes were made local, there is no need for
+ TAO_Locality_Constrained_ServantBase anymore and it was removed
+ from TAO.
+
+ * tao/ORB_Core:
+
+ - Since TAO_POA is a subclass of the reference, there is no need
+ to keep a separate POA_var variable.
+
+ - In destructor of ORB_Core, remember to release RootPOA.
+
+ - In shutdown(), make sure to destroy RootPOA (which also
+ implies that all descendent POAs have also been destroyed), if
+ the user has not destroyed the it yet.
+
+ * tao/ORB.cpp (resolve_poa_current, resolve_policy_manager,
+ resolve_policy_current):
+
+ Since POA, Policy_Manager, and Policy_Current are now local
+ interfaces, they do not have _this() methods. Changed the code
+ to call _duplicate() instead of _this().
+
+ * tao/DomainS.cpp (_tao_collocated_ConstructionPolicy): Update old
+ name of collocated Policy stub.
+
+ * tao/Makefile:
+ * tao/TAO.dsp:
+ * tao/TAO_Static.dsp:
+
+ Added new files (PortableServerC.*) and removed old files
+ (POAC.* and POAS.*).
+
+ * tao: Changed the include from POAC.h to PortableServerC.h for
+ the following files:
+
+ - DynAnyS.cpp
+ - Forwarding_Servant.cpp
+ - GIOP_Server_Request.cpp
+ - ImplRepoS.h
+ - Key_Adapters.h
+ - MessagingS.h
+ - ORB_Core.h
+ - Server_Request.cpp
+ - TAO.h
+ - Object_Adapter
+ - POAManager.h
+
+ * examples/tests/apps: The following examples, tests, and
+ applications were changed to deal with the new local
+ interfaces in the PortableServer namespace:
+
+ - docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h
+ - docs/tutorials/Quoter/On_Demand_Activation/server.cpp
+ - examples/Advanced/ch_12/server.cpp
+ - examples/Advanced/ch_12/server.h
+ - examples/Advanced/ch_18/server.cpp
+ - examples/Advanced/ch_18/server.h
+ - examples/Advanced/ch_21/server.cpp
+ - examples/Advanced/ch_21/server.h
+ - examples/POA/Adapter_Activator/server.cpp
+ - examples/POA/DSI/server.cpp
+ - examples/POA/Default_Servant/server.cpp
+ - examples/POA/Explicit_Activation/server.cpp
+ - examples/POA/Explicit_Activation/server.dsp
+ - examples/POA/FindPOA/FindPOA.cpp
+ - examples/POA/Forwarding/MyFooServant.cpp
+ - examples/POA/Forwarding/Servant_Locator.h
+ - examples/POA/Forwarding/server.cpp
+ - examples/POA/Generic_Servant/MyFooServant.cpp
+ - examples/POA/Generic_Servant/client.cpp
+ - examples/POA/Loader/Servant_Activator.h
+ - examples/POA/Loader/Servant_Locator.h
+ - examples/POA/Loader/Server_Manager.cpp
+ - examples/POA/NewPOA/NewPOA.cpp
+ - examples/POA/On_Demand_Activation/Servant_Activator.h
+ - examples/POA/On_Demand_Activation/Servant_Locator.h
+ - examples/POA/On_Demand_Activation/server.cpp
+ - examples/POA/On_Demand_Loading/Servant_Activator.h
+ - examples/POA/On_Demand_Loading/Servant_Locator.h
+ - examples/POA/On_Demand_Loading/Server_Manager.cpp
+ - examples/POA/Reference_Counted_Servant/server.cpp
+ - examples/POA/RootPOA/RootPOA.cpp
+ - examples/POA/TIE/server.cpp
+ - examples/Quoter/Quoter_i.cpp
+ - orbsvcs/ImplRepo_Service/ImplRepo_i.cpp
+ - orbsvcs/ImplRepo_Service/ImplRepo_i.h
+ - orbsvcs/orbsvcs/LoadBalancing/LoadBalancer_i.cpp
+ - orbsvcs/orbsvcs/LoadBalancing/ReplicaLocator.h
+ - tests/MProfile_Forwarding/Manager.cpp
+ - tests/MProfile_Forwarding/Manager.h
+ - tests/MProfile_Forwarding/Servant_Locator.h
+
Wed Jul 12 11:41:53 2000 Ossama Othman <ossama@uci.edu>
* orbsvcs/orbsvcs/LoadBalancing.bor (OBJFILES):
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h
index ebb5dd08bc8..5dd86cd4a34 100644
--- a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h
+++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h
@@ -7,44 +7,29 @@
#include "tao/corba.h"
-class Quoter_Stock_Factory_Locator_i : public POA_PortableServer::ServantLocator
+class Quoter_Stock_Factory_Locator_i : public PortableServer::ServantLocator
{
public:
Quoter_Stock_Factory_Locator_i (CORBA::ORB_ptr orb);
-
+
// Preinvoke function
- virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr poa,
- const char * operation,
+ virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid,
+ PortableServer::POA_ptr poa,
+ const char * operation,
void * & cookie)
throw (CORBA::SystemException, PortableServer::ForwardRequest);
-
+
// Postinvoke function
- virtual void postinvoke (const PortableServer::ObjectId & oid,
+ virtual void postinvoke (const PortableServer::ObjectId & oid,
PortableServer::POA_ptr poa,
- const char * operation,
- void * cookie,
+ const char * operation,
+ void * cookie,
PortableServer::Servant servant)
throw (CORBA::SystemException);
private:
CORBA::ORB_var orb_;
-
+
};
#endif /* STOCK_FACTORY_LOCATOR_I_H */
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp b/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp
index 3d3cb0170b6..22400e1104c 100644
--- a/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp
+++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp
@@ -28,51 +28,47 @@ int main (int argc, char* argv[])
policies[0] =
poa->create_id_assignment_policy (PortableServer::USER_ID);
- policies [1] =
+ policies [1] =
poa->create_request_processing_policy (PortableServer::USE_SERVANT_MANAGER);
- policies [2] =
+ policies [2] =
poa->create_servant_retention_policy (PortableServer::NON_RETAIN);
// Create the POA with these policies
- PortableServer::POA_var child_poa =
- poa->create_POA ("childPOA",
- poa_manager.in (),
+ PortableServer::POA_var child_poa =
+ poa->create_POA ("childPOA",
+ poa_manager.in (),
policies);
-
+
// Destroy the policy objects
for (CORBA::ULong i = 0; i != policies.length (); ++i) {
policies[i]->destroy ();
}
- // Create a Stock_Factory_Locator servant
- Quoter_Stock_Factory_Locator_i servant_locator_i(orb.in ());
-
- // Need to activate a servant_manager object in the Root POA
- PortableServer::ServantLocator_var servant_locator =
- servant_locator_i._this ();
-
+ // Create a Stock_Factory_Locator
+ PortableServer::ServantLocator_var servant_locator =
+ new Quoter_Stock_Factory_Locator_i (orb.in ());
+
// Set the SM with the childPOA
child_poa->set_servant_manager (servant_locator.in ());
-
- PortableServer::ObjectId_var child_oid =
+
+ PortableServer::ObjectId_var child_oid =
PortableServer::string_to_ObjectId ("childFoo");
-
- CORBA::Object_var stock_factory =
- child_poa->create_reference_with_id (child_oid.in (),
+ CORBA::Object_var stock_factory =
+ child_poa->create_reference_with_id (child_oid.in (),
"IDL:Quoter/Stock_Factory:1.0");
-
+
// Put the object reference as an IOR string
CORBA::String_var ior = orb->object_to_string (stock_factory.in ());
// Print it out!
std::cout << ior.in () << std::endl;
-
+
/*
// Create the servant
Quoter_Stock_Factory_i stock_factory_i;
-
+
// Activate it to obtain the object reference
Quoter::Stock_Factory_var stock_factory =
stock_factory_i._this ();
@@ -93,4 +89,3 @@ int main (int argc, char* argv[])
}
return 0;
}
-
diff --git a/TAO/examples/Advanced/ch_12/server.cpp b/TAO/examples/Advanced/ch_12/server.cpp
index 14d6d5afedf..cc477801ff9 100644
--- a/TAO/examples/Advanced/ch_12/server.cpp
+++ b/TAO/examples/Advanced/ch_12/server.cpp
@@ -53,7 +53,7 @@ operator<< (ostream & os, const CORBA::Exception & e)
//#endif
-// Helper function to create object references.
+// Helper function to create object references.
static CCS::Thermometer_ptr
make_dref (PortableServer::POA_ptr poa, CCS::AssetType anum)
@@ -196,7 +196,7 @@ location (const char *loc) throw (CORBA::SystemException)
{
set_loc (loc);
}
-
+
//----------------------------------------------------------------
// Helper function to get a thermostat's nominal temperature.
@@ -223,9 +223,9 @@ throw (CCS::Thermostat::BadTemp)
// so we first read the current nominal temperature before
// changing it.
assert (ICP_get (m_anum, "nominal_temp", &old_temp, sizeof (old_temp)) == 0);
-
+
// Now set the nominal temperature to the new value.
- if (ICP_set (m_anum, "nominal_temp", &new_temp) != 0)
+ if (ICP_set (m_anum, "nominal_temp", &new_temp) != 0)
{
// If ICP_set () failed, read this thermostat's minimum and
// maximum so we can initialize the BadTemp exception.
@@ -308,12 +308,12 @@ exists (CCS::AssetType anum)
Controller_impl::
Controller_impl (PortableServer::POA_ptr poa,
const char *asset_file)
- throw (int)
+ throw (int)
: m_poa (PortableServer::POA::_duplicate (poa)),
m_asset_file (asset_file)
{
fstream afile (m_asset_file.in (), ios::in|ios::out, 0666);
- if (!afile)
+ if (!afile)
{
cerr << "Cannot open " << m_asset_file.in () << endl;
throw 0;
@@ -338,17 +338,17 @@ Controller_impl::
// Write out the current set of asset numbers
// and clean up all servant instances.
ofstream afile (m_asset_file.in ());
- if (!afile)
+ if (!afile)
{
cerr << "Cannot open " << m_asset_file.in () << endl;
assert (0);
}
AssetMap::iterator i;
- for (i = m_assets.begin (); i != m_assets.end (); i++)
+ for (i = m_assets.begin (); i != m_assets.end (); i++)
{
afile << i->first << endl;
- if (!afile)
+ if (!afile)
{
cerr << "Cannot update " << m_asset_file.in () << endl;
assert (0);
@@ -356,7 +356,7 @@ Controller_impl::
delete i->second;
}
afile.close ();
- if (!afile)
+ if (!afile)
{
cerr << "Cannot close " << m_asset_file.in () << endl;
assert (0);
@@ -396,7 +396,7 @@ create_thermostat (CCS::AssetType anum,
assert (ICP_online (anum) == 0);
assert (ICP_set (anum, "location", loc) == 0);
// Set the nominal temperature.
- if (ICP_set (anum, "nominal_temp", &temp) != 0)
+ if (ICP_set (anum, "nominal_temp", &temp) != 0)
{
// If ICP_set () failed, read this thermostat's minimum
// and maximum so we can initialize the BadTemp exception.
@@ -453,7 +453,7 @@ change (const CCS::Controller::ThermostatSeq & tlist,
// directly, so for each thermostat, we read the nominal
// temperature, add the delta value to it, and write
// it back again.
- for (CORBA::ULong i = 0; i < tlist.length (); i++)
+ for (CORBA::ULong i = 0; i < tlist.length (); i++)
{
if (CORBA::is_nil (tlist[i]))
continue; // Skip nil references
@@ -461,11 +461,11 @@ change (const CCS::Controller::ThermostatSeq & tlist,
// Read nominal temp and update it.
CCS::TempType tnom = tlist[i]->get_nominal ();
tnom += delta;
- try
+ try
{
tlist[i]->set_nominal (tnom);
}
- catch (const CCS::Thermostat::BadTemp &bt)
+ catch (const CCS::Thermostat::BadTemp &bt)
{
// If the update failed because the temperature
// is out of range, we add the thermostat's info
@@ -492,26 +492,26 @@ throw (CORBA::SystemException)
{
// Loop over input list and lookup each device.
CORBA::ULong listlen = slist.length ();
- for (CORBA::ULong i = 0; i < listlen; i++)
+ for (CORBA::ULong i = 0; i < listlen; i++)
{
AssetMap::iterator where; // Iterator for asset set
int num_found = 0; // Num matched per iteration
-
+
// Assume we will not find a matching device.
slist[i].device = CCS::Thermometer::_nil ();
// Work out whether we are searching by asset,
// model, or location.
CCS::Controller::SearchCriterion sc = slist[i].key._d ();
- if (sc == CCS::Controller::ASSET)
+ if (sc == CCS::Controller::ASSET)
{
// Search for matching asset number.
where = m_assets.find (slist[i].key.asset_num ());
if (where != m_assets.end ())
slist[i].device = make_dref (m_poa.in (), where->first);
}
- else
+ else
{
// Search for model or location string.
const char *search_str;
@@ -523,17 +523,17 @@ throw (CORBA::SystemException)
// Find first matching device (if any).
where = find_if (m_assets.begin (), m_assets.end (),
StrFinder (sc, search_str));
-
+
// While there are matches...
- while (where != m_assets.end ())
+ while (where != m_assets.end ())
{
- if (num_found == 0)
+ if (num_found == 0)
{
// First match overwrites reference
// in search record.
slist[i].device = make_dref (m_poa.in (), where->first);
}
- else
+ else
{
// Further matches each append a new
// element to the search sequence.
@@ -569,11 +569,11 @@ preinvoke (const PortableServer::ObjectId & oid,
{
// Convert object id into asset number.
CORBA::String_var oid_string;
- try
+ try
{
oid_string = PortableServer::ObjectId_to_string (oid);
}
- catch (const CORBA::BAD_PARAM &)
+ catch (const CORBA::BAD_PARAM &)
{
throw CORBA::OBJECT_NOT_EXIST ();
}
@@ -586,7 +586,7 @@ preinvoke (const PortableServer::ObjectId & oid,
istr >> anum;
if (istr.fail ())
throw CORBA::OBJECT_NOT_EXIST ();
-
+
// Check whether the device is known.
if (!m_ctrl->exists (anum))
throw CORBA::OBJECT_NOT_EXIST ();
@@ -595,11 +595,11 @@ preinvoke (const PortableServer::ObjectId & oid,
// we have a servant in memory.
Thermometer_impl * servant;
ActiveObjectMap::iterator servant_pos = m_aom.find (anum);
- if (servant_pos == m_aom.end ())
+ if (servant_pos == m_aom.end ())
{
// No servant in memory. If evictor queue is full,
// evict servant at head of queue.
- if (m_eq.size () == MAX_EQ_SIZE)
+ if (m_eq.size () == MAX_EQ_SIZE)
{
servant = m_eq.back ();
m_aom.erase (servant->m_anum);
@@ -613,8 +613,8 @@ preinvoke (const PortableServer::ObjectId & oid,
servant = new Thermometer_impl (anum);
else
servant = new Thermostat_impl (anum);
- }
- else
+ }
+ else
{
// Servant already in memory.
servant = * (servant_pos->second); // Remember servant
@@ -629,7 +629,7 @@ preinvoke (const PortableServer::ObjectId & oid,
// We found a servant, or just instantiated it. If the operation is
// not a remove, move the servant to the tail of the evictor queue
// and update its queue position in the map.
- if (strcmp (operation, "remove") != 0)
+ if (strcmp (operation, "remove") != 0)
{
m_eq.push_front (servant);
m_aom[anum] = m_eq.begin ();
@@ -643,7 +643,7 @@ main (int argc, char * argv[])
{
CORBA::ORB_var orb;
- try
+ try
{
// Initialize orb
orb = CORBA::ORB_init (argc, argv);
@@ -656,7 +656,7 @@ main (int argc, char * argv[])
// Get POA manager
PortableServer::POAManager_var poa_mgr = poa->the_POAManager ();
-
+
// Create a policy list. We use persistent objects with
// user-assigned IDs, and explicit activation.
CORBA::PolicyList policy_list;
@@ -671,7 +671,7 @@ main (int argc, char * argv[])
// Create a POA for all CCS elements.
PortableServer::POA_var ccs_poa
= poa->create_POA ("CCS_POA", poa_mgr.in (), policy_list);
-
+
// Create a controller and set static m_ctrl member
// for thermostats and thermometers.
Controller_impl ctrl_servant (ccs_poa.in (), "/tmp/CCS_assets");
@@ -688,25 +688,24 @@ main (int argc, char * argv[])
cout << str.in () << endl << endl;
// Instantiate the servant locator for devices.
- DeviceLocator_impl my_locator (&ctrl_servant);
- PortableServer::ServantManager_var locator
- = my_locator._this ();
+ PortableServer::ServantManager_var locator =
+ new DeviceLocator_impl (&ctrl_servant);
// Set servant locator.
ccs_poa->set_servant_manager (locator.in ());
-
+
// Activate the POA manager.
poa_mgr->activate ();
// Accept requests
orb->run ();
}
- catch (const CORBA::Exception & e)
+ catch (const CORBA::Exception & e)
{
cerr << "Uncaught CORBA exception: " << e << endl;
return 1;
}
- catch (...)
+ catch (...)
{
assert (0); // Uncaught exception, dump core
}
diff --git a/TAO/examples/Advanced/ch_12/server.h b/TAO/examples/Advanced/ch_12/server.h
index 81db9999932..1f6ff376cc1 100644
--- a/TAO/examples/Advanced/ch_12/server.h
+++ b/TAO/examples/Advanced/ch_12/server.h
@@ -34,7 +34,7 @@
class Controller_impl;
-class Thermometer_impl : public virtual POA_CCS::Thermometer
+class Thermometer_impl : public virtual POA_CCS::Thermometer
{
public:
// CORBA attributes
@@ -50,7 +50,7 @@ public:
throw (CORBA::SystemException);
virtual void remove ()
throw (CORBA::SystemException);
-
+
// Constructor & destructor
Thermometer_impl (CCS::AssetType anum);
virtual ~Thermometer_impl ();
@@ -70,8 +70,8 @@ private:
void operator= (const Thermometer_impl &);
};
-class Thermostat_impl : public virtual POA_CCS::Thermostat,
- public virtual Thermometer_impl
+class Thermostat_impl : public virtual POA_CCS::Thermostat,
+ public virtual Thermometer_impl
{
public:
// CORBA operations
@@ -95,7 +95,7 @@ private:
void operator= (const Thermostat_impl &);
};
-class Controller_impl : public virtual POA_CCS::Controller
+class Controller_impl : public virtual POA_CCS::Controller
{
public:
// CORBA operations
@@ -151,7 +151,7 @@ private:
// Function object for the find_if algorithm to search for
// devices by location and model string.
- class StrFinder
+ class StrFinder
{
public:
StrFinder (CCS::Controller::SearchCriterion sc,
@@ -160,7 +160,7 @@ private:
bool operator () (pair<const CCS::AssetType, Thermometer_impl *> & p) const
{
char buf[32];
- switch (m_sc)
+ switch (m_sc)
{
case CCS::Controller::LOCATION:
ICP_get (p.first, "location", buf, sizeof (buf));
@@ -180,7 +180,7 @@ private:
};
class DeviceLocator_impl :
- public virtual POA_PortableServer::ServantLocator
+ public virtual PortableServer::ServantLocator
{
public:
DeviceLocator_impl (Controller_impl * ctrl);
@@ -207,7 +207,7 @@ private:
typedef list<Thermometer_impl *> EvictorQueue;
typedef map<CCS::AssetType, EvictorQueue::iterator>
ActiveObjectMap;
-
+
static const unsigned int MAX_EQ_SIZE = 100;
EvictorQueue m_eq;
ActiveObjectMap m_aom;
diff --git a/TAO/examples/Advanced/ch_18/server.cpp b/TAO/examples/Advanced/ch_18/server.cpp
index 053de368690..31d900de995 100644
--- a/TAO/examples/Advanced/ch_18/server.cpp
+++ b/TAO/examples/Advanced/ch_18/server.cpp
@@ -93,7 +93,7 @@ operator<<(ostream & os, const CORBA::Exception & e)
//----------------------------------------------------------------
-// Helper function to create object references.
+// Helper function to create object references.
static CCS::Thermometer_ptr
make_dref(PortableServer::POA_ptr poa, CCS::AssetType anum)
@@ -238,7 +238,7 @@ location(const char *loc) throw(CORBA::SystemException)
{
set_loc(loc);
}
-
+
//----------------------------------------------------------------
// Helper function to get a thermostat's nominal temperature.
@@ -269,7 +269,7 @@ throw(CCS::Thermostat::BadTemp)
m_anum, "nominal_temp", &old_temp, sizeof(old_temp)
) == 0
);
-
+
// Now set the nominal temperature to the new value.
if (ICP_set(m_anum, "nominal_temp", &new_temp) != 0) {
@@ -527,7 +527,7 @@ change(
ec.errors[len].info = bt.details;
}
}
-
+
// If we encountered errors in the above loop,
// we will have added elements to the errors sequence.
if (ec.errors.length() != 0)
@@ -547,7 +547,7 @@ throw(CORBA::SystemException)
AssetMap::iterator where; // Iterator for asset set
int num_found = 0; // Num matched per iteration
-
+
// Assume we will not find a matching device.
slist[i].device = CCS::Thermometer::_nil();
@@ -572,7 +572,7 @@ throw(CORBA::SystemException)
m_assets.begin(), m_assets.end(),
StrFinder(sc, search_str)
);
-
+
// While there are matches...
while (where != m_assets.end()) {
if (num_found == 0) {
@@ -633,7 +633,7 @@ preinvoke(
istr >> anum;
if (istr.fail())
throw CORBA::OBJECT_NOT_EXIST();
-
+
// Check whether the device is known.
if (!m_ctrl->exists(anum))
throw CORBA::OBJECT_NOT_EXIST();
@@ -700,7 +700,7 @@ main(int argc, char * argv[])
// Get POA manager
PortableServer::POAManager_var poa_mgr = poa->the_POAManager();
-
+
// Create a policy list. We use persistent objects with
// user-assigned IDs, and explicit activation.
CORBA::PolicyList policy_list;
@@ -727,7 +727,7 @@ main(int argc, char * argv[])
// Create a POA for all CCS elements.
PortableServer::POA_var ccs_poa
= poa->create_POA("CCS_POA", poa_mgr.in(), policy_list);
-
+
// Create a controller and set static m_ctrl member
// for thermostats and thermometers.
Controller_impl ctrl_servant(ccs_poa.in(), "/tmp/CCS_assets");
@@ -766,13 +766,12 @@ main(int argc, char * argv[])
inc->rebind(n, ctrl.in());
// Instantiate the servant locator for devices.
- DeviceLocator_impl my_locator(&ctrl_servant);
- PortableServer::ServantManager_var locator
- = my_locator._this();
+ PortableServer::ServantManager_var locator =
+ new DeviceLocator_impl (&ctrl_servant);
// Set servant locator.
ccs_poa->set_servant_manager(locator.in());
-
+
// Activate the POA manager.
poa_mgr->activate();
diff --git a/TAO/examples/Advanced/ch_18/server.h b/TAO/examples/Advanced/ch_18/server.h
index 5eef5fe6300..5bada662495 100644
--- a/TAO/examples/Advanced/ch_18/server.h
+++ b/TAO/examples/Advanced/ch_18/server.h
@@ -48,7 +48,7 @@ public:
throw(CORBA::SystemException);
virtual void remove()
throw(CORBA::SystemException);
-
+
// Constructor & destructor
Thermometer_impl(CCS::AssetType anum);
virtual ~Thermometer_impl();
@@ -195,7 +195,7 @@ private:
};
class DeviceLocator_impl :
- public virtual POA_PortableServer::ServantLocator {
+ public virtual PortableServer::ServantLocator {
public:
DeviceLocator_impl(Controller_impl * ctrl);
@@ -217,7 +217,7 @@ public:
void * /* cookie */,
PortableServer::Servant /* servant */,
CORBA_Environment &
- ) throw(CORBA::SystemException) {}
+ ) throw(CORBA::SystemException) {}
private:
Controller_impl * m_ctrl;
@@ -225,7 +225,7 @@ private:
typedef list<Thermometer_impl *> EvictorQueue;
typedef map<CCS::AssetType, EvictorQueue::iterator>
ActiveObjectMap;
-
+
static const unsigned int MAX_EQ_SIZE = 100;
EvictorQueue m_eq;
ActiveObjectMap m_aom;
diff --git a/TAO/examples/Advanced/ch_21/server.cpp b/TAO/examples/Advanced/ch_21/server.cpp
index 2822df712f3..24b3065cce0 100644
--- a/TAO/examples/Advanced/ch_21/server.cpp
+++ b/TAO/examples/Advanced/ch_21/server.cpp
@@ -56,7 +56,7 @@ operator<<(ostream & os, const CORBA::Exception & e)
//----------------------------------------------------------------
-// Helper function to create object references.
+// Helper function to create object references.
static CCS::Thermometer_ptr make_dref(PortableServer::POA_ptr poa, CCS::AssetType anum)
{
@@ -220,7 +220,7 @@ location(const char *loc) throw(CORBA::SystemException)
{
set_loc(loc);
}
-
+
//----------------------------------------------------------------
// Helper function to get a thermostat's nominal temperature.
@@ -251,7 +251,7 @@ throw(CCS::Thermostat::BadTemp)
m_anum, "nominal_temp", &old_temp, sizeof(old_temp)
) == 0
);
-
+
// Now set the nominal temperature to the new value.
if (ICP_set(m_anum, "nominal_temp", &new_temp) != 0) {
@@ -541,7 +541,7 @@ throw(CORBA::SystemException)
AssetSet::iterator where; // Iterator for asset set
int num_found = 0; // Num matched per iteration
-
+
// Assume we will not find a matching device.
slist[i].device = CCS::Thermometer::_nil();
@@ -575,7 +575,7 @@ throw(CORBA::SystemException)
m_assets.begin(), m_assets.end(),
StrFinder(sc, search_str)
);
-
+
// While there are matches...
while (where != m_assets.end()) {
if (num_found == 0) {
@@ -702,7 +702,7 @@ main(int argc, char **argv)
// Get POA manager
PortableServer::POAManager_var poa_mgr = poa->the_POAManager();
-
+
// Create a policy list. We use persistent objects with
// user-assigned IDs, and explicit activation.
CORBA::PolicyList policy_list;
@@ -716,7 +716,7 @@ main(int argc, char **argv)
policy_list[2] = poa->create_implicit_activation_policy(
PortableServer::NO_IMPLICIT_ACTIVATION
);
-
+
// Create a POA for the controller.
PortableServer::POA_var ctrl_poa
= poa->create_POA("CtrlPOA", poa_mgr.in(), policy_list);
@@ -732,7 +732,7 @@ main(int argc, char **argv)
// Create a POA for the devices.
PortableServer::POA_var dev_poa
= ctrl_poa->create_POA("DevPOA", poa_mgr.in(), policy_list);
-
+
// Create a controller and set static m_ctrl member
// for thermostats and thermometers.
Controller_impl ctrl_servant(dev_poa.in(), "/tmp/CCS_assets");
@@ -745,13 +745,12 @@ main(int argc, char **argv)
cout << str.in() << endl << endl;
// Instantiate the servant locator for devices.
- DeviceLocator_impl my_locator(&ctrl_servant);
- PortableServer::ServantManager_var locator
- = my_locator._this();
+ PortableServer::ServantManager_var locator =
+ new DeviceLocator_impl (&ctrl_servant);
// Set servant locator.
dev_poa->set_servant_manager(locator.in());
-
+
// Activate the POA manager.
poa_mgr->activate();
@@ -767,13 +766,3 @@ main(int argc, char **argv)
}
return 0;
}
-
-
-
-
-
-
-
-
-
-
diff --git a/TAO/examples/Advanced/ch_21/server.h b/TAO/examples/Advanced/ch_21/server.h
index 34e3879b99b..02b7206ba8c 100644
--- a/TAO/examples/Advanced/ch_21/server.h
+++ b/TAO/examples/Advanced/ch_21/server.h
@@ -51,7 +51,7 @@ public:
throw(CORBA::SystemException);
virtual void remove()
throw(CORBA::SystemException);
-
+
// Constructor & destructor
Thermometer_impl(CCS::AssetType anum);
virtual ~Thermometer_impl();
@@ -204,7 +204,7 @@ private:
};
class DeviceLocator_impl :
- public virtual POA_PortableServer::ServantLocator {
+ public virtual PortableServer::ServantLocator {
public:
DeviceLocator_impl(Controller_impl * ctrl);
@@ -223,7 +223,7 @@ public:
const PortableServer::ObjectId & /* oid */ ,
PortableServer::POA_ptr /* poa */ ,
const char * /* operation */ ,
- void * /* cookie */ ,
+ void * /* cookie */ ,
PortableServer::Servant /* servant */ ,
CORBA_Environment &
) throw(CORBA::SystemException) {}
@@ -233,7 +233,7 @@ private:
typedef list<Thermometer_impl *> EvictorQueue;
typedef map<CCS::AssetType, EvictorQueue::iterator>
ActiveObjectMap;
-
+
static const unsigned int MAX_EQ_SIZE = 100;
EvictorQueue m_eq;
ActiveObjectMap m_aom;
diff --git a/TAO/examples/POA/Adapter_Activator/server.cpp b/TAO/examples/POA/Adapter_Activator/server.cpp
index 6e8445b6811..ec2eaa63f43 100644
--- a/TAO/examples/POA/Adapter_Activator/server.cpp
+++ b/TAO/examples/POA/Adapter_Activator/server.cpp
@@ -52,7 +52,7 @@ Reference_Counted_Foo::Reference_Counted_Foo (CORBA::ORB_ptr orb,
{
}
-class Adapter_Activator : public POA_PortableServer::AdapterActivator
+class Adapter_Activator : public PortableServer::AdapterActivator
{
public:
@@ -101,10 +101,7 @@ Adapter_Activator::unknown_adapter (PortableServer::POA_ptr parent,
ACE_CHECK_RETURN (0);
}
- PortableServer::AdapterActivator_var activator = this->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- child->the_activator (activator.in (),
+ child->the_activator (this,
ACE_TRY_ENV);
ACE_CHECK_RETURN (0);
@@ -168,7 +165,7 @@ Adapter_Activator::unknown_adapter (PortableServer::POA_ptr parent,
}
}
-static char *ior_output_file = 0;
+const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
@@ -202,10 +199,6 @@ write_iors_to_file (const char *first_ior,
const char *second_ior,
const char *third_ior)
{
- if (ior_output_file == 0)
- // No filename was specified; simply return
- return 0;
-
char ior_output_file_1[BUFSIZ];
char ior_output_file_2[BUFSIZ];
char ior_output_file_3[BUFSIZ];
@@ -298,13 +291,14 @@ main (int argc, char **argv)
root_poa->the_POAManager (ACE_TRY_ENV);
ACE_TRY_CHECK;
- Adapter_Activator adapter_activator (poa_manager.in (),
- orb.in ());
+ Adapter_Activator *adapter_activator =
+ new Adapter_Activator (poa_manager.in (),
+ orb.in ());
- PortableServer::AdapterActivator_var activator = adapter_activator._this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
+ PortableServer::AdapterActivator_var adapter_activator_var =
+ adapter_activator;
- root_poa->the_activator (activator.in (),
+ root_poa->the_activator (adapter_activator_var.in (),
ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -313,7 +307,7 @@ main (int argc, char **argv)
{
// Policies for the firstPOA to be created.
- CORBA::PolicyList &policies = adapter_activator.first_poa_policies_;
+ CORBA::PolicyList &policies = adapter_activator->first_poa_policies_;
policies.length (4);
// Id Assignment Policy
@@ -350,7 +344,7 @@ main (int argc, char **argv)
{
// Policies for the secondPOA to be created.
- CORBA::PolicyList &policies = adapter_activator.second_poa_policies_;
+ CORBA::PolicyList &policies = adapter_activator->second_poa_policies_;
policies.length (2);
// Id Assignment Policy
@@ -436,12 +430,6 @@ main (int argc, char **argv)
if (orb->run () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1);
-
- // Destroy RootPOA (also destroys all child POAs).
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/DSI/server.cpp b/TAO/examples/POA/DSI/server.cpp
index 523fadfc071..39b1691bcea 100644
--- a/TAO/examples/POA/DSI/server.cpp
+++ b/TAO/examples/POA/DSI/server.cpp
@@ -20,7 +20,7 @@
ACE_RCSID(DSI, server, "$Id$")
-static char *ior_output_file = 0;
+static char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
@@ -51,10 +51,6 @@ parse_args (int argc, char **argv)
static int
write_iors_to_file (const char *first_ior)
{
- if (ior_output_file == 0)
- // No filename was specified; simply return
- return 0;
-
FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
if (output_file == 0)
@@ -206,13 +202,6 @@ main (int argc, char **argv)
// Run the ORB
if (orb->run () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1);
-
- ACE_OS::strcpy (str,"PortableServer::POA::destroy");
- // Destroy the rootPOA and its children
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/Default_Servant/server.cpp b/TAO/examples/POA/Default_Servant/server.cpp
index 580151603bc..db73c591ac0 100644
--- a/TAO/examples/POA/Default_Servant/server.cpp
+++ b/TAO/examples/POA/Default_Servant/server.cpp
@@ -22,7 +22,7 @@
ACE_RCSID(Default_Servant, server, "$Id$")
-static char *ior_output_file = 0;
+static char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
@@ -147,18 +147,14 @@ main (int argc, char **argv)
ACE_DEBUG ((LM_DEBUG,"%s\n",
file_system_ior.in ()));
- // If the ior_output_file exists, output the ior to it
- if (ior_output_file != 0)
- {
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- -1);
- ACE_OS::fprintf (output_file, "%s", file_system_ior.in ());
- ACE_OS::fclose (output_file);
- }
+ FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ if (output_file == 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot open output file for writing IOR: %s",
+ ior_output_file),
+ -1);
+ ACE_OS::fprintf (output_file, "%s", file_system_ior.in ());
+ ACE_OS::fclose (output_file);
// set the state of the poa_manager to active i.e ready to process requests
poa_manager->activate (ACE_TRY_ENV);
@@ -167,12 +163,6 @@ main (int argc, char **argv)
// Run the ORB
if (orb->run () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1);
-
- // Destroy the rootPOA and its children
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/Explicit_Activation/server.cpp b/TAO/examples/POA/Explicit_Activation/server.cpp
index 854f32710dd..cfd49439658 100644
--- a/TAO/examples/POA/Explicit_Activation/server.cpp
+++ b/TAO/examples/POA/Explicit_Activation/server.cpp
@@ -27,7 +27,7 @@
ACE_RCSID(Explicit_Activation, server, "$Id$")
-static char *ior_output_file = 0;
+const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
@@ -46,7 +46,7 @@ parse_args (int argc, char **argv)
default:
ACE_ERROR_RETURN ((LM_ERROR,
"usage: %s "
- "[-f ior_output_file]"
+ "-f ior_file"
"\n",
argv [0]),
-1);
@@ -61,10 +61,6 @@ write_iors_to_file (const char *first_ior,
const char *second_ior,
const char *third_ior)
{
- if (ior_output_file == 0)
- // No filename was specified; simply return
- return 0;
-
char ior_output_file_1[BUFSIZ];
char ior_output_file_2[BUFSIZ];
char ior_output_file_3[BUFSIZ];
@@ -316,12 +312,6 @@ main (int argc, char **argv)
if (orb->run () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1);
- // Destroy RootPOA (also destroys all child POAs).
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
ACE_TIMEPROBE_PRINT;
}
ACE_CATCHANY
diff --git a/TAO/examples/POA/Explicit_Activation/server.dsp b/TAO/examples/POA/Explicit_Activation/server.dsp
index 2991d34e701..cab84b9b575 100644
--- a/TAO/examples/POA/Explicit_Activation/server.dsp
+++ b/TAO/examples/POA/Explicit_Activation/server.dsp
@@ -13,18 +13,16 @@ CFG=POA Explicit Activation Server - Win32 Debug
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "server.mak"\
- CFG="POA Explicit Activation Server - Win32 Debug"
+!MESSAGE NMAKE /f "server.mak" CFG="POA Explicit Activation Server - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "POA Explicit Activation Server - Win32 Release" (based on\
- "Win32 (x86) Console Application")
-!MESSAGE "POA Explicit Activation Server - Win32 Debug" (based on\
- "Win32 (x86) Console Application")
+!MESSAGE "POA Explicit Activation Server - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "POA Explicit Activation Server - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
+# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
@@ -39,7 +37,7 @@ RSC=rc.exe
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
+# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
diff --git a/TAO/examples/POA/FindPOA/FindPOA.cpp b/TAO/examples/POA/FindPOA/FindPOA.cpp
index 91021c1b9a9..f3e1107bc9e 100644
--- a/TAO/examples/POA/FindPOA/FindPOA.cpp
+++ b/TAO/examples/POA/FindPOA/FindPOA.cpp
@@ -54,17 +54,14 @@ main (int argc, char **argv)
ACE_TRY_CHECK;
// Get a TAO_Adapter_Activator reference
- TAO_Adapter_Activator activator_impl (poa_manager.in ());
-
- ACE_OS::strcpy (str, "TAO_Adapter_Activator::_this");
PortableServer::AdapterActivator_var activator =
- activator_impl._this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
+ new TAO_Adapter_Activator (poa_manager.in ());
// Register the TAO_Adapter_Activator reference to be the RootPOA's
// Adapter Activator.
ACE_OS::strcpy (str,"PortableServer::POA::the_activator");
- root_poa->the_activator (activator.in (), ACE_TRY_ENV);
+ root_poa->the_activator (activator.in (),
+ ACE_TRY_ENV);
ACE_TRY_CHECK;
// Try to find a childPOA of RootPOA named firstPOA
@@ -103,14 +100,6 @@ main (int argc, char **argv)
root_poa_name.in (),
first_poa_name.in (),
second_poa_name.in ()));
-
- // This should destroy all its children
- ACE_OS::strcpy (str, "PortableServer::POA::destroy");
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/Forwarding/MyFooServant.cpp b/TAO/examples/POA/Forwarding/MyFooServant.cpp
index 2a64431cba6..615eedeacd9 100644
--- a/TAO/examples/POA/Forwarding/MyFooServant.cpp
+++ b/TAO/examples/POA/Forwarding/MyFooServant.cpp
@@ -124,12 +124,8 @@ MyFirstFooServant::handle_input (ACE_HANDLE)
this->poa_->servant_to_id (this, ACE_TRY_ENV);
ACE_TRY_CHECK;
- PortableServer::Servant servant = this->poa_->_servant ();
- ACE_ASSERT (servant != 0);
-
- void *ptr = servant->_downcast ("IDL:omg.org/PortableServer/POA:1.0");
- POA_PortableServer::POA *poa = (POA_PortableServer::POA *) ptr;
- TAO_POA *tao_poa = ACE_dynamic_cast (TAO_POA *, poa);
+ TAO_POA *tao_poa =
+ ACE_dynamic_cast (TAO_POA *, this->poa_.in ());
tao_poa->forward_object (oid.in (),
this->forward_to_var_.in (),
diff --git a/TAO/examples/POA/Forwarding/Servant_Locator.h b/TAO/examples/POA/Forwarding/Servant_Locator.h
index 6ec2f6f9e0e..9495d24e0b3 100644
--- a/TAO/examples/POA/Forwarding/Servant_Locator.h
+++ b/TAO/examples/POA/Forwarding/Servant_Locator.h
@@ -22,7 +22,7 @@
#include "tao/corba.h"
-class MyFooServantLocator : public POA_PortableServer::ServantLocator
+class MyFooServantLocator : public PortableServer::ServantLocator
{
// = TITLE
// This class is used by a POA with USE_SERVANT_MANAGER and
diff --git a/TAO/examples/POA/Forwarding/server.cpp b/TAO/examples/POA/Forwarding/server.cpp
index a41632a6d13..2b48ffbcbef 100644
--- a/TAO/examples/POA/Forwarding/server.cpp
+++ b/TAO/examples/POA/Forwarding/server.cpp
@@ -53,10 +53,10 @@ read_ior (char *filename,
first_foo_forward_to_IOR_ = ior_buffer.read ();
if (first_foo_forward_to_IOR_ == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_ERROR_RETURN ((LM_ERROR,
"Unable to allocate memory to read ior: %p\n",
"ACE_Read_Buffer::read"),
- -1);
+ -1);
}
else if (foo_number == 2)
{
@@ -95,19 +95,19 @@ parse_args (int argc, char **argv)
result = read_ior (get_opts.optarg,1);
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to read ior from %s : %p\n",
- get_opts.optarg,
+ "Unable to read ior from %s : %p\n",
+ get_opts.optarg,
"read_ior"),
- -1);
+ -1);
break;
case 'g': // read the IOR from the file.
result = read_ior (get_opts.optarg,2);
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to read ior from %s : %p\n",
- get_opts.optarg,
+ "Unable to read ior from %s : %p\n",
+ get_opts.optarg,
"read_ior"),
- -1);
+ -1);
break;
case 'k':
first_foo_forward_to_IOR_ = get_opts.optarg;
@@ -147,7 +147,7 @@ parse_args (int argc, char **argv)
"-p file_for_IOR (second foo)\n"
"\n",
argv [0]),
- -1);
+ -1);
}
// Indicates successful parsing of command line.
@@ -415,15 +415,11 @@ create_second_servant (PortableServer::POA_ptr second_poa_ptr,
second_foo_forward_to_var.in ()),
-1);
- ACE_OS::strcpy (str, "PortableServer::POAManager::_this");
- PortableServer::ServantLocator_var servant_locator_var =
- myFooServantLocator_ptr->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
ACE_OS::strcpy (str, "PortableServer::POAManager::set_servant_manager");
// Set MyFooServantLocator object as the servant Manager of
// secondPOA.
- second_poa_ptr->set_servant_manager (servant_locator_var.in (), ACE_TRY_ENV);
+ second_poa_ptr->set_servant_manager (myFooServantLocator_ptr,
+ ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -534,16 +530,8 @@ main (int argc, char **argv)
"CORBA::ORB::run"),
-1);
- ACE_OS::strcpy (str, "PortableServer::POA::destroy");
-
- // Destroy RootPOA. (Also destroys childPOA)
- root_poa_var->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
delete myFirstFooServant_ptr;
delete myFooServantLocator_ptr;
-
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/Loader/Servant_Activator.h b/TAO/examples/POA/Loader/Servant_Activator.h
index ae421b1a7f3..95a0a186b62 100644
--- a/TAO/examples/POA/Loader/Servant_Activator.h
+++ b/TAO/examples/POA/Loader/Servant_Activator.h
@@ -26,7 +26,7 @@
#include "tao/corba.h"
#include "ace/DLL.h"
-class ServantActivator_i : public POA_PortableServer::ServantActivator
+class ServantActivator_i : public PortableServer::ServantActivator
{
//= TITLE
// Servant Activator for the MyFoo servant.
diff --git a/TAO/examples/POA/Loader/Servant_Locator.h b/TAO/examples/POA/Loader/Servant_Locator.h
index 6c70a3aeb34..ca93ed482b2 100644
--- a/TAO/examples/POA/Loader/Servant_Locator.h
+++ b/TAO/examples/POA/Loader/Servant_Locator.h
@@ -26,7 +26,7 @@
#include "tao/corba.h"
#include "ace/DLL.h"
-class ServantLocator_i : public POA_PortableServer::ServantLocator
+class ServantLocator_i : public PortableServer::ServantLocator
{
// = TITLE
// This class is used by a POA with USE_SERVANT_MANAGER and
diff --git a/TAO/examples/POA/Loader/Server_Manager.cpp b/TAO/examples/POA/Loader/Server_Manager.cpp
index c4df5e5ea24..68d3199b557 100644
--- a/TAO/examples/POA/Loader/Server_Manager.cpp
+++ b/TAO/examples/POA/Loader/Server_Manager.cpp
@@ -78,8 +78,8 @@ Server_i::write_iors_to_file (const char *first_ior,
-1);
int result = ACE_OS::fprintf (output_file_1,
- "%s",
- first_ior);
+ "%s",
+ first_ior);
if (result <= 0
|| ACE_static_cast (size_t,result) != ACE_OS::strlen (first_ior))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -251,13 +251,9 @@ Server_i::create_activator (PortableServer::POA_var first_poa)
"destroy_servant"),
0);
- PortableServer::ServantActivator_var servant_activator =
- servant_activator_impl_->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Set ServantActivator_i object as the servant_manager of
// firstPOA.
- first_poa->set_servant_manager (servant_activator.in (),
+ first_poa->set_servant_manager (servant_activator_impl_,
ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -300,14 +296,10 @@ Server_i::create_locator (PortableServer::POA_var second_poa)
"destroy_servant"),
0);
- PortableServer::ServantLocator_var servant_locator =
- servant_locator_impl_->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Set ServantLocator_i object as the servant Manager of
// secondPOA.
- second_poa->set_servant_manager (servant_locator.in (),
+ second_poa->set_servant_manager (servant_locator_impl_,
ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -380,12 +372,6 @@ Server_i::run (void)
"%p\n",
"CORBA::ORB::run"),
-1);
-
- // Destroy the root_poa_ and also first_poa and second_poa.
- root_poa_->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/NewPOA/NewPOA.cpp b/TAO/examples/POA/NewPOA/NewPOA.cpp
index ee3f514e41f..914c502757c 100644
--- a/TAO/examples/POA/NewPOA/NewPOA.cpp
+++ b/TAO/examples/POA/NewPOA/NewPOA.cpp
@@ -25,6 +25,32 @@
ACE_RCSID(NewPOA, NewPOA, "$Id$")
+void
+print_poa (PortableServer::POA_ptr poa,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ CORBA::String_var poa_name =
+ poa->the_name (ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+
+ ACE_DEBUG ((LM_DEBUG,
+ "%s\n",
+ poa_name.in ()));
+
+ PortableServer::POAList_var children =
+ poa->the_children (ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+
+ for (CORBA::ULong index = 0;
+ index != children->length ();
+ ++index)
+ {
+ print_poa (children[index].in (),
+ ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ }
+}
+
int
main (int argc, char **argv)
{
@@ -115,7 +141,6 @@ main (int argc, char **argv)
second_poa->the_name (ACE_TRY_ENV);
ACE_TRY_CHECK;
-
CORBA::String_var third_poa_name =
third_poa->the_name (ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -127,11 +152,10 @@ main (int argc, char **argv)
second_poa_name.in (),
third_poa_name.in ()));
- // This should destroy all its children
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
+ print_poa (root_poa.in (),
+ ACE_TRY_ENV);
ACE_TRY_CHECK;
+
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/On_Demand_Activation/Servant_Activator.h b/TAO/examples/POA/On_Demand_Activation/Servant_Activator.h
index 81bc403e182..3b1fcdbc275 100644
--- a/TAO/examples/POA/On_Demand_Activation/Servant_Activator.h
+++ b/TAO/examples/POA/On_Demand_Activation/Servant_Activator.h
@@ -18,7 +18,7 @@
#include "tao/corba.h"
-class MyFooServantActivator : public POA_PortableServer::ServantActivator
+class MyFooServantActivator : public PortableServer::ServantActivator
{
public:
MyFooServantActivator (CORBA::ORB_ptr orb);
diff --git a/TAO/examples/POA/On_Demand_Activation/Servant_Locator.h b/TAO/examples/POA/On_Demand_Activation/Servant_Locator.h
index f82d6d6e292..ff62ec690f9 100644
--- a/TAO/examples/POA/On_Demand_Activation/Servant_Locator.h
+++ b/TAO/examples/POA/On_Demand_Activation/Servant_Locator.h
@@ -19,7 +19,7 @@
#include "tao/corba.h"
-class MyFooServantLocator : public POA_PortableServer::ServantLocator
+class MyFooServantLocator : public PortableServer::ServantLocator
{
// = TITLE
// This class is used by a POA with USE_SERVANT_MANAGER and
diff --git a/TAO/examples/POA/On_Demand_Activation/server.cpp b/TAO/examples/POA/On_Demand_Activation/server.cpp
index bbeaa488575..9040ec5487f 100644
--- a/TAO/examples/POA/On_Demand_Activation/server.cpp
+++ b/TAO/examples/POA/On_Demand_Activation/server.cpp
@@ -20,7 +20,7 @@
ACE_RCSID(On_Demand_Activation, server, "$Id$")
-static char *ior_output_file = 0;
+static char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
@@ -53,10 +53,6 @@ static int
write_iors_to_file (const char *first_ior,
const char *second_ior)
{
- if (ior_output_file == 0)
- // No filename was specified; simply return
- return 0;
-
char ior_output_file_1[BUFSIZ];
char ior_output_file_2[BUFSIZ];
@@ -74,8 +70,8 @@ write_iors_to_file (const char *first_ior,
-1);
int result = ACE_OS::fprintf (output_file_1,
- "%s",
- first_ior);
+ "%s",
+ first_ior);
if (result <= 0
|| ACE_static_cast(size_t,result) != ACE_OS::strlen (first_ior))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -200,15 +196,13 @@ main (int argc, char **argv)
ACE_TRY_CHECK;
}
- MyFooServantActivator servant_activator_impl (orb.in ());
- PortableServer::ServantActivator_var servant_activator =
- servant_activator_impl._this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
+ PortableServer::ServantManager_var servant_activator =
+ new MyFooServantActivator (orb.in ());
// Set MyFooServantActivator object as the servant_manager of
// firstPOA.
-
- first_poa->set_servant_manager (servant_activator.in (), ACE_TRY_ENV);
+ first_poa->set_servant_manager (servant_activator.in (),
+ ACE_TRY_ENV);
ACE_TRY_CHECK;
// Create a reference with user created ID in firstPOA which uses
@@ -222,15 +216,13 @@ main (int argc, char **argv)
ACE_TRY_CHECK;
- MyFooServantLocator servant_locator_impl (orb.in ());
- PortableServer::ServantLocator_var servant_locator =
- servant_locator_impl._this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
+ PortableServer::ServantManager_var servant_locator =
+ new MyFooServantLocator (orb.in ());
// Set MyFooServantLocator object as the servant Manager of
// secondPOA.
- second_poa->set_servant_manager (servant_locator.in (), ACE_TRY_ENV);
+ second_poa->set_servant_manager (servant_locator.in (),
+ ACE_TRY_ENV);
ACE_TRY_CHECK;
// Try to create a reference with user created ID in second_poa
@@ -274,13 +266,6 @@ main (int argc, char **argv)
// Run the ORB.
if (orb->run () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1);
-
- // Destroy the root_poa and also first_poa and second_poa
-
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/On_Demand_Loading/Servant_Activator.h b/TAO/examples/POA/On_Demand_Loading/Servant_Activator.h
index 0c7906c4f21..47aa9ceda35 100644
--- a/TAO/examples/POA/On_Demand_Loading/Servant_Activator.h
+++ b/TAO/examples/POA/On_Demand_Loading/Servant_Activator.h
@@ -24,7 +24,7 @@
#include "Servant_Manager.h"
-class ServantActivator_i : public POA_PortableServer::ServantActivator
+class ServantActivator_i : public PortableServer::ServantActivator
{
//= TITLE
// Servant Activator for the MyFoo servant.
diff --git a/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h b/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h
index f66ac73ecf0..933288d08d6 100644
--- a/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h
+++ b/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h
@@ -25,7 +25,7 @@
#include "ace/DLL.h"
#include "Servant_Manager.h"
-class ServantLocator_i : public POA_PortableServer::ServantLocator
+class ServantLocator_i : public PortableServer::ServantLocator
{
// = TITLE
// This class is used by a POA with USE_SERVANT_MANAGER and
diff --git a/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp b/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp
index 93c7af2a4b3..f6af48b38e1 100644
--- a/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp
+++ b/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp
@@ -77,8 +77,8 @@ Server_i::write_iors_to_file (const char *first_ior,
-1);
int result = ACE_OS::fprintf (output_file_1,
- "%s",
- first_ior);
+ "%s",
+ first_ior);
if (result <= 0
|| ACE_static_cast (size_t,result) != ACE_OS::strlen (first_ior))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -215,7 +215,7 @@ Server_i::create_poa (const char *name,
{
CORBA::Policy_ptr policy = policies_[i];
policy->destroy (ACE_TRY_ENV);
- ACE_TRY_CHECK;
+ ACE_TRY_CHECK;
}
}
ACE_CATCHANY
@@ -243,13 +243,9 @@ Server_i::create_activator (PortableServer::POA_var first_poa)
ServantActivator_i (orb_.in ()),
0);
- PortableServer::ServantActivator_var servant_activator =
- servant_activator_impl_->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Set ServantActivator_i object as the servant_manager of
// firstPOA.
- first_poa->set_servant_manager (servant_activator.in (),
+ first_poa->set_servant_manager (servant_activator_impl_,
ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -291,14 +287,9 @@ Server_i::create_locator (PortableServer::POA_var second_poa)
ServantLocator_i (orb_.in ()),
0);
- PortableServer::ServantLocator_var servant_locator =
- servant_locator_impl_->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Set ServantLocator_i object as the servant Manager of
// secondPOA.
-
- second_poa->set_servant_manager (servant_locator.in (),
+ second_poa->set_servant_manager (servant_locator_impl_,
ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -371,12 +362,6 @@ Server_i::run (void)
"%p\n",
"CORBA::ORB::run"),
-1);
-
- // Destroy the root_poa_ and also first_poa and second_poa.
- root_poa_->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/Reference_Counted_Servant/server.cpp b/TAO/examples/POA/Reference_Counted_Servant/server.cpp
index 3caa80dbf77..02938465e1b 100644
--- a/TAO/examples/POA/Reference_Counted_Servant/server.cpp
+++ b/TAO/examples/POA/Reference_Counted_Servant/server.cpp
@@ -49,7 +49,7 @@ Reference_Counted_Foo::Reference_Counted_Foo (CORBA::ORB_ptr orb,
{
}
-static char *ior_output_file = 0;
+static char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
@@ -81,10 +81,6 @@ parse_args (int argc, char **argv)
static int
write_iors_to_file (const char *ior)
{
- if (ior_output_file == 0)
- // No filename was specified; simply return
- return 0;
-
FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
if (output_file == 0)
@@ -175,12 +171,6 @@ main (int argc, char **argv)
if (orb->run () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1);
-
- // Destroy RootPOA (also destroys all child POAs).
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/POA/RootPOA/RootPOA.cpp b/TAO/examples/POA/RootPOA/RootPOA.cpp
index f2a5382636d..c5ed60614eb 100644
--- a/TAO/examples/POA/RootPOA/RootPOA.cpp
+++ b/TAO/examples/POA/RootPOA/RootPOA.cpp
@@ -39,8 +39,8 @@ main (int argc, char **argv)
orb->resolve_initial_references ("RootPOA", ACE_TRY_ENV);
ACE_TRY_CHECK;
- // apply _narrow on the object of type CORBA::Object, to make it a
- // POA class Object.
+ // apply _narrow on the object of type CORBA::Object, to make it
+ // a POA class Object.
PortableServer::POA_var root_poa =
PortableServer::POA::_narrow (obj.in (), ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -53,20 +53,14 @@ main (int argc, char **argv)
ACE_DEBUG ((LM_DEBUG,
"The RootPOA is : %s\n",
poa_name.in ()));
-
- // Destroy the POA object,also destroys the child POAs if any.
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
- ACE_DEBUG ((LM_DEBUG,
- "Exceptions raised \n"));
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "Exception raised");
ACE_CHECK_RETURN (-1);
}
ACE_ENDTRY;
-return 0;
+ return 0;
}
diff --git a/TAO/examples/POA/TIE/server.cpp b/TAO/examples/POA/TIE/server.cpp
index 8264cb6f8bf..c4d8558e5fb 100644
--- a/TAO/examples/POA/TIE/server.cpp
+++ b/TAO/examples/POA/TIE/server.cpp
@@ -156,7 +156,7 @@ main (int argc, char **argv)
CORBA::String_var first_ior =
orb->object_to_string (a.in (), ACE_TRY_ENV);
ACE_TRY_CHECK;
-
+
// Stringyfy all the object references and print them out.
CORBA::String_var second_ior =
orb->object_to_string (b.in (), ACE_TRY_ENV);
@@ -178,23 +178,23 @@ main (int argc, char **argv)
FILE *output_file_4 = ACE_OS::fopen ("ior_4", "w");
if (output_file_1)
- ACE_OS::fprintf (output_file_1,
+ ACE_OS::fprintf (output_file_1,
"%s",
first_ior.in ());
if (output_file_2)
- ACE_OS::fprintf (output_file_2,
+ ACE_OS::fprintf (output_file_2,
"%s",
second_ior.in ());
if (output_file_3)
- ACE_OS::fprintf (output_file_3,
+ ACE_OS::fprintf (output_file_3,
"%s",
third_ior.in ());
if (output_file_4)
- ACE_OS::fprintf (output_file_4,
+ ACE_OS::fprintf (output_file_4,
"%s",
forth_ior.in ());
-
- ACE_OS::fclose (output_file_1);
+
+ ACE_OS::fclose (output_file_1);
ACE_OS::fclose (output_file_2);
ACE_OS::fclose (output_file_3);
ACE_OS::fclose (output_file_4);
@@ -214,17 +214,17 @@ main (int argc, char **argv)
FILE *output_file_5 = ACE_OS::fopen ("ior_5", "w");
FILE *output_file_6 = ACE_OS::fopen ("ior_6", "w");
-
+
if (output_file_5)
- ACE_OS::fprintf (output_file_5,
+ ACE_OS::fprintf (output_file_5,
"%s",
fifth_ior.in ());
if (output_file_6)
- ACE_OS::fprintf (output_file_6,
+ ACE_OS::fprintf (output_file_6,
"%s",
sixth_ior.in ());
- ACE_OS::fclose (output_file_5);
+ ACE_OS::fclose (output_file_5);
ACE_OS::fclose (output_file_6);
#endif /* ACE_HAS_USING_KEYWORD */
@@ -250,13 +250,6 @@ main (int argc, char **argv)
if (orb->run () == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1);
-
- ACE_OS::strcpy (str, "PortableServer::POA::destroy");
- // Destroy RootPOA.
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/examples/Quoter/Quoter_i.cpp b/TAO/examples/Quoter/Quoter_i.cpp
index 1c8a1f781c9..755178f1eae 100644
--- a/TAO/examples/Quoter/Quoter_i.cpp
+++ b/TAO/examples/Quoter/Quoter_i.cpp
@@ -325,17 +325,7 @@ Quoter_i::move (CosLifeCycle::FactoryFinder_ptr there,
PortableServer::ObjectId_var oid = this->poa_var_->servant_to_id (this, ACE_TRY_ENV);
ACE_TRY_CHECK;
- PortableServer::Servant servant = this->poa_var_->_servant ();
-
- if (servant == 0)
- {
- ACE_ERROR ((LM_ERROR,"Quoter_i::move: Could not find servant.\n"));
- ACE_THROW (CosLifeCycle::NotMovable());
- }
-
- void *ptr = servant->_downcast ("IDL:PortableServer/POA:1.0");
- POA_PortableServer::POA *poa = (POA_PortableServer::POA *) ptr;
- TAO_POA *tao_poa = ACE_dynamic_cast (TAO_POA *, poa);
+ TAO_POA *tao_poa = ACE_dynamic_cast (TAO_POA *, this->poa_var_.in ());
exception_message = "While forwarding object";
tao_poa->forward_object (oid.in (),
diff --git a/TAO/orbsvcs/IFR_Service/IFR_Service.cpp b/TAO/orbsvcs/IFR_Service/IFR_Service.cpp
index 74209f9cb4f..ad94dd7b22f 100644
--- a/TAO/orbsvcs/IFR_Service/IFR_Service.cpp
+++ b/TAO/orbsvcs/IFR_Service/IFR_Service.cpp
@@ -11,7 +11,7 @@
ACE_RCSID(IFR_Service, IFR_Service, "$Id$")
IFR_Service::IFR_Service (void)
- : servant_locator_impl_ (0),
+ : servant_locator_ (),
ior_multicast_ (0),
config_ (0),
repo_impl_ (0),
@@ -36,7 +36,6 @@ IFR_Service::~IFR_Service (void)
}
CORBA::release (this->repository_);
- delete this->servant_locator_impl_;
delete this->config_;
delete this->ior_multicast_;
}
@@ -48,23 +47,23 @@ IFR_Service::init (int argc,
{
ACE_TRY
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
- 0,
+ this->orb_ = CORBA::ORB_init (argc,
+ argv,
+ 0,
ACE_TRY_ENV);
ACE_TRY_CHECK;
CORBA::Object_var obj =
- this->orb_->resolve_initial_references ("RootPOA",
+ this->orb_->resolve_initial_references ("RootPOA",
ACE_TRY_ENV);
ACE_TRY_CHECK;
this->root_poa_ =
- PortableServer::POA::_narrow (obj.in (),
+ PortableServer::POA::_narrow (obj.in (),
ACE_TRY_ENV);
ACE_TRY_CHECK;
- int retval = OPTIONS::instance()->parse_args (argc,
+ int retval = OPTIONS::instance()->parse_args (argc,
argv);
if (retval != 0)
@@ -119,7 +118,7 @@ IFR_Service::init (int argc,
int
IFR_Service::run (CORBA::Environment &ACE_TRY_ENV)
{
- int status = this->orb_->run (0,
+ int status = this->orb_->run (0,
ACE_TRY_ENV);
ACE_CHECK_RETURN (-1);
@@ -138,14 +137,14 @@ IFR_Service::fini (CORBA::Environment &ACE_TRY_ENV)
{
ACE_TRY
{
- this->root_poa_->destroy (1,
- 1,
+ this->root_poa_->destroy (1,
+ 1,
ACE_TRY_ENV);
ACE_TRY_CHECK;
}
ACE_CATCHANY
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
"IFR_Service::fini");
ACE_RE_THROW;
}
@@ -203,14 +202,14 @@ IFR_Service::create_poas (CORBA::Environment &ACE_TRY_ENV)
// Specifically, we'll use a servant locator.
policies[3] =
this->root_poa_->create_servant_retention_policy (
- PortableServer::NON_RETAIN,
+ PortableServer::NON_RETAIN,
ACE_TRY_ENV
);
ACE_CHECK_RETURN (-1);
ACE_TString name = "ir_objectPOA";
- this->ir_object_poa_ =
+ this->ir_object_poa_ =
this->root_poa_->create_POA (name.c_str (),
poa_manager.in (),
policies,
@@ -234,16 +233,12 @@ IFR_Service::create_poas (CORBA::Environment &ACE_TRY_ENV)
int
IFR_Service::create_locator (CORBA::Environment &ACE_TRY_ENV)
{
- ACE_NEW_THROW_EX (this->servant_locator_impl_,
+ ACE_NEW_THROW_EX (this->servant_locator_,
IFR_ServantLocator (this->repo_impl_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (-1);
- PortableServer::ServantLocator_var servant_locator =
- this->servant_locator_impl_->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (-1);
-
- this->ir_object_poa_->set_servant_manager (servant_locator.in (),
+ this->ir_object_poa_->set_servant_manager (this->servant_locator_.in (),
ACE_TRY_ENV);
ACE_CHECK_RETURN (-1);
@@ -256,9 +251,9 @@ IFR_Service::open_config (CORBA::Environment &ACE_TRY_ENV)
if (OPTIONS::instance ()->using_registry ())
{
#if defined (ACE_WIN32)
- HKEY root =
+ HKEY root =
ACE_Configuration_Win32Registry::resolve_key (
- HKEY_LOCAL_MACHINE,
+ HKEY_LOCAL_MACHINE,
"Software\\TAO\\IFR"
);
@@ -288,7 +283,7 @@ IFR_Service::open_config (CORBA::Environment &ACE_TRY_ENV)
LM_ERROR,
ACE_TEXT ("Error:: Opening persistent heap file '%s'\n"),
filename
- ),
+ ),
-1
);
}
@@ -325,7 +320,7 @@ IFR_Service::create_repository (CORBA::Environment &ACE_TRY_ENV)
ACE_NEW_THROW_EX (
impl_tie,
POA_IR::ComponentRepository_tie<TAO_ComponentRepository_i> (
- impl,
+ impl,
this->repo_poa_,
1
),
@@ -346,21 +341,21 @@ IFR_Service::create_repository (CORBA::Environment &ACE_TRY_ENV)
this->repository_ = impl_tie->_this (ACE_TRY_ENV);
ACE_CHECK_RETURN (-1);
-
+
impl->repo_objref (this->repository_);
// Register with the INS.
- this->orb_->_tao_add_to_IOR_table ("InterfaceRepository",
+ this->orb_->_tao_add_to_IOR_table ("InterfaceRepository",
this->repository_);
// Save and output the IOR string.
this->ifr_ior_ =
- this->orb_->object_to_string (this->repository_,
+ this->orb_->object_to_string (this->repository_,
ACE_TRY_ENV);
ACE_CHECK_RETURN (-1);
- FILE *output_file_ =
+ FILE *output_file_ =
ACE_OS::fopen (OPTIONS::instance()->ior_output_file (),
"w");
@@ -397,7 +392,7 @@ IFR_Service::init_multicast_server (CORBA::Environment &ACE_TRY_ENV)
if (port == 0)
{
// Check environment var. for multicast port.
- const char *port_number =
+ const char *port_number =
ACE_OS::getenv ("InterfaceRepoServicePort");
if (port_number != 0)
@@ -411,8 +406,8 @@ IFR_Service::init_multicast_server (CORBA::Environment &ACE_TRY_ENV)
// Instantiate a handler which will handle client requests for
// the IFR ior, received on the multicast port.
- ACE_NEW_THROW_EX (this->ior_multicast_,
- TAO_IOR_Multicast (),
+ ACE_NEW_THROW_EX (this->ior_multicast_,
+ TAO_IOR_Multicast (),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (-1);
@@ -468,4 +463,3 @@ IFR_Service::init_multicast_server (CORBA::Environment &ACE_TRY_ENV)
return 0;
}
-
diff --git a/TAO/orbsvcs/IFR_Service/IFR_Service.h b/TAO/orbsvcs/IFR_Service/IFR_Service.h
index 4289d138df3..cc542f5de98 100644
--- a/TAO/orbsvcs/IFR_Service/IFR_Service.h
+++ b/TAO/orbsvcs/IFR_Service/IFR_Service.h
@@ -16,7 +16,7 @@
#ifndef IFR_SERVICE_H
#define IFR_SERVICE_H
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#include "tao/ORB.h"
#include "tao/ifrfwd.h"
diff --git a/TAO/orbsvcs/IFR_Service/Servant_Locator.h b/TAO/orbsvcs/IFR_Service/Servant_Locator.h
index 9c557a0f1a4..27fca17f8c1 100644
--- a/TAO/orbsvcs/IFR_Service/Servant_Locator.h
+++ b/TAO/orbsvcs/IFR_Service/Servant_Locator.h
@@ -25,7 +25,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-class IFR_ServantLocator : public POA_PortableServer::ServantLocator
+class IFR_ServantLocator : public PortableServer::ServantLocator
{
// = TITLE
// IFR_ServantLocator
@@ -66,4 +66,3 @@ private:
};
#endif /* IFR_SERVANT_LOCATOR_H */
-
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp
index 0635c3d29ab..2829565260b 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp
@@ -827,14 +827,10 @@ ImplRepo_i::init (int argc, char **argv, CORBA::Environment &ACE_TRY_ENV)
IMR_Adapter_Activator (this->forwarder_impl_),
-1);
- PortableServer::AdapterActivator_var activator =
- this->activator_->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Register the Adapter_Activator reference to be the RootPOA's
// Adapter Activator.
- this->root_poa_->the_activator (activator.in (), ACE_TRY_ENV);
+ this->root_poa_->the_activator (this->activator_, ACE_TRY_ENV);
ACE_TRY_CHECK;
// Get reactor instance from TAO.
@@ -1029,7 +1025,7 @@ ImplRepo_i::~ImplRepo_i (void)
"Implementation Repository: cannot remove handler\n"));
delete this->forwarder_impl_;
- delete this->activator_;
+ CORBA::release (this->activator_);
delete this->ior_multicast_;
}
@@ -1306,12 +1302,8 @@ IMR_Adapter_Activator::unknown_adapter (PortableServer::POA_ptr parent,
ACE_TRY_CHECK;
}
- exception_message = "While _this";
- PortableServer::AdapterActivator_var activator = this->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
exception_message = "While child->the_activator";
- child->the_activator (activator.in (), ACE_TRY_ENV);
+ child->the_activator (this, ACE_TRY_ENV);
ACE_TRY_CHECK;
exception_message = "While unknown_adapter, set_servant";
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h
index ec5c17a1680..a2d39050705 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h
+++ b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h
@@ -34,7 +34,7 @@ class IMR_Forwarder;
typedef ImplRepo_i *ImplRepo_i_ptr;
typedef ImplRepo_i_ptr ImplRepo_i_ref;
-class IMR_Adapter_Activator : public POA_PortableServer::AdapterActivator
+class IMR_Adapter_Activator : public PortableServer::AdapterActivator
{
// = TITLE
// Implementation Repository Adapter Activator
@@ -59,7 +59,7 @@ private:
// The object to use as the default servant.
};
-class ImplRepo_i
+class ImplRepo_i
: public POA_ImplementationRepository::Administration,
public TAO_IOR_LookupTable_Callback
{
@@ -161,8 +161,8 @@ private:
ACE_THROW_SPEC ((CORBA::SystemException,
ImplementationRepository::Administration::NotFound,
ImplementationRepository::Administration::CannotActivate));
- // Implementation of activate_server. <check_startup> is a flag to check
- // the activation mode before attempting to start it.
+ // Implementation of activate_server. <check_startup> is a flag to check
+ // the activation mode before attempting to start it.
void start_server_i (const char *server,
CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ())
@@ -201,7 +201,7 @@ private:
// The ior_multicast event handler.
CORBA::String_var imr_ior_;
- // Implementation Repository's IOR. Why do we store it here? Multicast
+ // Implementation Repository's IOR. Why do we store it here? Multicast
// doesn't work otherwise.
int argc_;
@@ -209,7 +209,7 @@ private:
char **argv_;
// The command line arguments.
-
+
friend class IMR_Forwarder;
};
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancer_i.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancer_i.cpp
index 58a597fe088..7dbe9cefca5 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancer_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancer_i.cpp
@@ -79,12 +79,6 @@ TAO_LB_LoadBalancer::init (const char * repository_id,
{
ACE_TRY_NEW_ENV
{
- // Create a new transient servant manager object in the Root
- // POA.
- PortableServer::ServantManager_var servant_manager =
- this->locator_._this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Create the appropriate RequestProcessingPolicy
// (USE_SERVANT_MANAGER) and ServantRetentionPolicy (NON_RETAIN)
// for a ServantLocator.
@@ -109,7 +103,7 @@ TAO_LB_LoadBalancer::init (const char * repository_id,
policy_list[1] =
PortableServer::ServantRetentionPolicy::_duplicate (
retention. in ());
-
+
// Create the child POA with the ServantManager (ReplicaLocator)
// above policies.
PortableServer::POAManager_var poa_manager =
@@ -133,7 +127,7 @@ TAO_LB_LoadBalancer::init (const char * repository_id,
// Now set the ReplicaLocator as the child POA's Servant
// Manager.
- this->poa_->set_servant_manager (servant_manager.in (),
+ this->poa_->set_servant_manager (&this->locator_,
ACE_TRY_ENV);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LoadBalancer_i.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LoadBalancer_i.cpp
index 58a597fe088..7dbe9cefca5 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LoadBalancer_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LoadBalancer_i.cpp
@@ -79,12 +79,6 @@ TAO_LB_LoadBalancer::init (const char * repository_id,
{
ACE_TRY_NEW_ENV
{
- // Create a new transient servant manager object in the Root
- // POA.
- PortableServer::ServantManager_var servant_manager =
- this->locator_._this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Create the appropriate RequestProcessingPolicy
// (USE_SERVANT_MANAGER) and ServantRetentionPolicy (NON_RETAIN)
// for a ServantLocator.
@@ -109,7 +103,7 @@ TAO_LB_LoadBalancer::init (const char * repository_id,
policy_list[1] =
PortableServer::ServantRetentionPolicy::_duplicate (
retention. in ());
-
+
// Create the child POA with the ServantManager (ReplicaLocator)
// above policies.
PortableServer::POAManager_var poa_manager =
@@ -133,7 +127,7 @@ TAO_LB_LoadBalancer::init (const char * repository_id,
// Now set the ReplicaLocator as the child POA's Servant
// Manager.
- this->poa_->set_servant_manager (servant_manager.in (),
+ this->poa_->set_servant_manager (&this->locator_,
ACE_TRY_ENV);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaLocator.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaLocator.h
index fd44a62ef33..4b729e1ff82 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaLocator.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/ReplicaLocator.h
@@ -31,7 +31,7 @@
class TAO_LB_LoadBalancer;
class TAO_LoadBalancing_Export TAO_LB_ReplicaLocator
- : public virtual POA_PortableServer::ServantLocator
+ : public virtual PortableServer::ServantLocator
{
// = TITLE
// Class that provides request forwarding.
diff --git a/TAO/orbsvcs/orbsvcs/ReplicaLocator.h b/TAO/orbsvcs/orbsvcs/ReplicaLocator.h
index fd44a62ef33..4b729e1ff82 100644
--- a/TAO/orbsvcs/orbsvcs/ReplicaLocator.h
+++ b/TAO/orbsvcs/orbsvcs/ReplicaLocator.h
@@ -31,7 +31,7 @@
class TAO_LB_LoadBalancer;
class TAO_LoadBalancing_Export TAO_LB_ReplicaLocator
- : public virtual POA_PortableServer::ServantLocator
+ : public virtual PortableServer::ServantLocator
{
// = TITLE
// Class that provides request forwarding.
diff --git a/TAO/tao/Buffering_Constraint_Policy.cpp b/TAO/tao/Buffering_Constraint_Policy.cpp
index 3affa7900b1..7439c0fd435 100644
--- a/TAO/tao/Buffering_Constraint_Policy.cpp
+++ b/TAO/tao/Buffering_Constraint_Policy.cpp
@@ -18,25 +18,11 @@ TAO_Buffering_Constraint_Policy::TAO_Buffering_Constraint_Policy (const TAO::Buf
TAO_Buffering_Constraint_Policy::TAO_Buffering_Constraint_Policy (const TAO_Buffering_Constraint_Policy &rhs)
: TAO::BufferingConstraintPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
buffering_constraint_ (rhs.buffering_constraint_)
{
}
-void
-TAO_Buffering_Constraint_Policy::_add_ref (void)
-{
- this->_incr_refcnt ();
- // This is a TAO specific implementation.
-}
-
-void
-TAO_Buffering_Constraint_Policy::_remove_ref (void)
-{
- this->_decr_refcnt ();
- // This is a TAO specific implementation.
-}
-
CORBA::PolicyType
TAO_Buffering_Constraint_Policy::policy_type (CORBA_Environment &)
{
diff --git a/TAO/tao/Buffering_Constraint_Policy.h b/TAO/tao/Buffering_Constraint_Policy.h
index e80261f94da..10bc3d63486 100644
--- a/TAO/tao/Buffering_Constraint_Policy.h
+++ b/TAO/tao/Buffering_Constraint_Policy.h
@@ -41,7 +41,7 @@
class TAO_Export TAO_Buffering_Constraint_Policy
: public TAO::BufferingConstraintPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// Implementation class for TAO-specific Buffering Constraint
@@ -58,12 +58,6 @@ public:
TAO_Buffering_Constraint_Policy (const TAO_Buffering_Constraint_Policy &rhs);
// Copy constructor.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
static CORBA::Policy_ptr create (const CORBA::Any& val,
CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ());
// Helper method for the implementation of CORBA::ORB::create_policy.
diff --git a/TAO/tao/Client_Priority_Policy.cpp b/TAO/tao/Client_Priority_Policy.cpp
index af08ee2a120..5966730dd1d 100644
--- a/TAO/tao/Client_Priority_Policy.cpp
+++ b/TAO/tao/Client_Priority_Policy.cpp
@@ -19,25 +19,11 @@ TAO_Client_Priority_Policy::TAO_Client_Priority_Policy (
TAO_Client_Priority_Policy::TAO_Client_Priority_Policy (const TAO_Client_Priority_Policy &rhs)
: TAO::ClientPriorityPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
priority_spec_ (rhs.priority_spec_)
{
}
-void
-TAO_Client_Priority_Policy::_add_ref (void)
-{
- this->_incr_refcnt ();
- // This is a TAO specific implementation.
-}
-
-void
-TAO_Client_Priority_Policy::_remove_ref (void)
-{
- this->_decr_refcnt ();
- // This is a TAO specific implementation.
-}
-
TAO::PrioritySpecification
TAO_Client_Priority_Policy::priority_specification (CORBA::Environment &)
ACE_THROW_SPEC (())
diff --git a/TAO/tao/Client_Priority_Policy.h b/TAO/tao/Client_Priority_Policy.h
index c944105efb7..99792591e34 100644
--- a/TAO/tao/Client_Priority_Policy.h
+++ b/TAO/tao/Client_Priority_Policy.h
@@ -43,7 +43,7 @@
class TAO_Export TAO_Client_Priority_Policy
: public TAO::ClientPriorityPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
//
@@ -58,12 +58,6 @@ public:
TAO_Client_Priority_Policy (const TAO_Client_Priority_Policy &rhs);
// Copy constructor.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
static CORBA::Policy_ptr create (
const CORBA::Any& val,
CORBA::Environment &ACE_TRY_ENV =
diff --git a/TAO/tao/Current.pidl b/TAO/tao/Current.pidl
index f6e6498be41..e444f749b31 100644
--- a/TAO/tao/Current.pidl
+++ b/TAO/tao/Current.pidl
@@ -1,10 +1,66 @@
+//
// $Id$
+//
+// ================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// Current.pidl
+//
+// = DESCRIPTION
+//
+// This file was used to generate the code in CurrentC.{h,i,cpp}.
+//
+// The steps to regenerate the code are as follows:
+//
+// 1. Patch this pidl file to (a) remove the CORBA module bringing
+// the Current interface to the global scope; and (b) rename the
+// Current interface to CORBA_Current.
+//
+// Apply patches using the following commands:
+//
+// patch < diffs\Current.pidl.diff
+//
+// 2. Run the tao_idl compiler on the patched pidl file. The
+// command used for this is:
+//
+// tao_idl.exe \
+// -Ge 1 \
+// -Wb,export_macro=TAO_Export \
+// -Wb,export_include="tao/corbafwd.h" \
+// -Wb,pre_include="ace/pre.h" \
+// -Wb,post_include="ace/post.h" \
+// Current.pidl
+//
+// 3. Then patch the generated code. This patch (a) fixes the
+// interface repository IDs; and (b) eliminates cycles in the
+// include dependencies.
+//
+// Apply patches using the following commands:
+//
+// patch < diffs\CurrentC.h.diff
+// patch < diffs\CurrentC.i.diff
+// patch < diffs\CurrentC.cpp.diff
+//
+// 4. Undo the patches to this pidl file.
+//
+// Note: The diffs were generated with these commands:
+//
+// diff -wbu Current.pidl Current.pidl.mod > diffs\Current.pidl.diff
+//
+// diff -wbu CurrentC.h CurrentC.h.mod > diffs\CurrentC.h.diff
+// diff -wbu CurrentC.i CurrentC.i.mod > diffs\CurrentC.i.diff
+// diff -wbu CurrentC.cpp CurrentC.cpp.mod > diffs\CurrentC.cpp.diff
+//
+// ================================================================
#pragma prefix "omg.org"
module CORBA
{
- interface Current {};
+ local interface Current {};
};
#pragma prefix ""
diff --git a/TAO/tao/CurrentC.cpp b/TAO/tao/CurrentC.cpp
index bcf055e6936..d85060483d2 100644
--- a/TAO/tao/CurrentC.cpp
+++ b/TAO/tao/CurrentC.cpp
@@ -1,50 +1,32 @@
-/* -*- C++ -*- */
-// $Id$
+/* -*- C++ -*- $Id$ */
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
//
-// Information on TAO is available at
+// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
#include "tao/CurrentC.h"
-#include "tao/Stub.h"
-#include "tao/Servant_Base.h"
-#include "tao/Typecode.h"
-#include "tao/Any.h"
-#include "tao/POA_CORBA.h"
-#include "tao/Environment.h"
#if !defined (__ACE_INLINE__)
#include "tao/CurrentC.i"
#endif /* !defined INLINE */
-ACE_RCSID(tao, CurrentC, "$Id$")
+// default constructor
+CORBA_Current::CORBA_Current (void)
+{}
-CORBA_Current_ptr CORBA_Current::_duplicate (CORBA_Current_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
+// destructor
+CORBA_Current::~CORBA_Current (void)
+{}
CORBA_Current_ptr CORBA_Current::_narrow (
CORBA::Object_ptr obj,
CORBA::Environment &ACE_TRY_ENV
)
{
- if (CORBA::is_nil (obj))
- return CORBA_Current::_nil ();
- if (! obj->_is_local ())
- {
- CORBA::Boolean is_a = obj->_is_a ("IDL:CORBA_Current:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA_Current::_nil ());
- if (is_a == 0)
- return CORBA_Current::_nil ();
- }
return CORBA_Current::_unchecked_narrow (obj, ACE_TRY_ENV);
}
@@ -55,25 +37,7 @@ CORBA_Current_ptr CORBA_Current::_unchecked_narrow (
{
if (CORBA::is_nil (obj))
return CORBA_Current::_nil ();
- if (! obj->_is_local ())
- {
- TAO_Stub* stub = obj->_stubobj ();
- if (stub)
- stub->_incr_refcnt ();
- CORBA_Current_ptr default_proxy = CORBA_Current::_nil ();
-
- if (obj->_is_collocated () && _TAO_collocation_CORBA_Current_Stub_Factory_function_pointer != 0)
- {
- default_proxy = _TAO_collocation_CORBA_Current_Stub_Factory_function_pointer (obj);
- }
- if (CORBA::is_nil (default_proxy))
- ACE_NEW_RETURN (default_proxy, CORBA_Current (stub), CORBA_Current::_nil ());
-
- return default_proxy;
-
- }
- else
- return
+ return
ACE_reinterpret_cast
(
CORBA_Current_ptr,
@@ -88,26 +52,28 @@ CORBA_Current_ptr CORBA_Current::_unchecked_narrow (
);
}
-CORBA_Current_ptr CORBA_Current::_nil (void)
-{
- return (CORBA_Current_ptr)NULL;
-} // end of _nil
-
-void
-CORBA_Current::_tao_any_destructor (void* x)
+CORBA_Current_ptr
+CORBA_Current::_duplicate (CORBA_Current_ptr obj)
{
- CORBA_Current *tmp = ACE_static_cast (CORBA_Current*,x);
- CORBA::release (tmp);
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
}
-CORBA::Boolean CORBA_Current::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
+void *CORBA_Current::_tao_QueryInterface (ptr_arith_t type)
{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &CORBA_Current::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
}
const char* CORBA_Current::_interface_repository_id (void) const
@@ -115,54 +81,9 @@ const char* CORBA_Current::_interface_repository_id (void) const
return "IDL:omg.org/CORBA/Current:1.0";
}
-CORBA_Current_ptr (*_TAO_collocation_CORBA_Current_Stub_Factory_function_pointer) (
- CORBA::Object_ptr obj
- ) = 0;
-void operator<<= (CORBA::Any &_tao_any, CORBA::Current_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- CORBA::_tc_Current,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::Current_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = CORBA::Current::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_Current, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_Current,
- 1,
- _tao_elem,
- CORBA::Current::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = CORBA::Current::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = CORBA::Current::_nil ();
- return 0;
-}
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<CORBA_Current,CORBA_Current_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<CORBA_Current,CORBA_Current_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tao/CurrentC.h b/TAO/tao/CurrentC.h
index f3f73389ac5..072e3a57bf2 100644
--- a/TAO/tao/CurrentC.h
+++ b/TAO/tao/CurrentC.h
@@ -1,44 +1,40 @@
-/* -*- C++ -*- */
-// $Id$
+/* -*- C++ -*- $Id$ */
-// ============================================================================
-//
-// = LIBRARY
-// TAO
-//
-// = FILENAME
-// CurrentC.h
-//
-// = AUTHOR
-//
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
//
-// Information on TAO is available at
+// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-//
-//
-// Modified by Aniruddha Gokhale.
-//
-// ============================================================================
-
-#ifndef TAO_IDL_CURRENTC_H
-#define TAO_IDL_CURRENTC_H
-#include "ace/pre.h"
-#ifndef TAO_EXPORT_MACRO
-#define TAO_EXPORT_MACRO
-#endif
+#ifndef _TAO_IDL_CURRENTC_H_
+#define _TAO_IDL_CURRENTC_H_
+#include "ace/pre.h"
#include "tao/Object.h"
-#include "tao/Exception.h"
-#include "tao/Environment.h"
+
+#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
+#include "ace/streams.h"
+#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/corbafwd.h"
+
+#if defined (TAO_EXPORT_MACRO)
+#undef TAO_EXPORT_MACRO
+#endif
+#define TAO_EXPORT_MACRO TAO_Export
+
+#if defined (TAO_EXPORT_NESTED_CLASSES)
+# if defined (TAO_EXPORT_NESTED_MACRO)
+# undef TAO_EXPORT_NESTED_MACRO
+# endif /* defined (TAO_EXPORT_NESTED_MACRO) */
+# define TAO_EXPORT_NESTED_MACRO TAO_Export
+#endif /* TAO_EXPORT_NESTED_CLASSES */
+
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
@@ -46,6 +42,7 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
+
#if !defined (_CORBA_CURRENT___PTR_CH_)
#define _CORBA_CURRENT___PTR_CH_
@@ -58,21 +55,21 @@ typedef CORBA_Current *CORBA_Current_ptr;
#if !defined (_CORBA_CURRENT___VAR_CH_)
#define _CORBA_CURRENT___VAR_CH_
-class CORBA_Current_var : public TAO_Base_var
+class TAO_Export CORBA_Current_var : public TAO_Base_var
{
public:
CORBA_Current_var (void); // default constructor
- CORBA_Current_var (CORBA_Current_ptr);
+ CORBA_Current_var (CORBA_Current_ptr p) : ptr_ (p) {}
CORBA_Current_var (const CORBA_Current_var &); // copy constructor
~CORBA_Current_var (void); // destructor
-
+
CORBA_Current_var &operator= (CORBA_Current_ptr);
CORBA_Current_var &operator= (const CORBA_Current_var &);
CORBA_Current_ptr operator-> (void) const;
-
+
operator const CORBA_Current_ptr &() const;
operator CORBA_Current_ptr &();
- // in, inout, out, _retn
+ // in, inout, out, _retn
CORBA_Current_ptr in (void) const;
CORBA_Current_ptr &inout (void);
CORBA_Current_ptr &out (void);
@@ -93,19 +90,19 @@ private:
#if !defined (_CORBA_CURRENT___OUT_CH_)
#define _CORBA_CURRENT___OUT_CH_
-class CORBA_Current_out
+class TAO_Export CORBA_Current_out
{
public:
CORBA_Current_out (CORBA_Current_ptr &);
CORBA_Current_out (CORBA_Current_var &);
- CORBA_Current_out (CORBA_Current_out &);
- CORBA_Current_out &operator= (CORBA_Current_out &);
+ CORBA_Current_out (const CORBA_Current_out &);
+ CORBA_Current_out &operator= (const CORBA_Current_out &);
CORBA_Current_out &operator= (const CORBA_Current_var &);
CORBA_Current_out &operator= (CORBA_Current_ptr);
operator CORBA_Current_ptr &();
CORBA_Current_ptr &ptr (void);
CORBA_Current_ptr operator-> (void);
-
+
private:
CORBA_Current_ptr &ptr_;
};
@@ -117,38 +114,39 @@ private:
#if !defined (_CORBA_CURRENT_CH_)
#define _CORBA_CURRENT_CH_
-class CORBA_Current : public virtual CORBA_Object
+class TAO_Export CORBA_Current : public virtual CORBA_Object
{
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef CORBA_Current_ptr _ptr_type;
- typedef CORBA_Current_var _var_type;
- #endif /* __GNUC__ */
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef CORBA_Current_ptr _ptr_type;
+ typedef CORBA_Current_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
// the static operations
static CORBA_Current_ptr _duplicate (CORBA_Current_ptr obj);
- static CORBA_Current_ptr _narrow (CORBA::Object_ptr obj,
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ());
- static CORBA_Current_ptr _unchecked_narrow (CORBA::Object_ptr obj,
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ());
- static CORBA_Current_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id,
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ static CORBA_Current_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static CORBA_Current_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static CORBA_Current_ptr _nil (void)
+ {
+ return (CORBA_Current_ptr)0;
+ }
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
virtual const char* _interface_repository_id (void) const;
- protected:
- CORBA_Current (void); // default constructor
- CORBA_Current (TAO_Stub *objref,
- TAO_ServantBase *_tao_servant = 0,
- CORBA::Boolean _tao_collocated = 0
- );
+
+protected:
+ CORBA_Current (void);
virtual ~CORBA_Current (void);
- private:
+private:
CORBA_Current (const CORBA_Current &);
void operator= (const CORBA_Current &);
};
@@ -156,22 +154,13 @@ class CORBA_Current : public virtual CORBA_Object
#endif /* end #if !defined */
-extern CORBA_Current_ptr (*_TAO_collocation_CORBA_Current_Stub_Factory_function_pointer) (
- CORBA::Object_ptr obj
- );
-// Any operators for interface CORBA_Current
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA_Current_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA_Current *&);
#ifndef __ACE_INLINE__
- CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA_Current_ptr );
- CORBA::Boolean operator>> (TAO_InputCDR &, CORBA_Current_ptr &);
#endif /* __ACE_INLINE__ */
+
#if defined (__ACE_INLINE__)
#include "tao/CurrentC.i"
#endif /* defined INLINE */
@@ -181,4 +170,4 @@ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
#endif /* _MSC_VER */
#include "ace/post.h"
-#endif /* TAO_IDL_CURRENTC_H */
+#endif /* ifndef */
diff --git a/TAO/tao/CurrentC.i b/TAO/tao/CurrentC.i
index dfea54f47f3..6c7385c65a2 100644
--- a/TAO/tao/CurrentC.i
+++ b/TAO/tao/CurrentC.i
@@ -1,25 +1,12 @@
-/* -*- C++ -*- */
-// $Id$
+/* -*- C++ -*- $Id$ */
+
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
//
-// Information on TAO is available at
+// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-ACE_INLINE
-CORBA_Current::CORBA_Current (void) // default constructor
-{}
-
-ACE_INLINE
-CORBA_Current::CORBA_Current (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor
- : CORBA_Object (objref, _tao_servant, _tao_collocated)
-{}
-
-ACE_INLINE
-CORBA_Current::~CORBA_Current (void) // destructor
-{}
-
#if !defined (_CORBA_CURRENT___VAR_CI_)
#define _CORBA_CURRENT___VAR_CI_
@@ -33,19 +20,14 @@ CORBA_Current_var::CORBA_Current_var (void) // default constructor
: ptr_ (CORBA_Current::_nil ())
{}
-ACE_INLINE
-CORBA_Current_var::CORBA_Current_var (CORBA_Current_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE CORBA_Current_ptr
+ACE_INLINE ::CORBA_Current_ptr
CORBA_Current_var::ptr (void) const
{
return this->ptr_;
}
ACE_INLINE
-CORBA_Current_var::CORBA_Current_var (const CORBA_Current_var &p) // copy constructor
+CORBA_Current_var::CORBA_Current_var (const ::CORBA_Current_var &p) // copy constructor
: TAO_Base_var (),
ptr_ (CORBA_Current::_duplicate (p.ptr ()))
{}
@@ -65,60 +47,60 @@ CORBA_Current_var::operator= (CORBA_Current_ptr p)
}
ACE_INLINE CORBA_Current_var &
-CORBA_Current_var::operator= (const CORBA_Current_var &p)
+CORBA_Current_var::operator= (const ::CORBA_Current_var &p)
{
if (this != &p)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_Current::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_Current::_duplicate (p.ptr ());
}
return *this;
}
-ACE_INLINE
-CORBA_Current_var::operator const CORBA_Current_ptr &() const // cast
+ACE_INLINE
+CORBA_Current_var::operator const ::CORBA_Current_ptr &() const // cast
{
return this->ptr_;
}
-ACE_INLINE
-CORBA_Current_var::operator CORBA_Current_ptr &() // cast
+ACE_INLINE
+CORBA_Current_var::operator ::CORBA_Current_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_Current_ptr
+ACE_INLINE ::CORBA_Current_ptr
CORBA_Current_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_Current_ptr
+ACE_INLINE ::CORBA_Current_ptr
CORBA_Current_var::in (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_Current_ptr &
+ACE_INLINE ::CORBA_Current_ptr &
CORBA_Current_var::inout (void)
{
return this->ptr_;
}
-ACE_INLINE CORBA_Current_ptr &
+ACE_INLINE ::CORBA_Current_ptr &
CORBA_Current_var::out (void)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_Current::_nil ();
+ this->ptr_ = ::CORBA_Current::_nil ();
return this->ptr_;
}
-ACE_INLINE CORBA_Current_ptr
+ACE_INLINE ::CORBA_Current_ptr
CORBA_Current_var::_retn (void)
{
// yield ownership of managed obj reference
- CORBA_Current_ptr val = this->ptr_;
- this->ptr_ = CORBA_Current::_nil ();
+ ::CORBA_Current_ptr val = this->ptr_;
+ this->ptr_ = ::CORBA_Current::_nil ();
return val;
}
@@ -137,7 +119,7 @@ ACE_INLINE
CORBA_Current_out::CORBA_Current_out (CORBA_Current_ptr &p)
: ptr_ (p)
{
- this->ptr_ = CORBA_Current::_nil ();
+ this->ptr_ = ::CORBA_Current::_nil ();
}
ACE_INLINE
@@ -145,25 +127,25 @@ CORBA_Current_out::CORBA_Current_out (CORBA_Current_var &p) // constructor from
: ptr_ (p.out ())
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_Current::_nil ();
+ this->ptr_ = ::CORBA_Current::_nil ();
}
ACE_INLINE
-CORBA_Current_out::CORBA_Current_out (CORBA_Current_out &p) // copy constructor
- : ptr_ (p.ptr_)
+CORBA_Current_out::CORBA_Current_out (const ::CORBA_Current_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_Current_out &, p).ptr_)
{}
-ACE_INLINE CORBA_Current_out &
-CORBA_Current_out::operator= (CORBA_Current_out &p)
+ACE_INLINE ::CORBA_Current_out &
+CORBA_Current_out::operator= (const ::CORBA_Current_out &p)
{
- this->ptr_ = p.ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_Current_out&, p).ptr_;
return *this;
}
ACE_INLINE CORBA_Current_out &
-CORBA_Current_out::operator= (const CORBA_Current_var &p)
+CORBA_Current_out::operator= (const ::CORBA_Current_var &p)
{
- this->ptr_ = CORBA_Current::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_Current::_duplicate (p.ptr ());
return *this;
}
@@ -174,72 +156,24 @@ CORBA_Current_out::operator= (CORBA_Current_ptr p)
return *this;
}
-ACE_INLINE
-CORBA_Current_out::operator CORBA_Current_ptr &() // cast
+ACE_INLINE
+CORBA_Current_out::operator ::CORBA_Current_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_Current_ptr &
+ACE_INLINE ::CORBA_Current_ptr &
CORBA_Current_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_Current_ptr
+ACE_INLINE ::CORBA_Current_ptr
CORBA_Current_out::operator-> (void)
{
return this->ptr_;
}
-#endif /* end #if !defined */
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const CORBA_Current_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- CORBA_Current_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const CORBA_Current_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- CORBA_Current_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- CORBA_Current::_unchecked_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
+#endif /* end #if !defined */
diff --git a/TAO/tao/CurrentS.cpp b/TAO/tao/CurrentS.cpp
deleted file mode 100644
index f661cc5a03e..00000000000
--- a/TAO/tao/CurrentS.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
-//
-// Information on TAO is available at
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-#include "tao/CurrentC.h"
-#include "tao/Operation_Table.h"
-#include "tao/POA_CORBA.h"
-#include "tao/Server_Request.h"
-#include "tao/Environment.h"
-#include "tao/Typecode.h"
-
-ACE_RCSID(tao, CurrentS, "$Id$")
-
-POA_CORBA::Current::Current (void)
-{
-}
-
-// skeleton destructor
-POA_CORBA::Current::~Current (void)
-{
-}
-
-CORBA::Boolean POA_CORBA::Current::_is_a (
- const char* value,
- CORBA::Environment &
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
- return 1;
- else
- return 0;
-}
-
-void* POA_CORBA::Current::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Current:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Current_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_CORBA::Current::_interface_repository_id (void) const
-{
- return "IDL:omg.org/CORBA/Current:1.0";
-}
-
-POA_CORBA::_tao_collocated_Current::_tao_collocated_Current (
- POA_CORBA::Current_ptr servant,
- TAO_Stub *stub
- )
- : CORBA_Current (stub, servant, 1),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_CORBA::Current_ptr POA_CORBA::_tao_collocated_Current::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_CORBA::_tao_collocated_Current::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-
-CORBA::Current*
-POA_CORBA::Current::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
- CORBA::Current *retval = CORBA_Current::_nil ();
- ACE_NEW_RETURN (retval,
- POA_CORBA::_tao_collocated_Current (this, stub),
- CORBA_Current::_nil ());
- return retval;
-}
diff --git a/TAO/tao/DomainS.cpp b/TAO/tao/DomainS.cpp
index 3ab986271df..b8699c63f0b 100644
--- a/TAO/tao/DomainS.cpp
+++ b/TAO/tao/DomainS.cpp
@@ -488,7 +488,7 @@ POA_CORBA::_tao_collocated_ConstructionPolicy::_tao_collocated_ConstructionPolic
TAO_Stub *stub
)
: ACE_CORBA_1 (ConstructionPolicy) (),
- ACE_NESTED_CLASS (POA_CORBA,_tao_collocated_Policy) (servant, stub),
+ ACE_NESTED_CLASS (POA_CORBA,_tao_thru_poa_collocated_CORBA_Policy) (stub),
CORBA_Object (stub, servant, 1),
servant_ (servant)
{
diff --git a/TAO/tao/DynAnyS.cpp b/TAO/tao/DynAnyS.cpp
index eb5d33e7e5a..f234c04b815 100644
--- a/TAO/tao/DynAnyS.cpp
+++ b/TAO/tao/DynAnyS.cpp
@@ -28,7 +28,7 @@
#include "tao/POA_CORBA.h"
#include "tao/Servant_Base.h"
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#include "tao/Typecode.h"
ACE_RCSID(tao, DynAnyS, "$Id$")
diff --git a/TAO/tao/Exception.cpp b/TAO/tao/Exception.cpp
index 4a0bd21f03e..c43d060ee3a 100644
--- a/TAO/tao/Exception.cpp
+++ b/TAO/tao/Exception.cpp
@@ -445,7 +445,7 @@ CORBA_SystemException::_info (void) const
location = "Failure when trying to acquire a guard/monitor";
break;
case TAO_POA_BEING_DESTROYED:
- location = "POA is current being destroyed";
+ location = "POA has been destroyed or is currently being destroyed";
break;
default:
location = "unknown location";
diff --git a/TAO/tao/Forwarding_Servant.cpp b/TAO/tao/Forwarding_Servant.cpp
index 5b3e828983a..494b8878717 100644
--- a/TAO/tao/Forwarding_Servant.cpp
+++ b/TAO/tao/Forwarding_Servant.cpp
@@ -5,7 +5,7 @@
#if (TAO_HAS_MINIMUM_CORBA == 0)
#include "tao/Object.h"
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#include "tao/Any.h"
#include "tao/Server_Request.h"
diff --git a/TAO/tao/GIOP_Server_Request.cpp b/TAO/tao/GIOP_Server_Request.cpp
index 2014cbf5e1d..d29442b24b3 100644
--- a/TAO/tao/GIOP_Server_Request.cpp
+++ b/TAO/tao/GIOP_Server_Request.cpp
@@ -7,7 +7,7 @@
#include "tao/GIOP_Message_Acceptors.h"
#include "tao/CDR.h"
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#include "tao/Environment.h"
#include "tao/NVList.h"
#include "tao/Principal.h"
diff --git a/TAO/tao/ImplRepoS.h b/TAO/tao/ImplRepoS.h
index 5a03aa12162..3cd719559b2 100644
--- a/TAO/tao/ImplRepoS.h
+++ b/TAO/tao/ImplRepoS.h
@@ -12,7 +12,7 @@
#include "ace/pre.h"
#include "ImplRepoC.h"
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#include "tao/Servant_Base.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
diff --git a/TAO/tao/Key_Adapters.h b/TAO/tao/Key_Adapters.h
index 5492204259a..564fd6ee672 100644
--- a/TAO/tao/Key_Adapters.h
+++ b/TAO/tao/Key_Adapters.h
@@ -20,7 +20,7 @@
#include "tao/corbafwd.h"
#include "ace/Map.h"
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tao/LocalObject.cpp b/TAO/tao/LocalObject.cpp
index be8c784bc3e..0e836e00e3e 100644
--- a/TAO/tao/LocalObject.cpp
+++ b/TAO/tao/LocalObject.cpp
@@ -199,4 +199,16 @@ CORBA::LocalObject::_validate_connection (CORBA::PolicyList_out,
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
}
+void
+TAO_Local_RefCounted_Object::_add_ref (void)
+{
+ this->_incr_refcnt ();
+}
+
+void
+TAO_Local_RefCounted_Object::_remove_ref (void)
+{
+ this->_decr_refcnt ();
+}
+
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
diff --git a/TAO/tao/LocalObject.h b/TAO/tao/LocalObject.h
index 8937d12a9cd..d4b09eae114 100644
--- a/TAO/tao/LocalObject.h
+++ b/TAO/tao/LocalObject.h
@@ -196,7 +196,7 @@ public:
// Useful for template programming.
protected:
- LocalObject ();
+ LocalObject (void);
// Default constructor. Make it protected to prevent instantiation
// of this class.
@@ -205,8 +205,8 @@ private:
// = Unimplemented methods
// constructor
- LocalObject (const CORBA_Object &);
- LocalObject &operator = (const CORBA_Object &);
+ LocalObject (const LocalObject &);
+ LocalObject &operator = (const LocalObject &);
};
class TAO_Export CORBA::LocalObject_var
@@ -251,6 +251,33 @@ private:
CORBA::LocalObject_ptr &ptr_;
};
+class TAO_Export TAO_Local_RefCounted_Object : public virtual CORBA::LocalObject
+{
+ //
+ // This class adds default reference counting to local objects.
+ //
+public:
+
+ virtual void _add_ref (void);
+ // Increment reference count.
+
+ virtual void _remove_ref (void);
+ // Decrement reference count.
+
+protected:
+ TAO_Local_RefCounted_Object (void);
+ // Default constructor. Make it protected to prevent instantiation
+ // of this class.
+
+private:
+
+ // = Unimplemented methods
+ // constructor
+
+ TAO_Local_RefCounted_Object (const TAO_Local_RefCounted_Object &);
+ TAO_Local_RefCounted_Object &operator = (const TAO_Local_RefCounted_Object &);
+};
+
#if defined (__ACE_INLINE__)
# include "tao/LocalObject.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/LocalObject.i b/TAO/tao/LocalObject.i
index 8e58908a879..b21785dcf70 100644
--- a/TAO/tao/LocalObject.i
+++ b/TAO/tao/LocalObject.i
@@ -45,11 +45,17 @@ CORBA::LocalObject::_unchecked_narrow (CORBA::Object_ptr obj,
}
ACE_INLINE
-CORBA::LocalObject::LocalObject ()
+CORBA::LocalObject::LocalObject (void)
: ACE_NESTED_CLASS (CORBA, Object (0))
{
}
+ACE_INLINE
+TAO_Local_RefCounted_Object::TAO_Local_RefCounted_Object (void)
+ // : CORBA::LocalObject ()
+{
+}
+
// *************************************************************
// Inline operations for class CORBA::LocalObject_var
// *************************************************************
diff --git a/TAO/tao/Makefile b/TAO/tao/Makefile
index 71b9224a2b7..87f235d1f96 100644
--- a/TAO/tao/Makefile
+++ b/TAO/tao/Makefile
@@ -67,8 +67,7 @@ POA_FILES = \
Object_Adapter \
Key_Adapters \
POA \
- POAC \
- POAS \
+ PortableServerC \
POAManager \
Active_Object_Map \
Servant_Base
@@ -136,7 +135,6 @@ IDL_COMPILER_FILES = \
ORB_CORE_FILES = \
Any \
CurrentC \
- CurrentS \
Exception \
WrongTransactionC \
Environment \
diff --git a/TAO/tao/MessagingS.h b/TAO/tao/MessagingS.h
index cafd22c1bca..919d32da5f0 100644
--- a/TAO/tao/MessagingS.h
+++ b/TAO/tao/MessagingS.h
@@ -18,7 +18,7 @@
#include "TimeBaseS.h"
#include "MessagingC.h"
-#include "POAC.h"
+#include "PortableServerC.h"
#include "Servant_Base.h"
diff --git a/TAO/tao/Messaging_Policy_i.cpp b/TAO/tao/Messaging_Policy_i.cpp
index c821cdab53f..a7abd7ed3ee 100644
--- a/TAO/tao/Messaging_Policy_i.cpp
+++ b/TAO/tao/Messaging_Policy_i.cpp
@@ -18,25 +18,11 @@ TAO_RelativeRoundtripTimeoutPolicy::TAO_RelativeRoundtripTimeoutPolicy (const Ti
TAO_RelativeRoundtripTimeoutPolicy::TAO_RelativeRoundtripTimeoutPolicy (const TAO_RelativeRoundtripTimeoutPolicy &rhs)
: Messaging::RelativeRoundtripTimeoutPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
relative_expiry_ (rhs.relative_expiry_)
{
}
-void
-TAO_RelativeRoundtripTimeoutPolicy::_add_ref (void)
-{
- this->_incr_refcnt ();
- // This is a TAO specific implementation.
-}
-
-void
-TAO_RelativeRoundtripTimeoutPolicy::_remove_ref (void)
-{
- this->_decr_refcnt ();
- // This is a TAO specific implementation.
-}
-
TimeBase::TimeT
TAO_RelativeRoundtripTimeoutPolicy::relative_expiry (CORBA::Environment &)
ACE_THROW_SPEC (())
@@ -136,25 +122,11 @@ TAO_Sync_Scope_Policy::TAO_Sync_Scope_Policy (Messaging::SyncScope synchronizati
TAO_Sync_Scope_Policy::TAO_Sync_Scope_Policy (const TAO_Sync_Scope_Policy &rhs)
: Messaging::SyncScopePolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
synchronization_ (rhs.synchronization_)
{
}
-void
-TAO_Sync_Scope_Policy::_add_ref (void)
-{
- this->_incr_refcnt ();
- // This is a TAO specific implementation.
-}
-
-void
-TAO_Sync_Scope_Policy::_remove_ref (void)
-{
- this->_decr_refcnt ();
- // This is a TAO specific implementation.
-}
-
CORBA::PolicyType
TAO_Sync_Scope_Policy::policy_type (CORBA_Environment &)
{
diff --git a/TAO/tao/Messaging_Policy_i.h b/TAO/tao/Messaging_Policy_i.h
index dacccadf145..d50c9bf834a 100644
--- a/TAO/tao/Messaging_Policy_i.h
+++ b/TAO/tao/Messaging_Policy_i.h
@@ -36,7 +36,7 @@
class TAO_Export TAO_RelativeRoundtripTimeoutPolicy
: public Messaging::RelativeRoundtripTimeoutPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// Messaging::RelativeRoundtripTimeoutPolicy implementation
@@ -52,12 +52,6 @@ public:
TAO_RelativeRoundtripTimeoutPolicy (const TAO_RelativeRoundtripTimeoutPolicy &rhs);
// Copy constructor.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
static CORBA::Policy_ptr create (const CORBA::Any& val,
CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ());
// Helper method for the implementation of
@@ -92,8 +86,7 @@ private:
class TAO_Export TAO_Sync_Scope_Policy
: public Messaging::SyncScopePolicy,
- public CORBA::LocalObject
-
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// Messaging::SyncScopePolicy implementation.
@@ -109,12 +102,6 @@ public:
TAO_Sync_Scope_Policy (const TAO_Sync_Scope_Policy &rhs);
// Copy constructor.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
static CORBA::Policy_ptr create (const CORBA::Any& val,
CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ());
// Helper method for the implementation of
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index 54a2373d3ea..322ee07eaf8 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -425,14 +425,14 @@ CORBA_ORB::resolve_root_poa (CORBA::Environment &ACE_TRY_ENV,
}
CORBA_Object_ptr
-CORBA_ORB::resolve_poa_current (CORBA::Environment &ACE_TRY_ENV)
+CORBA_ORB::resolve_poa_current (CORBA::Environment &)
{
// Return the pointer to the POA Current.
- return this->orb_core_->poa_current ()._this (ACE_TRY_ENV);
+ return CORBA_Object::_duplicate (&this->orb_core_->poa_current ());
}
CORBA_Object_ptr
-CORBA_ORB::resolve_policy_manager (CORBA::Environment &ACE_TRY_ENV)
+CORBA_ORB::resolve_policy_manager (CORBA::Environment &)
{
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -442,11 +442,10 @@ CORBA_ORB::resolve_policy_manager (CORBA::Environment &ACE_TRY_ENV)
if (policy_manager == 0)
return CORBA_Object::_nil ();
- return policy_manager->_this (ACE_TRY_ENV);
+ return CORBA_Object::_duplicate (policy_manager);
#else
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return CORBA_Object::_nil ();
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
@@ -508,7 +507,7 @@ CORBA_ORB::resolve_policy_current (CORBA::Environment &ACE_TRY_ENV)
#if (TAO_HAS_CORBA_MESSAGING == 1)
TAO_Policy_Current &policy_current = this->orb_core_->policy_current ();
- return policy_current._this (ACE_TRY_ENV);
+ return CORBA_Object::_duplicate (&policy_current);
#else
diff --git a/TAO/tao/ORB_Core.cpp b/TAO/tao/ORB_Core.cpp
index 852d2b56fa8..ee0b11e5e0f 100644
--- a/TAO/tao/ORB_Core.cpp
+++ b/TAO/tao/ORB_Core.cpp
@@ -63,7 +63,6 @@ TAO_ORB_Core::TAO_ORB_Core (const char *orbid)
typecode_factory_ (CORBA::Object::_nil ()),
orb_ (),
root_poa_ (0),
- root_poa_reference_ (),
orb_params_ (),
orbid_ (ACE_OS::strdup (orbid ? orbid : "")),
resource_factory_ (0),
@@ -224,6 +223,21 @@ TAO_ORB_Core::~TAO_ORB_Core (void)
delete this->poa_current_;
#endif /* ! __Lynx__ || ! __powerpc__ */
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::Boolean wait_for_completion = 1;
+
+ this->destroy_root_poa (wait_for_completion,
+ ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ // Ignore exceptions
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "TAO_ORB_Core::~TAO_ORB_Core");
+ }
+ ACE_ENDTRY;
+
delete this->object_adapter_;
}
@@ -1468,16 +1482,10 @@ TAO_ORB_Core::root_poa_reference (CORBA::Environment &ACE_TRY_ENV,
TAO_POA_Manager *poa_manager,
const TAO_POA_Policies *policies)
{
- if (CORBA::is_nil (this->root_poa_reference_.in ()))
- {
- this->create_and_set_root_poa (adapter_name,
- poa_manager,
- policies,
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
- }
-
- return PortableServer::POA::_duplicate (this->root_poa_reference_.in ());
+ return PortableServer::POA::_duplicate (this->root_poa (ACE_TRY_ENV,
+ adapter_name,
+ poa_manager,
+ policies));
}
void
@@ -1532,9 +1540,10 @@ TAO_ORB_Core::create_and_set_root_poa (const char *adapter_name,
CORBA::NO_MEMORY ());
ACE_CHECK;
- this->root_poa_reference_ =
- this->root_poa_->_this (ACE_TRY_ENV);
- ACE_CHECK;
+ // ORB Core will keep a reference to the Root POA so that on
+ // its destruction, it can check whether the Root POA has
+ // been destroyed yet or not.
+ this->root_poa_->_add_ref ();
// Release the auto_ptr since we got here without error.
poa_manager = safe_poa_manager.release ();
@@ -1773,6 +1782,34 @@ TAO_ORB_Core::run (ACE_Time_Value *tv,
}
void
+TAO_ORB_Core::destroy_root_poa (CORBA::Boolean wait_for_completion,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ // Shutting down the ORB causes all object adapters to be destroyed,
+ // since they cannot exist in the absence of an ORB. Shut down is
+ // complete when all ORB processing (including request processing
+ // and object deactivation or other operations associated with
+ // object adapters) has completed and the object adapters have been
+ // destroyed. In the case of the POA, this means that all object
+ // etherealizations have finished and root POA has been destroyed
+ // (implying that all descendent POAs have also been destroyed).
+ CORBA::Boolean etherealize_objects = 1;
+ if (this->root_poa_)
+ {
+ if (!this->root_poa_->cleanup_in_progress ())
+ {
+ this->root_poa_->destroy (etherealize_objects,
+ wait_for_completion,
+ ACE_TRY_ENV);
+ ACE_CHECK;
+ }
+
+ CORBA::release (this->root_poa_);
+ this->root_poa_ = 0;
+ }
+}
+
+void
TAO_ORB_Core::shutdown (CORBA::Boolean wait_for_completion,
CORBA::Environment &ACE_TRY_ENV)
{
@@ -1781,13 +1818,8 @@ TAO_ORB_Core::shutdown (CORBA::Boolean wait_for_completion,
ACE_TRY_ENV);
ACE_CHECK;
- // If the ORB::shutdown operation is called, it makes a call on
- // deactivate with a TRUE etherealize_objects parameter for each POA
- // manager known in the process; the wait_for_completion parameter
- // to deactivate will be the same as the similarly named parameter
- // of ORB::shutdown.
- this->object_adapter ()->deactivate (wait_for_completion,
- ACE_TRY_ENV);
+ this->destroy_root_poa (wait_for_completion,
+ ACE_TRY_ENV);
ACE_CHECK;
// Set the shutdown flag
diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h
index 11d458fb8c8..920bb93c685 100644
--- a/TAO/tao/ORB_Core.h
+++ b/TAO/tao/ORB_Core.h
@@ -28,7 +28,7 @@
#include "tao/Policy_Manager.h"
#include "tao/Resource_Factory.h"
#include "tao/params.h"
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#include "ace/Map_Manager.h"
#include "ace/Singleton.h"
@@ -191,6 +191,7 @@ public:
const char *adapter_name = TAO_DEFAULT_ROOTPOA_NAME,
TAO_POA_Manager *poa_manager = 0,
const TAO_POA_Policies *policies = 0);
+
PortableServer::POA_ptr root_poa_reference (
CORBA::Environment &ACE_TRY_ENV = TAO_default_environment (),
const char *adapter_name = TAO_DEFAULT_ROOTPOA_NAME,
@@ -496,6 +497,10 @@ protected:
CORBA::Environment &ACE_TRY_ENV);
// Initialize the root POA.
+ void destroy_root_poa (CORBA::Boolean wait_for_completion,
+ CORBA::Environment &ACE_TRY_ENV);
+ // Destroy the RootPOA (if one exists).
+
TAO_Object_Adapter *object_adapter_i (void);
// Get <Object Adapter>, assume the lock is held...
@@ -552,9 +557,6 @@ protected:
// returned by calls to <CORBA::ORB::resolve_initial_references
// ("RootPOA")>.
- PortableServer::POA_var root_poa_reference_;
- // Cached POA reference
-
TAO_ORB_Parameters orb_params_;
// Parameters used by the ORB.
diff --git a/TAO/tao/Object_Adapter.cpp b/TAO/tao/Object_Adapter.cpp
index a0c56b0b91b..bb61f690e10 100644
--- a/TAO/tao/Object_Adapter.cpp
+++ b/TAO/tao/Object_Adapter.cpp
@@ -954,15 +954,12 @@ TAO_Object_Adapter::Servant_Upcall::servant_locator_cleanup (void)
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- PortableServer::POA_var poa = this->poa_->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
this->poa_->servant_locator_->postinvoke (this->current_context_.object_id (),
- poa.in (),
+ this->poa_,
this->operation_,
this->cookie_,
- this->servant_,
- ACE_TRY_ENV);
+ this->servant_
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -1069,7 +1066,18 @@ TAO_Object_Adapter::Servant_Upcall::poa_cleanup (void)
}
if (this->poa_->waiting_destruction_)
{
- delete this->poa_;
+ ACE_TRY_NEW_ENV
+ {
+ this->poa_->complete_destruction_i (ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ // Ignore exceptions
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "TAO_POA::~complete_destruction_i");
+ }
+ ACE_ENDTRY;
+
this->poa_ = 0;
}
}
@@ -1221,12 +1229,9 @@ TAO_POA_Current_Impl::teardown (void)
}
PortableServer::POA_ptr
-TAO_POA_Current_Impl::get_POA (CORBA::Environment &ACE_TRY_ENV)
+TAO_POA_Current_Impl::get_POA (CORBA::Environment &)
{
- PortableServer::POA_var result = this->poa_->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- return result._retn ();
+ return PortableServer::POA::_duplicate (this->poa_);
}
PortableServer::ObjectId *
diff --git a/TAO/tao/Object_Adapter.h b/TAO/tao/Object_Adapter.h
index c74d53c0f9f..9d4f8387128 100644
--- a/TAO/tao/Object_Adapter.h
+++ b/TAO/tao/Object_Adapter.h
@@ -23,24 +23,31 @@
#include "tao/poa_macros.h"
// Stubs
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
// Servant
#include "tao/Servant_Base.h"
-// Skeletons
-#include "tao/POAS.h"
-
// Active Object Table
#include "tao/Active_Object_Map.h"
// RTCORBA
#include "tao/RTCORBAC.h"
+// Local Object
+#include "tao/LocalObject.h"
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#if defined(_MSC_VER)
+#if (_MSC_VER >= 1200)
+#pragma warning(push)
+#endif /* _MSC_VER >= 1200 */
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
////////////////////////////////////////////////////////////////////////////////
// Forward declaration
@@ -51,7 +58,9 @@ class TAO_POA_Current_Impl;
class TAO_TSS_Resources;
class TAO_Transport;
-class TAO_Export TAO_POA_Current : public POA_PortableServer::Current
+class TAO_Export TAO_POA_Current :
+ public PortableServer::Current,
+ public TAO_Local_RefCounted_Object
{
public:
TAO_POA_Current (void);
@@ -184,7 +193,7 @@ protected:
void operator= (const TAO_POA_Current_Impl &);
};
-class TAO_Object_Adapter
+class TAO_Export TAO_Object_Adapter
{
// = TITLE
// Defines the Object Adapter abstraction.
@@ -303,7 +312,7 @@ protected:
public:
- class Hint_Strategy
+ class TAO_Export Hint_Strategy
{
// = TITLE
// Base class for POA active hint strategy.
@@ -333,7 +342,7 @@ public:
TAO_Object_Adapter *object_adapter_;
};
- class Active_Hint_Strategy : public Hint_Strategy
+ class TAO_Export Active_Hint_Strategy : public Hint_Strategy
{
// = TITLE
// This class uses active demux hint for POA active hint
@@ -369,7 +378,7 @@ public:
persistent_poa_system_map persistent_poa_system_map_;
};
- class No_Hint_Strategy : public Hint_Strategy
+ class TAO_Export No_Hint_Strategy : public Hint_Strategy
{
// = TITLE
// This class doesn't use any hints for POA active hint
@@ -481,7 +490,7 @@ protected:
public:
- class poa_name_iterator
+ class TAO_Export poa_name_iterator
{
// = TITLE
// Iterator for a folded poa name.
@@ -510,7 +519,7 @@ public:
CORBA::ULong last_separator_;
};
- class iteratable_poa_name
+ class TAO_Export iteratable_poa_name
{
// = TITLE
// This class allows iteration over a folded poa name.
@@ -528,7 +537,7 @@ public:
const poa_name &folded_name_;
};
- class Non_Servant_Upcall
+ class TAO_Export Non_Servant_Upcall
{
// = TITLE
// This class helps us with a recursive thread lock without
@@ -669,7 +678,7 @@ public:
#if (TAO_HAS_RT_CORBA == 1)
- class Priority_Model_Processing
+ class TAO_Export Priority_Model_Processing
{
// = TITLE
// This class encapsulates processing necessary for
diff --git a/TAO/tao/POA.cpp b/TAO/tao/POA.cpp
index a94daaf83be..35513fe8caf 100644
--- a/TAO/tao/POA.cpp
+++ b/TAO/tao/POA.cpp
@@ -204,19 +204,50 @@ TAO_POA::TAO_POA (const TAO_POA::String &name,
TAO_POA::~TAO_POA (void)
{
+}
+
+void
+TAO_POA::complete_destruction_i (CORBA::Environment &ACE_TRY_ENV)
+{
// Delete the active object map.
delete this->active_object_map_;
- // Note: Errors are ignored here since there is nothing we can do
- // about them.
-
// Remove POA from the POAManager.
- this->poa_manager_.remove_poa (this);
+ int result = this->poa_manager_.remove_poa (this);
+ if (result != 0)
+ ACE_THROW (CORBA::OBJ_ADAPTER ());
// Remove POA from the Object Adapter.
- this->object_adapter ().unbind_poa (this,
- this->folded_name_,
- this->system_name_.in ());
+ result = this->object_adapter ().unbind_poa (this,
+ this->folded_name_,
+ this->system_name_.in ());
+ if (result != 0)
+ ACE_THROW (CORBA::OBJ_ADAPTER ());
+
+ // Forced cleanup. The new memory management scheme is evil and can
+ // lead to reference deadlock, i.e., POA holds object A, but POA
+ // cannot die because object A hold POA.
+ {
+ // A recursive thread lock without using a recursive thread lock.
+ // Non_Servant_Upcall has a magic constructor and destructor. We
+ // unlock the Object_Adapter lock for the duration of the servant
+ // activator upcalls; reacquiring once the upcalls complete. Even
+ // though we are releasing the lock, other threads will not be
+ // able to make progress since
+ // <Object_Adapter::non_servant_upcall_in_progress_> has been set.
+ TAO_Object_Adapter::Non_Servant_Upcall non_servant_upcall (this->object_adapter ());
+ ACE_UNUSED_ARG (non_servant_upcall);
+
+ this->adapter_activator_ = PortableServer::AdapterActivator::_nil ();
+
+ this->servant_activator_ = PortableServer::ServantActivator::_nil ();
+
+ this->servant_locator_ = PortableServer::ServantLocator::_nil ();
+
+ this->default_servant_ = 0;
+ }
+
+ CORBA::release (this);
}
PortableServer::POA_ptr
@@ -244,51 +275,27 @@ TAO_POA::create_POA_i (const char *adapter_name,
// POAManager object is associated with the new POA. The POAManager
// object can be obtained using the attribute name the_POAManager.
- auto_ptr<TAO_POA_Manager> new_poa_manager_impl;
- TAO_POA_Manager *poa_manager_impl = 0;
+ TAO_POA_Manager *tao_poa_manager = 0;
if (CORBA::is_nil (poa_manager))
{
- ACE_NEW_THROW_EX (poa_manager_impl,
+ ACE_NEW_THROW_EX (tao_poa_manager,
TAO_POA_Manager (this->object_adapter ()),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give ownership to auto pointer.
- auto_ptr<TAO_POA_Manager> auto_new_poa_manager_impl (poa_manager_impl);
- new_poa_manager_impl = auto_new_poa_manager_impl;
}
else
{
- PortableServer::Servant servant = poa_manager->_servant ();
- if (servant == 0)
- {
- ACE_THROW_RETURN (CORBA::OBJ_ADAPTER (),
- PortableServer::POA::_nil ());
- }
-
- void *ptr = servant->_downcast (servant->_interface_repository_id ());
- POA_PortableServer::POAManager *mgr = (POA_PortableServer::POAManager *) ptr;
- poa_manager_impl = ACE_dynamic_cast (TAO_POA_Manager *, mgr);
+ tao_poa_manager = ACE_dynamic_cast (TAO_POA_Manager *,
+ poa_manager);
}
TAO_POA *poa = this->create_POA_i (adapter_name,
- *poa_manager_impl,
+ *tao_poa_manager,
tao_policies,
ACE_TRY_ENV);
ACE_CHECK_RETURN (PortableServer::POA::_nil ());
- // Give ownership of the new poa to the auto pointer.
- auto_ptr<TAO_POA> new_poa (poa);
-
- PortableServer::POA_var result = new_poa->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Finally everything is fine. Make sure to take ownership away
- // from the auto pointers.
- new_poa.release ();
- new_poa_manager_impl.release ();
-
- return result._retn ();
+ return PortableServer::POA::_duplicate (poa);
}
TAO_POA *
@@ -383,22 +390,12 @@ TAO_POA::find_POA (const char *adapter_name,
TAO_Object_Adapter::Non_Servant_Upcall non_servant_upcall (this->object_adapter ());
ACE_UNUSED_ARG (non_servant_upcall);
- TAO_POA *child = this->find_POA_i (adapter_name,
- activate_it,
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give ownership of the new poa to the auto pointer.
- auto_ptr<TAO_POA> new_child (child);
-
- PortableServer::POA_var result = new_child->_this (ACE_TRY_ENV);
+ TAO_POA *poa = this->find_POA_i (adapter_name,
+ activate_it,
+ ACE_TRY_ENV);
ACE_CHECK_RETURN (PortableServer::POA::_nil ());
- // Finally everything is fine. Make sure to take ownership away
- // from the auto pointer.
- new_child.release ();
-
- return result._retn ();
+ return PortableServer::POA::_duplicate (poa);
}
TAO_POA *
@@ -422,11 +419,8 @@ TAO_POA::find_POA_i (const ACE_CString &child_name,
this->check_poa_manager_state (ACE_TRY_ENV);
ACE_CHECK_RETURN (0);
- PortableServer::POA_var self = this->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
CORBA::Boolean success =
- this->adapter_activator_->unknown_adapter (self.in (),
+ this->adapter_activator_->unknown_adapter (this,
child_name.c_str (),
ACE_TRY_ENV);
ACE_CHECK_RETURN (0);
@@ -472,6 +466,9 @@ TAO_POA::destroy_i (CORBA::Boolean etherealize_objects,
CORBA::Boolean wait_for_completion,
CORBA::Environment &ACE_TRY_ENV)
{
+ if (this->cleanup_in_progress_)
+ return;
+
// Is the <wait_for_completion> semantics for this thread correct?
TAO_POA::check_for_valid_wait_for_completions (wait_for_completion,
ACE_TRY_ENV);
@@ -551,8 +548,8 @@ TAO_POA::destroy_i (CORBA::Boolean etherealize_objects,
// If there are no outstanding requests.
if (this->outstanding_requests_ == 0)
{
- // Commit suicide
- delete this;
+ this->complete_destruction_i (ACE_TRY_ENV);
+ ACE_CHECK;
}
else
{
@@ -569,17 +566,40 @@ TAO_POA::delete_child (const TAO_POA::String &child)
// If we are not closing down, we must remove this child from our
// collection.
if (!this->cleanup_in_progress_)
- {
- result = this->children_.unbind (child);
- }
+ result = this->children_.unbind (child);
- // If we are closing down, we are currently iterating over our
- // children and there is not need to remove this child from our
- // collection.
+ // Otherwise, if we are closing down, we are currently iterating
+ // over our children and there is not need to remove this child from
+ // our collection.
return result;
}
+PortableServer::POAList *
+TAO_POA::the_children_i (CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ PortableServer::POAList_var children;
+
+ ACE_NEW_THROW_EX (children,
+ PortableServer::POAList (this->children_.current_size ()),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (0);
+
+ children->length (this->children_.current_size ());
+
+ CORBA::ULong index = 0;
+ for (CHILDREN::iterator iterator = this->children_.begin ();
+ iterator != this->children_.end ();
+ ++iterator, ++index)
+ {
+ TAO_POA *child_poa = (*iterator).int_id_;
+ children[index] = PortableServer::POA::_duplicate (child_poa);
+ }
+
+ return children._retn ();
+}
+
#if (TAO_HAS_MINIMUM_POA == 0)
PortableServer::ServantManager_ptr
@@ -1163,9 +1183,6 @@ TAO_POA::cleanup_servant (TAO_Active_Object_Map::Map_Entry *active_object_map_en
this->policies ().request_processing () == PortableServer::USE_SERVANT_MANAGER &&
!CORBA::is_nil (this->servant_activator_.in ()))
{
- PortableServer::POA_var self = this->_this (ACE_TRY_ENV);
- ACE_CHECK;
-
CORBA::Boolean remaining_activations =
this->active_object_map ().remaining_activations (active_object_map_entry->servant_);
@@ -1187,11 +1204,11 @@ TAO_POA::cleanup_servant (TAO_Active_Object_Map::Map_Entry *active_object_map_en
// is FALSE, the etherealize operation is called for other
// reasons.
this->servant_activator_->etherealize (active_object_map_entry->user_id_,
- self.in (),
+ this,
active_object_map_entry->servant_,
this->cleanup_in_progress_,
- remaining_activations,
- ACE_TRY_ENV);
+ remaining_activations
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
}
else
@@ -2261,9 +2278,6 @@ TAO_POA::locate_servant_i (const char *operation,
0);
}
- PortableServer::POA_var poa = this->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
PortableServer::Servant servant = 0;
if (this->policies ().servant_retention () == PortableServer::RETAIN)
{
@@ -2285,8 +2299,8 @@ TAO_POA::locate_servant_i (const char *operation,
// Invocations of etherealize on the servant manager are serialized.
// Invocations of incarnate and etherealize on the servant manager are mutually exclusive.
servant = this->servant_activator_->incarnate (poa_current_impl.object_id (),
- poa.in (),
- ACE_TRY_ENV);
+ this
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
if (servant == 0)
@@ -2381,10 +2395,10 @@ TAO_POA::locate_servant_i (const char *operation,
//
PortableServer::ServantLocator::Cookie cookie;
PortableServer::Servant servant = this->servant_locator_->preinvoke (poa_current_impl.object_id (),
- poa.in (),
+ this,
operation,
- cookie,
- ACE_TRY_ENV);
+ cookie
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
if (servant == 0)
@@ -2958,27 +2972,13 @@ PortableServer::ThreadPolicy_ptr
TAO_POA::create_thread_policy (PortableServer::ThreadPolicyValue value,
CORBA::Environment &ACE_TRY_ENV)
{
- PortableServer::POA_var rootPOA = this->orb_core_.root_poa_reference (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ThreadPolicy::_nil ());
-
TAO_Thread_Policy *thread_policy = 0;
ACE_NEW_THROW_EX (thread_policy,
- TAO_Thread_Policy (value,
- rootPOA.in ()),
+ TAO_Thread_Policy (value),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::ThreadPolicy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var thread_policy_var (thread_policy);
-
- PortableServer::ThreadPolicy_var result = thread_policy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ThreadPolicy::_nil ());
-
- return result._retn ();
+ return thread_policy;
}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
@@ -2987,81 +2987,39 @@ PortableServer::LifespanPolicy_ptr
TAO_POA::create_lifespan_policy (PortableServer::LifespanPolicyValue value,
CORBA::Environment &ACE_TRY_ENV)
{
- PortableServer::POA_var rootPOA = this->orb_core_.root_poa_reference (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::LifespanPolicy::_nil ());
-
TAO_Lifespan_Policy *lifespan_policy = 0;
ACE_NEW_THROW_EX (lifespan_policy,
- TAO_Lifespan_Policy (value,
- rootPOA.in ()),
+ TAO_Lifespan_Policy (value),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::LifespanPolicy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var lifespan_policy_var (lifespan_policy);
-
- PortableServer::LifespanPolicy_var result = lifespan_policy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::LifespanPolicy::_nil ());
-
- return result._retn ();
+ return lifespan_policy;
}
PortableServer::IdUniquenessPolicy_ptr
TAO_POA::create_id_uniqueness_policy (PortableServer::IdUniquenessPolicyValue value,
CORBA::Environment &ACE_TRY_ENV)
{
- PortableServer::POA_var rootPOA = this->orb_core_.root_poa_reference (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::IdUniquenessPolicy::_nil ());
-
TAO_Id_Uniqueness_Policy *id_uniqueness_policy = 0;
ACE_NEW_THROW_EX (id_uniqueness_policy,
- TAO_Id_Uniqueness_Policy (value,
- rootPOA.in ()),
+ TAO_Id_Uniqueness_Policy (value),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::IdUniquenessPolicy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var id_uniqueness_policy_var (id_uniqueness_policy);
-
- PortableServer::IdUniquenessPolicy_var result = id_uniqueness_policy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::IdUniquenessPolicy::_nil ());
-
- return result._retn ();
+ return id_uniqueness_policy;
}
PortableServer::IdAssignmentPolicy_ptr
TAO_POA::create_id_assignment_policy (PortableServer::IdAssignmentPolicyValue value,
CORBA::Environment &ACE_TRY_ENV)
{
- PortableServer::POA_var rootPOA = this->orb_core_.root_poa_reference (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::IdAssignmentPolicy::_nil ());
-
TAO_Id_Assignment_Policy *id_assignment_policy = 0;
ACE_NEW_THROW_EX (id_assignment_policy,
- TAO_Id_Assignment_Policy (value,
- rootPOA.in ()),
+ TAO_Id_Assignment_Policy (value),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::IdAssignmentPolicy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var id_assignment_policy_var (id_assignment_policy);
-
- PortableServer::IdAssignmentPolicy_var result = id_assignment_policy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::IdAssignmentPolicy::_nil ());
-
- return result._retn ();
+ return id_assignment_policy;
}
#if (TAO_HAS_MINIMUM_POA == 0)
@@ -3070,98 +3028,53 @@ PortableServer::ImplicitActivationPolicy_ptr
TAO_POA::create_implicit_activation_policy (PortableServer::ImplicitActivationPolicyValue value,
CORBA::Environment &ACE_TRY_ENV)
{
- PortableServer::POA_var rootPOA = this->orb_core_.root_poa_reference (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ImplicitActivationPolicy::_nil ());
-
TAO_Implicit_Activation_Policy *implicit_activation_policy = 0;
ACE_NEW_THROW_EX (implicit_activation_policy,
- TAO_Implicit_Activation_Policy (value,
- rootPOA.in ()),
+ TAO_Implicit_Activation_Policy (value),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::ImplicitActivationPolicy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var implicit_activation_policy_var (implicit_activation_policy);
-
- PortableServer::ImplicitActivationPolicy_var result = implicit_activation_policy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ImplicitActivationPolicy::_nil ());
-
- return result._retn ();
+ return implicit_activation_policy;
}
PortableServer::ServantRetentionPolicy_ptr
TAO_POA::create_servant_retention_policy (PortableServer::ServantRetentionPolicyValue value,
CORBA::Environment &ACE_TRY_ENV)
{
- PortableServer::POA_var rootPOA = this->orb_core_.root_poa_reference (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ServantRetentionPolicy::_nil ());
-
TAO_Servant_Retention_Policy *servant_retention_policy = 0;
ACE_NEW_THROW_EX (servant_retention_policy,
- TAO_Servant_Retention_Policy (value,
- rootPOA.in ()),
+ TAO_Servant_Retention_Policy (value),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::ServantRetentionPolicy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var servant_retention_policy_var (servant_retention_policy);
-
- PortableServer::ServantRetentionPolicy_var result = servant_retention_policy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ServantRetentionPolicy::_nil ());
-
- return result._retn ();
+ return servant_retention_policy;
}
PortableServer::RequestProcessingPolicy_ptr
TAO_POA::create_request_processing_policy (PortableServer::RequestProcessingPolicyValue value,
CORBA::Environment &ACE_TRY_ENV)
{
- PortableServer::POA_var rootPOA = this->orb_core_.root_poa_reference (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::RequestProcessingPolicy::_nil ());
-
TAO_Request_Processing_Policy *request_processing_policy = 0;
ACE_NEW_THROW_EX (request_processing_policy,
- TAO_Request_Processing_Policy (value,
- rootPOA.in ()),
+ TAO_Request_Processing_Policy (value),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (PortableServer::RequestProcessingPolicy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var request_processing_policy_var (request_processing_policy);
-
- PortableServer::RequestProcessingPolicy_var result = request_processing_policy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::RequestProcessingPolicy::_nil ());
-
- return result._retn ();
+ return request_processing_policy;
}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_Thread_Policy::TAO_Thread_Policy (PortableServer::ThreadPolicyValue value,
- PortableServer::POA_ptr poa)
- : value_ (value),
- poa_ (PortableServer::POA::_duplicate (poa))
+TAO_Thread_Policy::TAO_Thread_Policy (PortableServer::ThreadPolicyValue value)
+ : value_ (value)
{
}
PortableServer::ThreadPolicyValue
-TAO_Thread_Policy::value (CORBA::Environment &ACE_TRY_ENV)
+TAO_Thread_Policy::value (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return this->value_;
}
@@ -3170,70 +3083,34 @@ TAO_Thread_Policy::copy (CORBA::Environment &ACE_TRY_ENV)
{
TAO_Thread_Policy *thread_policy_copy = 0;
ACE_NEW_THROW_EX (thread_policy_copy,
- TAO_Thread_Policy (*this),
+ TAO_Thread_Policy (this->value_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var thread_policy_var (thread_policy_copy);
-
- CORBA::Policy_var result = thread_policy_copy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return result._retn ();
+ return thread_policy_copy;
}
void
-TAO_Thread_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Thread_Policy::destroy (CORBA::Environment &)
{
- //
- // Remove self from POA. Because of reference counting, the POA
- // will automatically delete the servant when all pending requests
- // on this servant are complete.
- //
-
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK;
-
- PortableServer::ObjectId_var id = poa->servant_to_id (this,
- ACE_TRY_ENV);
- ACE_CHECK;
-
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
- ACE_CHECK;
}
CORBA::PolicyType
-TAO_Thread_Policy::policy_type (CORBA::Environment &ACE_TRY_ENV)
+TAO_Thread_Policy::policy_type (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return PortableServer::THREAD_POLICY_ID;
}
-PortableServer::POA_ptr
-TAO_Thread_Policy::_default_POA (CORBA::Environment & /* ACE_TRY_ENV */)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
-TAO_Lifespan_Policy::TAO_Lifespan_Policy (PortableServer::LifespanPolicyValue value,
- PortableServer::POA_ptr poa)
- : value_ (value),
- poa_ (PortableServer::POA::_duplicate (poa))
+TAO_Lifespan_Policy::TAO_Lifespan_Policy (PortableServer::LifespanPolicyValue value)
+ : value_ (value)
{
}
PortableServer::LifespanPolicyValue
-TAO_Lifespan_Policy::value (CORBA::Environment &ACE_TRY_ENV)
+TAO_Lifespan_Policy::value (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return this->value_;
}
@@ -3242,68 +3119,32 @@ TAO_Lifespan_Policy::copy (CORBA::Environment &ACE_TRY_ENV)
{
TAO_Lifespan_Policy *lifespan_policy_copy = 0;
ACE_NEW_THROW_EX (lifespan_policy_copy,
- TAO_Lifespan_Policy (*this),
+ TAO_Lifespan_Policy (this->value_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var lifespan_policy_var (lifespan_policy_copy);
-
- CORBA::Policy_var result = lifespan_policy_copy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return result._retn ();
+ return lifespan_policy_copy;
}
void
-TAO_Lifespan_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Lifespan_Policy::destroy (CORBA::Environment &)
{
- //
- // Remove self from POA. Because of reference counting, the POA
- // will automatically delete the servant when all pending requests
- // on this servant are complete.
- //
-
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK;
-
- PortableServer::ObjectId_var id = poa->servant_to_id (this,
- ACE_TRY_ENV);
- ACE_CHECK;
-
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
- ACE_CHECK;
}
CORBA::PolicyType
-TAO_Lifespan_Policy::policy_type (CORBA::Environment &ACE_TRY_ENV)
+TAO_Lifespan_Policy::policy_type (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return PortableServer::LIFESPAN_POLICY_ID;
}
-PortableServer::POA_ptr
-TAO_Lifespan_Policy::_default_POA (CORBA::Environment & /* ACE_TRY_ENV */)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
-TAO_Id_Uniqueness_Policy::TAO_Id_Uniqueness_Policy (PortableServer::IdUniquenessPolicyValue value,
- PortableServer::POA_ptr poa)
- : value_ (value),
- poa_ (PortableServer::POA::_duplicate (poa))
+TAO_Id_Uniqueness_Policy::TAO_Id_Uniqueness_Policy (PortableServer::IdUniquenessPolicyValue value)
+ : value_ (value)
{
}
PortableServer::IdUniquenessPolicyValue
-TAO_Id_Uniqueness_Policy::value (CORBA::Environment &ACE_TRY_ENV)
+TAO_Id_Uniqueness_Policy::value (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return this->value_;
}
@@ -3312,68 +3153,32 @@ TAO_Id_Uniqueness_Policy::copy (CORBA::Environment &ACE_TRY_ENV)
{
TAO_Id_Uniqueness_Policy *id_uniqueness_policy_copy = 0;
ACE_NEW_THROW_EX (id_uniqueness_policy_copy,
- TAO_Id_Uniqueness_Policy (*this),
+ TAO_Id_Uniqueness_Policy (this->value_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var id_uniqueness_policy_var (id_uniqueness_policy_copy);
-
- CORBA::Policy_var result = id_uniqueness_policy_copy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return result._retn ();
+ return id_uniqueness_policy_copy;
}
void
-TAO_Id_Uniqueness_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Id_Uniqueness_Policy::destroy (CORBA::Environment &)
{
- //
- // Remove self from POA. Because of reference counting, the POA
- // will automatically delete the servant when all pending requests
- // on this servant are complete.
- //
-
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK;
-
- PortableServer::ObjectId_var id = poa->servant_to_id (this,
- ACE_TRY_ENV);
- ACE_CHECK;
-
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
- ACE_CHECK;
}
CORBA::PolicyType
-TAO_Id_Uniqueness_Policy::policy_type (CORBA::Environment &ACE_TRY_ENV)
+TAO_Id_Uniqueness_Policy::policy_type (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return PortableServer::ID_UNIQUENESS_POLICY_ID;
}
-PortableServer::POA_ptr
-TAO_Id_Uniqueness_Policy::_default_POA (CORBA::Environment & /* ACE_TRY_ENV */)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
-TAO_Id_Assignment_Policy::TAO_Id_Assignment_Policy (PortableServer::IdAssignmentPolicyValue value,
- PortableServer::POA_ptr poa)
- : value_ (value),
- poa_ (PortableServer::POA::_duplicate (poa))
+TAO_Id_Assignment_Policy::TAO_Id_Assignment_Policy (PortableServer::IdAssignmentPolicyValue value)
+ : value_ (value)
{
}
PortableServer::IdAssignmentPolicyValue
-TAO_Id_Assignment_Policy::value (CORBA::Environment &ACE_TRY_ENV)
+TAO_Id_Assignment_Policy::value (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return this->value_;
}
@@ -3382,70 +3187,34 @@ TAO_Id_Assignment_Policy::copy (CORBA::Environment &ACE_TRY_ENV)
{
TAO_Id_Assignment_Policy *id_assignment_policy_copy = 0;
ACE_NEW_THROW_EX (id_assignment_policy_copy,
- TAO_Id_Assignment_Policy (*this),
+ TAO_Id_Assignment_Policy (this->value_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var id_assignment_policy_var (id_assignment_policy_copy);
-
- CORBA::Policy_var result = id_assignment_policy_copy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return result._retn ();
+ return id_assignment_policy_copy;
}
void
-TAO_Id_Assignment_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Id_Assignment_Policy::destroy (CORBA::Environment &)
{
- //
- // Remove self from POA. Because of reference counting, the POA
- // will automatically delete the servant when all pending requests
- // on this servant are complete.
- //
-
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK;
-
- PortableServer::ObjectId_var id = poa->servant_to_id (this,
- ACE_TRY_ENV);
- ACE_CHECK;
-
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
- ACE_CHECK;
}
CORBA::PolicyType
-TAO_Id_Assignment_Policy::policy_type (CORBA::Environment &ACE_TRY_ENV)
+TAO_Id_Assignment_Policy::policy_type (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return PortableServer::ID_ASSIGNMENT_POLICY_ID;
}
-PortableServer::POA_ptr
-TAO_Id_Assignment_Policy::_default_POA (CORBA::Environment & /* ACE_TRY_ENV */)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_Implicit_Activation_Policy::TAO_Implicit_Activation_Policy (PortableServer::ImplicitActivationPolicyValue value,
- PortableServer::POA_ptr poa)
- : value_ (value),
- poa_ (PortableServer::POA::_duplicate (poa))
+TAO_Implicit_Activation_Policy::TAO_Implicit_Activation_Policy (PortableServer::ImplicitActivationPolicyValue value)
+ : value_ (value)
{
}
PortableServer::ImplicitActivationPolicyValue
-TAO_Implicit_Activation_Policy::value (CORBA::Environment &ACE_TRY_ENV)
+TAO_Implicit_Activation_Policy::value (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return this->value_;
}
@@ -3454,68 +3223,32 @@ TAO_Implicit_Activation_Policy::copy (CORBA::Environment &ACE_TRY_ENV)
{
TAO_Implicit_Activation_Policy *implicit_activation_policy_copy = 0;
ACE_NEW_THROW_EX (implicit_activation_policy_copy,
- TAO_Implicit_Activation_Policy (*this),
+ TAO_Implicit_Activation_Policy (this->value_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var implicit_activation_policy_var (implicit_activation_policy_copy);
-
- CORBA::Policy_var result = implicit_activation_policy_copy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return result._retn ();
+ return implicit_activation_policy_copy;
}
void
-TAO_Implicit_Activation_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Implicit_Activation_Policy::destroy (CORBA::Environment &)
{
- //
- // Remove self from POA. Because of reference counting, the POA
- // will automatically delete the servant when all pending requests
- // on this servant are complete.
- //
-
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK;
-
- PortableServer::ObjectId_var id = poa->servant_to_id (this,
- ACE_TRY_ENV);
- ACE_CHECK;
-
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
- ACE_CHECK;
}
CORBA::PolicyType
-TAO_Implicit_Activation_Policy::policy_type (CORBA::Environment &ACE_TRY_ENV)
+TAO_Implicit_Activation_Policy::policy_type (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return PortableServer::IMPLICIT_ACTIVATION_POLICY_ID;
}
-PortableServer::POA_ptr
-TAO_Implicit_Activation_Policy::_default_POA (CORBA::Environment & /* ACE_TRY_ENV */)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
-TAO_Servant_Retention_Policy::TAO_Servant_Retention_Policy (PortableServer::ServantRetentionPolicyValue value,
- PortableServer::POA_ptr poa)
- : value_ (value),
- poa_ (PortableServer::POA::_duplicate (poa))
+TAO_Servant_Retention_Policy::TAO_Servant_Retention_Policy (PortableServer::ServantRetentionPolicyValue value)
+ : value_ (value)
{
}
PortableServer::ServantRetentionPolicyValue
-TAO_Servant_Retention_Policy::value (CORBA::Environment &ACE_TRY_ENV)
+TAO_Servant_Retention_Policy::value (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return this->value_;
}
@@ -3524,68 +3257,32 @@ TAO_Servant_Retention_Policy::copy (CORBA::Environment &ACE_TRY_ENV)
{
TAO_Servant_Retention_Policy *servant_retention_policy_copy = 0;
ACE_NEW_THROW_EX (servant_retention_policy_copy,
- TAO_Servant_Retention_Policy (*this),
+ TAO_Servant_Retention_Policy (this->value_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var servant_retention_policy_var (servant_retention_policy_copy);
-
- CORBA::Policy_var result = servant_retention_policy_copy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return result._retn ();
+ return servant_retention_policy_copy;
}
void
-TAO_Servant_Retention_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Servant_Retention_Policy::destroy (CORBA::Environment &)
{
- //
- // Remove self from POA. Because of reference counting, the POA
- // will automatically delete the servant when all pending requests
- // on this servant are complete.
- //
-
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK;
-
- PortableServer::ObjectId_var id = poa->servant_to_id (this,
- ACE_TRY_ENV);
- ACE_CHECK;
-
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
- ACE_CHECK;
}
CORBA::PolicyType
-TAO_Servant_Retention_Policy::policy_type (CORBA::Environment &ACE_TRY_ENV)
+TAO_Servant_Retention_Policy::policy_type (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return PortableServer::SERVANT_RETENTION_POLICY_ID;
}
-PortableServer::POA_ptr
-TAO_Servant_Retention_Policy::_default_POA (CORBA::Environment & /* ACE_TRY_ENV */)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
-TAO_Request_Processing_Policy::TAO_Request_Processing_Policy (PortableServer::RequestProcessingPolicyValue value,
- PortableServer::POA_ptr poa)
- : value_ (value),
- poa_ (PortableServer::POA::_duplicate (poa))
+TAO_Request_Processing_Policy::TAO_Request_Processing_Policy (PortableServer::RequestProcessingPolicyValue value)
+ : value_ (value)
{
}
PortableServer::RequestProcessingPolicyValue
-TAO_Request_Processing_Policy::value (CORBA::Environment &ACE_TRY_ENV)
+TAO_Request_Processing_Policy::value (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return this->value_;
}
@@ -3594,57 +3291,24 @@ TAO_Request_Processing_Policy::copy (CORBA::Environment &ACE_TRY_ENV)
{
TAO_Request_Processing_Policy *request_processing_policy_copy = 0;
ACE_NEW_THROW_EX (request_processing_policy_copy,
- TAO_Request_Processing_Policy (*this),
+ TAO_Request_Processing_Policy (this->value_),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
- // Give ownership of the copy to the servant var. In the case when
- // _this() succeeds, the servant var will reduce the servant ref
- // count to 1, hence giving the ownership to the POA. In the case
- // where _this() fails, the servant var will reduce the servant ref
- // count to 0, hence deleting the servant and avoiding memory leaks.
- PortableServer::ServantBase_var request_processing_policy_var (request_processing_policy_copy);
-
- CORBA::Policy_var result = request_processing_policy_copy->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return result._retn ();
+ return request_processing_policy_copy;
}
void
-TAO_Request_Processing_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Request_Processing_Policy::destroy (CORBA::Environment &)
{
- //
- // Remove self from POA. Because of reference counting, the POA
- // will automatically delete the servant when all pending requests
- // on this servant are complete.
- //
-
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK;
-
- PortableServer::ObjectId_var id = poa->servant_to_id (this,
- ACE_TRY_ENV);
- ACE_CHECK;
-
- poa->deactivate_object (id.in (),
- ACE_TRY_ENV);
- ACE_CHECK;
}
CORBA::PolicyType
-TAO_Request_Processing_Policy::policy_type (CORBA::Environment &ACE_TRY_ENV)
+TAO_Request_Processing_Policy::policy_type (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
return PortableServer::REQUEST_PROCESSING_POLICY_ID;
}
-PortableServer::POA_ptr
-TAO_Request_Processing_Policy::_default_POA (CORBA::Environment & /* ACE_TRY_ENV */)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
TAO_POA_Policies::TAO_POA_Policies (TAO_ORB_Core &orb_core,
@@ -4065,10 +3729,7 @@ TAO_Adapter_Activator::unknown_adapter (PortableServer::POA_ptr parent,
ACE_TRY
{
- PortableServer::AdapterActivator_var activator = this->_this (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- child->the_activator (activator.in (), ACE_TRY_ENV);
+ child->the_activator (this, ACE_TRY_ENV);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -4366,7 +4027,6 @@ TAO_POA::imr_notify_shutdown (void)
#endif /* TAO_HAS_MINIMUM_CORBA */
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Array<PortableServer::ObjectId>;
template class ACE_Array_Base<PortableServer::ObjectId>;
diff --git a/TAO/tao/POA.h b/TAO/tao/POA.h
index 406b6166350..ec87d4cbfa6 100644
--- a/TAO/tao/POA.h
+++ b/TAO/tao/POA.h
@@ -49,6 +49,9 @@
// RT CORBA
#include "tao/RTCORBAC.h"
+// Local Object
+#include "tao/LocalObject.h"
+
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
#if defined(_MSC_VER)
@@ -63,12 +66,12 @@ class TAO_ServerProtocolPolicy;
#if (TAO_HAS_MINIMUM_POA == 0)
-class TAO_Export TAO_Thread_Policy : public virtual PortableServer::RefCountServantBase,
- public virtual POA_PortableServer::ThreadPolicy
+class TAO_Export TAO_Thread_Policy :
+ public PortableServer::ThreadPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
- TAO_Thread_Policy (PortableServer::ThreadPolicyValue value,
- PortableServer::POA_ptr poa);
+ TAO_Thread_Policy (PortableServer::ThreadPolicyValue value);
PortableServer::ThreadPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
@@ -78,22 +81,18 @@ public:
CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
protected:
PortableServer::ThreadPolicyValue value_;
-
- PortableServer::POA_var poa_;
};
#endif /* TAO_HAS_MINIMUM_POA == 0 */
-class TAO_Export TAO_Lifespan_Policy : public virtual PortableServer::RefCountServantBase,
- public virtual POA_PortableServer::LifespanPolicy
+class TAO_Export TAO_Lifespan_Policy :
+ public PortableServer::LifespanPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
- TAO_Lifespan_Policy (PortableServer::LifespanPolicyValue value,
- PortableServer::POA_ptr poa);
+ TAO_Lifespan_Policy (PortableServer::LifespanPolicyValue value);
PortableServer::LifespanPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
@@ -103,20 +102,16 @@ public:
CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
protected:
PortableServer::LifespanPolicyValue value_;
-
- PortableServer::POA_var poa_;
};
-class TAO_Export TAO_Id_Uniqueness_Policy : public virtual PortableServer::RefCountServantBase,
- public virtual POA_PortableServer::IdUniquenessPolicy
+class TAO_Export TAO_Id_Uniqueness_Policy :
+ public PortableServer::IdUniquenessPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
- TAO_Id_Uniqueness_Policy (PortableServer::IdUniquenessPolicyValue value,
- PortableServer::POA_ptr poa);
+ TAO_Id_Uniqueness_Policy (PortableServer::IdUniquenessPolicyValue value);
PortableServer::IdUniquenessPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
@@ -126,20 +121,16 @@ public:
CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
protected:
PortableServer::IdUniquenessPolicyValue value_;
-
- PortableServer::POA_var poa_;
};
-class TAO_Export TAO_Id_Assignment_Policy : public virtual PortableServer::RefCountServantBase,
- public virtual POA_PortableServer::IdAssignmentPolicy
+class TAO_Export TAO_Id_Assignment_Policy :
+ public PortableServer::IdAssignmentPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
- TAO_Id_Assignment_Policy (PortableServer::IdAssignmentPolicyValue value,
- PortableServer::POA_ptr poa);
+ TAO_Id_Assignment_Policy (PortableServer::IdAssignmentPolicyValue value);
PortableServer::IdAssignmentPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
@@ -149,22 +140,18 @@ public:
CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
protected:
PortableServer::IdAssignmentPolicyValue value_;
-
- PortableServer::POA_var poa_;
};
#if (TAO_HAS_MINIMUM_POA == 0)
-class TAO_Export TAO_Implicit_Activation_Policy : public virtual PortableServer::RefCountServantBase,
- public virtual POA_PortableServer::ImplicitActivationPolicy
+class TAO_Export TAO_Implicit_Activation_Policy :
+ public PortableServer::ImplicitActivationPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
- TAO_Implicit_Activation_Policy (PortableServer::ImplicitActivationPolicyValue value,
- PortableServer::POA_ptr poa);
+ TAO_Implicit_Activation_Policy (PortableServer::ImplicitActivationPolicyValue value);
PortableServer::ImplicitActivationPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
@@ -174,20 +161,16 @@ public:
CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
protected:
PortableServer::ImplicitActivationPolicyValue value_;
-
- PortableServer::POA_var poa_;
};
-class TAO_Export TAO_Servant_Retention_Policy : public virtual PortableServer::RefCountServantBase,
- public virtual POA_PortableServer::ServantRetentionPolicy
+class TAO_Export TAO_Servant_Retention_Policy :
+ public PortableServer::ServantRetentionPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
- TAO_Servant_Retention_Policy (PortableServer::ServantRetentionPolicyValue value,
- PortableServer::POA_ptr poa);
+ TAO_Servant_Retention_Policy (PortableServer::ServantRetentionPolicyValue value);
PortableServer::ServantRetentionPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
@@ -197,20 +180,16 @@ public:
CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
protected:
PortableServer::ServantRetentionPolicyValue value_;
-
- PortableServer::POA_var poa_;
};
-class TAO_Export TAO_Request_Processing_Policy : public virtual PortableServer::RefCountServantBase,
- public virtual POA_PortableServer::RequestProcessingPolicy
+class TAO_Export TAO_Request_Processing_Policy :
+ public PortableServer::RequestProcessingPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
- TAO_Request_Processing_Policy (PortableServer::RequestProcessingPolicyValue value,
- PortableServer::POA_ptr poa);
+ TAO_Request_Processing_Policy (PortableServer::RequestProcessingPolicyValue value);
PortableServer::RequestProcessingPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
@@ -220,12 +199,8 @@ public:
CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
protected:
PortableServer::RequestProcessingPolicyValue value_;
-
- PortableServer::POA_var poa_;
};
#endif /* TAO_HAS_MINIMUM_POA == 0 */
@@ -388,7 +363,9 @@ protected:
// Forward Declaration
class ServerObject_i;
-class TAO_Export TAO_POA : public POA_PortableServer::POA
+class TAO_Export TAO_POA :
+ public PortableServer::POA,
+ public TAO_Local_RefCounted_Object
{
public:
@@ -451,6 +428,9 @@ public:
PortableServer::POA_ptr the_parent (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
+ PortableServer::POAList *the_children (CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ())
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
PortableServer::POAManager_ptr the_POAManager (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
#if (TAO_HAS_MINIMUM_POA == 0)
@@ -632,6 +612,11 @@ protected:
CORBA::Boolean wait_for_completion,
CORBA_Environment &ACE_TRY_ENV);
+ void complete_destruction_i (CORBA::Environment &ACE_TRY_ENV);
+
+ PortableServer::POAList *the_children_i (CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
#if (TAO_HAS_MINIMUM_POA == 0)
PortableServer::ServantManager_ptr get_servant_manager_i (CORBA_Environment &ACE_TRY_ENV);
@@ -899,7 +884,8 @@ class TAO_POA_Guard
{
public:
TAO_POA_Guard (TAO_POA &poa,
- CORBA::Environment &ACE_TRY_ENV);
+ CORBA::Environment &ACE_TRY_ENV,
+ int check_for_destruction = 1);
private:
ACE_Guard<ACE_Lock> guard_;
@@ -907,7 +893,7 @@ private:
#if (TAO_HAS_MINIMUM_POA == 0)
-class TAO_Export TAO_Adapter_Activator : public POA_PortableServer::AdapterActivator
+class TAO_Export TAO_Adapter_Activator : public PortableServer::AdapterActivator
{
public:
diff --git a/TAO/tao/POA.i b/TAO/tao/POA.i
index 46cae1ca67d..64e5668c09a 100644
--- a/TAO/tao/POA.i
+++ b/TAO/tao/POA.i
@@ -18,7 +18,8 @@ TAO_POA::lock (void)
ACE_INLINE
TAO_POA_Guard::TAO_POA_Guard (TAO_POA &poa,
- CORBA::Environment &ACE_TRY_ENV)
+ CORBA::Environment &ACE_TRY_ENV,
+ int check_for_destruction)
: guard_ (poa.lock ())
{
if (!this->guard_.locked ())
@@ -29,7 +30,8 @@ TAO_POA_Guard::TAO_POA_Guard (TAO_POA &poa,
0),
CORBA::COMPLETED_NO));
- if (poa.cleanup_in_progress ())
+ if (check_for_destruction &&
+ poa.cleanup_in_progress ())
ACE_THROW (
CORBA::BAD_INV_ORDER (
CORBA_SystemException::_tao_minor_code (
@@ -295,7 +297,9 @@ TAO_POA::destroy (CORBA::Boolean etherealize_objects,
CORBA::Environment &ACE_TRY_ENV)
{
// Lock access for the duration of this transaction.
- TAO_POA_GUARD;
+ TAO_POA_Guard poa_guard (*this, ACE_TRY_ENV, 0);
+ ACE_UNUSED_ARG (poa_guard);
+ ACE_CHECK;
this->destroy_i (etherealize_objects,
wait_for_completion,
@@ -576,18 +580,28 @@ TAO_POA::forward_object (const PortableServer::ObjectId &oid,
#endif /* TAO_HAS_MINIMUM_CORBA */
ACE_INLINE PortableServer::POA_ptr
-TAO_POA::the_parent (CORBA::Environment &ACE_TRY_ENV)
+TAO_POA::the_parent (CORBA::Environment &)
{
if (this->parent_ != 0)
- return this->parent_->_this (ACE_TRY_ENV);
+ return PortableServer::POA::_duplicate (this->parent_);
else
return PortableServer::POA::_nil ();
}
+ACE_INLINE PortableServer::POAList *
+TAO_POA::the_children (CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ // Lock access for the duration of this transaction.
+ TAO_POA_GUARD;
+
+ return this->the_children_i (ACE_TRY_ENV);
+}
+
ACE_INLINE PortableServer::POAManager_ptr
-TAO_POA::the_POAManager (CORBA::Environment &ACE_TRY_ENV)
+TAO_POA::the_POAManager (CORBA::Environment &)
{
- return this->poa_manager_._this (ACE_TRY_ENV);
+ return PortableServer::POAManager::_duplicate (&this->poa_manager_);
}
#if (TAO_HAS_MINIMUM_POA == 0)
@@ -646,10 +660,8 @@ TAO_POA::name (void) const
}
ACE_INLINE char *
-TAO_POA::the_name (CORBA::Environment &ACE_TRY_ENV)
+TAO_POA::the_name (CORBA::Environment &)
{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
-
return CORBA::string_dup (this->name_.c_str ());
}
diff --git a/TAO/tao/POAC.cpp b/TAO/tao/POAC.cpp
deleted file mode 100644
index a36d5f5ddab..00000000000
--- a/TAO/tao/POAC.cpp
+++ /dev/null
@@ -1,5736 +0,0 @@
-// $Id$
-//
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
-//
-// Information on TAO is available at
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// Take care: The typecodes are platform dependent, therefore
-// a ifdef is needed right now. This is going to be changed in
-// the future.
-
-#include "tao/POAC.h"
-#include "tao/POAS.h"
-#include "tao/POA.h"
-#include "tao/Typecode.h"
-#include "tao/Any.h"
-#include "tao/Invocation.h"
-#include "tao/Stub.h"
-
-#if !defined (__ACE_INLINE__)
-#include "tao/POAC.i"
-#endif // !defined INLINE
-
-ACE_RCSID(tao, POAC, "$Id$")
-
-#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET_CS_)
-#define _PORTABLESERVER__TAO_SEQ_OCTET_CS_
-
-static const CORBA::Long _oc_PortableServer__tao_seq_Octet[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_octet,
-
- 0,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer__tao_seq_Octet
-(CORBA::tk_sequence, sizeof (_oc_PortableServer__tao_seq_Octet), (char *)
- &_oc_PortableServer__tao_seq_Octet, 0, sizeof (PortableServer::_tao_seq_Octet));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc__tao_seq_Octet, &_tc_TAO_tc_PortableServer__tao_seq_Octet)
-TAO_NAMESPACE_END
-
-#endif /* end #if !defined */
-
-static const CORBA::Long _oc_PortableServer_ObjectId[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 40, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f4f), ACE_NTOHL (0x626a6563), ACE_NTOHL (0x7449643a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/ObjectId:1.0
- 9, ACE_NTOHL (0x4f626a65), ACE_NTOHL (0x63744964), ACE_NTOHL (0x0), // name = ObjectId
- CORBA::tk_sequence, // typecode kind
- 12, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_octet,
-
- 0,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ObjectId (CORBA::tk_alias, sizeof
- (_oc_PortableServer_ObjectId),
- (char *) &_oc_PortableServer_ObjectId,
- 0, sizeof (PortableServer::ObjectId));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ObjectId, &_tc_TAO_tc_PortableServer_ObjectId)
-TAO_NAMESPACE_END
-
-#if (TAO_HAS_MINIMUM_CORBA == 0)
-
-// default constructor
-PortableServer::ForwardRequest::ForwardRequest (void)
- : CORBA_UserException (PortableServer::_tc_ForwardRequest)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::ForwardRequest::~ForwardRequest (void)
-{
-}
-
-// copy constructor
-PortableServer::ForwardRequest::ForwardRequest (const PortableServer::ForwardRequest &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
- this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ());
-}
-
-// assignment operator
-PortableServer::ForwardRequest&
-PortableServer::ForwardRequest::operator= (const PortableServer::ForwardRequest &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ());
- return *this;
-}
-
-PortableServer::ForwardRequest::ForwardRequest(
- const CORBA::Object_ptr _tao_forward_reference)
- : CORBA_UserException (PortableServer::_tc_ForwardRequest)
-{
- this->forward_reference = CORBA::Object::_duplicate (_tao_forward_reference);
-}
-
-void PortableServer::ForwardRequest::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::ForwardRequest::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::ForwardRequest::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::ForwardRequest *
-PortableServer::ForwardRequest::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/ForwardRequest:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::ForwardRequest *, exc);
- else
- return 0;
-}
-
-// = TAO extension
-CORBA::Exception *PortableServer::ForwardRequest::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::ForwardRequest,
- 0);
-
- return retval;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::ForwardRequest &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_ForwardRequest,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::ForwardRequest::_tao_any_destructor (void *x)
-{
- PortableServer::ForwardRequest *tmp = ACE_static_cast(PortableServer::ForwardRequest*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ForwardRequest *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_ForwardRequest,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::ForwardRequest::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ForwardRequest *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(
- const PortableServer::ForwardRequest*&,
- _tao_elem
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::ForwardRequest *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ForwardRequest, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::ForwardRequest *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::ForwardRequest, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::String_var interface_repository_id;
- if (!(stream >> interface_repository_id.out ()))
- return 0;
- if (ACE_OS::strcmp (interface_repository_id.in (),
- "IDL:omg.org/PortableServer/ForwardRequest:1.0"))
- return 0;
- if (stream >> *(PortableServer::ForwardRequest *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ForwardRequest,
- 1,
- ACE_reinterpret_cast (void *, ACE_const_cast (PortableServer::ForwardRequest *&, _tao_elem)),
- PortableServer::ForwardRequest::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete ACE_const_cast (PortableServer::ForwardRequest *&, _tao_elem);
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete ACE_const_cast (PortableServer::ForwardRequest *&, _tao_elem);
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-static const CORBA::Long _oc_PortableServer_ForwardRequest[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 46, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f46), ACE_NTOHL (0x6f727761), ACE_NTOHL (0x72645265), ACE_NTOHL (0x71756573), ACE_NTOHL (0x743a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/ForwardRequest:1.0
- 15, ACE_NTOHL (0x466f7277), ACE_NTOHL (0x61726452), ACE_NTOHL (0x65717565), ACE_NTOHL (0x73740000), // name = ForwardRequest
- 1, // member count
- 18, ACE_NTOHL (0x666f7277), ACE_NTOHL (0x6172645f), ACE_NTOHL (0x72656665), ACE_NTOHL (0x72656e63), ACE_NTOHL (0x65000000), // name = forward_reference
- CORBA::tk_objref,
-52, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- 29, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f4f62), ACE_NTOHL (0x6a656374), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/Object:1.0
- 7, ACE_NTOHL (0x4f626a65), ACE_NTOHL (0x63740000), // name = Object,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ForwardRequest (CORBA::tk_except,
- sizeof (_oc_PortableServer_ForwardRequest),
- (char *) &_oc_PortableServer_ForwardRequest,
- 0,
- sizeof (PortableServer::ForwardRequest));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ForwardRequest, &_tc_TAO_tc_PortableServer_ForwardRequest)
-TAO_NAMESPACE_END
-
-#endif /* TAO_HAS_MINIMUM_CORBA */
-
-TAO_NAMESPACE_TYPE (const CORBA::ULong)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (const CORBA::ULong, THREAD_POLICY_ID, 16)
-TAO_NAMESPACE_END
-TAO_NAMESPACE_TYPE (const CORBA::ULong)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (const CORBA::ULong, LIFESPAN_POLICY_ID, 17)
-TAO_NAMESPACE_END
-TAO_NAMESPACE_TYPE (const CORBA::ULong)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (const CORBA::ULong, ID_UNIQUENESS_POLICY_ID, 18)
-TAO_NAMESPACE_END
-TAO_NAMESPACE_TYPE (const CORBA::ULong)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (const CORBA::ULong, ID_ASSIGNMENT_POLICY_ID, 19)
-TAO_NAMESPACE_END
-TAO_NAMESPACE_TYPE (const CORBA::ULong)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (const CORBA::ULong, IMPLICIT_ACTIVATION_POLICY_ID, 20)
-TAO_NAMESPACE_END
-TAO_NAMESPACE_TYPE (const CORBA::ULong)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (const CORBA::ULong, SERVANT_RETENTION_POLICY_ID, 21)
-TAO_NAMESPACE_END
-TAO_NAMESPACE_TYPE (const CORBA::ULong)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (const CORBA::ULong, REQUEST_PROCESSING_POLICY_ID, 22)
-TAO_NAMESPACE_END
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-static const CORBA::Long _oc_PortableServer_ThreadPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 49, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f54), ACE_NTOHL (0x68726561), ACE_NTOHL (0x64506f6c), ACE_NTOHL (0x69637956), ACE_NTOHL (0x616c7565), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableServer/ThreadPolicyValue:1.0
- 18, ACE_NTOHL (0x54687265), ACE_NTOHL (0x6164506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x56616c75), ACE_NTOHL (0x65000000), // name = ThreadPolicyValue
- 2, // member count
- 15, ACE_NTOHL (0x4f52425f), ACE_NTOHL (0x4354524c), ACE_NTOHL (0x5f4d4f44), ACE_NTOHL (0x454c0000), // name = ORB_CTRL_MODEL
- 20, ACE_NTOHL (0x53494e47), ACE_NTOHL (0x4c455f54), ACE_NTOHL (0x48524541), ACE_NTOHL (0x445f4d4f), ACE_NTOHL (0x44454c00), // name = SINGLE_THREAD_MODEL
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ThreadPolicyValue (CORBA::tk_enum,
- sizeof (_oc_PortableServer_ThreadPolicyValue),
- (char *) &_oc_PortableServer_ThreadPolicyValue,
- 0,
- sizeof (PortableServer::ThreadPolicyValue));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ThreadPolicyValue, &_tc_TAO_tc_PortableServer_ThreadPolicyValue)
-TAO_NAMESPACE_END
-
-PortableServer::ThreadPolicy_ptr PortableServer::ThreadPolicy::_duplicate (PortableServer::ThreadPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ThreadPolicy_ptr PortableServer::ThreadPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ThreadPolicy::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/ThreadPolicy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ThreadPolicy::_nil ());
- if (check)
- return PortableServer::ThreadPolicy::_nil ();
- void* servant = 0;
- TAO_Stub* stub = obj->_stubobj ();
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/PortableServer/ThreadPolicy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::ThreadPolicy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
- {
- PortableServer::ThreadPolicy_ptr rval =
- PortableServer::ThreadPolicy::_nil ();
-
- ACE_NEW_RETURN (rval,
- PortableServer::ThreadPolicy (stub),
- PortableServer::ThreadPolicy::_nil ());
-
- return rval;
- }
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::ThreadPolicy_ptr retval =
- PortableServer::ThreadPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ThreadPolicy (
- ACE_reinterpret_cast (POA_PortableServer::ThreadPolicy_ptr,
- servant),
- stub
- ),
- PortableServer::ThreadPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-PortableServer::ThreadPolicyValue PortableServer::ThreadPolicy::value(CORBA::Environment &ACE_TRY_ENV)
-{
- PortableServer::ThreadPolicyValue _tao_retval = (PortableServer::ThreadPolicyValue)0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "_get_""value",
- 10,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (! (_tao_in >> _tao_retval))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean PortableServer::ThreadPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ThreadPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::ThreadPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ThreadPolicy:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_ThreadPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 44, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f54), ACE_NTOHL (0x68726561), ACE_NTOHL (0x64506f6c), ACE_NTOHL (0x6963793a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/ThreadPolicy:1.0
- 13, ACE_NTOHL (0x54687265), ACE_NTOHL (0x6164506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x0), // name = ThreadPolicy,
-};
-
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ThreadPolicy (CORBA::tk_objref,
- sizeof (_oc_PortableServer_ThreadPolicy),
- (char *) &_oc_PortableServer_ThreadPolicy,
- 0,
- sizeof (PortableServer::ThreadPolicy));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ThreadPolicy, &_tc_TAO_tc_PortableServer_ThreadPolicy)
-TAO_NAMESPACE_END
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-static const CORBA::Long _oc_PortableServer_LifespanPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 51, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f4c), ACE_NTOHL (0x69666573), ACE_NTOHL (0x70616e50), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/LifespanPolicyValue:1.0
- 20, ACE_NTOHL (0x4c696665), ACE_NTOHL (0x7370616e), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = LifespanPolicyValue
- 2, // member count
- 10, ACE_NTOHL (0x5452414e), ACE_NTOHL (0x5349454e), ACE_NTOHL (0x54000000), // name = TRANSIENT
- 11, ACE_NTOHL (0x50455253), ACE_NTOHL (0x49535445), ACE_NTOHL (0x4e540000), // name = PERSISTENT
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_LifespanPolicyValue (CORBA::tk_enum,
- sizeof (_oc_PortableServer_LifespanPolicyValue),
- (char *) &_oc_PortableServer_LifespanPolicyValue,
- 0,
- sizeof (PortableServer::LifespanPolicyValue));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_LifespanPolicyValue, &_tc_TAO_tc_PortableServer_LifespanPolicyValue)
-TAO_NAMESPACE_END
-
-PortableServer::LifespanPolicy_ptr PortableServer::LifespanPolicy::_duplicate (PortableServer::LifespanPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::LifespanPolicy_ptr PortableServer::LifespanPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::LifespanPolicy::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/LifespanPolicy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::LifespanPolicy::_nil ());
- if (check)
- return PortableServer::LifespanPolicy::_nil ();
- TAO_Stub* stub = obj->_stubobj ();
- void* servant = 0;
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/PortableServer/LifespanPolicy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::LifespanPolicy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
- {
- PortableServer::LifespanPolicy_ptr rval =
- PortableServer::LifespanPolicy::_nil ();
-
- ACE_NEW_RETURN (rval,
- PortableServer::LifespanPolicy (stub),
- PortableServer::LifespanPolicy::_nil ());
-
- return rval;
- }
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::LifespanPolicy_ptr retval =
- PortableServer::LifespanPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_LifespanPolicy (
- ACE_reinterpret_cast (POA_PortableServer::LifespanPolicy_ptr,
- servant),
- stub
- ),
- PortableServer::LifespanPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-PortableServer::LifespanPolicyValue PortableServer::LifespanPolicy::value(CORBA::Environment &ACE_TRY_ENV)
-{
- PortableServer::LifespanPolicyValue _tao_retval = (PortableServer::LifespanPolicyValue)0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "_get_""value",
- 10,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean PortableServer::LifespanPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/LifespanPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::LifespanPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/LifespanPolicy:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_LifespanPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 46, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f4c), ACE_NTOHL (0x69666573), ACE_NTOHL (0x70616e50), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x793a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/LifespanPolicy:1.0
- 15, ACE_NTOHL (0x4c696665), ACE_NTOHL (0x7370616e), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63790000), // name = LifespanPolicy,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_LifespanPolicy (CORBA::tk_objref,
- sizeof (_oc_PortableServer_LifespanPolicy),
- (char *) &_oc_PortableServer_LifespanPolicy,
- 0,
- sizeof (PortableServer::LifespanPolicy));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_LifespanPolicy, &_tc_TAO_tc_PortableServer_LifespanPolicy)
-TAO_NAMESPACE_END
-
-
-static const CORBA::Long _oc_PortableServer_IdUniquenessPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 55, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x64556e69), ACE_NTOHL (0x7175656e), ACE_NTOHL (0x65737350), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/IdUniquenessPolicyValue:1.0
- 24, ACE_NTOHL (0x4964556e), ACE_NTOHL (0x69717565), ACE_NTOHL (0x6e657373), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = IdUniquenessPolicyValue
- 2, // member count
- 10, ACE_NTOHL (0x554e4951), ACE_NTOHL (0x55455f49), ACE_NTOHL (0x44000000), // name = UNIQUE_ID
- 12, ACE_NTOHL (0x4d554c54), ACE_NTOHL (0x49504c45), ACE_NTOHL (0x5f494400), // name = MULTIPLE_ID
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_IdUniquenessPolicyValue (CORBA::tk_enum,
- sizeof (_oc_PortableServer_IdUniquenessPolicyValue),
- (char *) &_oc_PortableServer_IdUniquenessPolicyValue,
- 0,
- sizeof (PortableServer::IdUniquenessPolicyValue));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IdUniquenessPolicyValue, &_tc_TAO_tc_PortableServer_IdUniquenessPolicyValue)
-TAO_NAMESPACE_END
-
-PortableServer::IdUniquenessPolicy_ptr PortableServer::IdUniquenessPolicy::_duplicate (PortableServer::IdUniquenessPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::IdUniquenessPolicy_ptr PortableServer::IdUniquenessPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::IdUniquenessPolicy::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::IdUniquenessPolicy::_nil ());
- if (check)
- return PortableServer::IdUniquenessPolicy::_nil ();
- TAO_Stub* stub = obj->_stubobj ();
- void* servant = 0;
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::IdUniquenessPolicy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
- {
- PortableServer::IdUniquenessPolicy_ptr rval =
- PortableServer::IdUniquenessPolicy::_nil ();
-
- ACE_NEW_RETURN (rval,
- PortableServer::IdUniquenessPolicy (stub),
- PortableServer::IdUniquenessPolicy::_nil ());
-
- return rval;
- }
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::IdUniquenessPolicy_ptr retval =
- PortableServer::IdUniquenessPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_IdUniquenessPolicy (
- ACE_reinterpret_cast (POA_PortableServer::IdUniquenessPolicy_ptr,
- servant),
- stub
- ),
- PortableServer::IdUniquenessPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-PortableServer::IdUniquenessPolicyValue PortableServer::IdUniquenessPolicy::value(CORBA::Environment &ACE_TRY_ENV)
-{
- PortableServer::IdUniquenessPolicyValue _tao_retval = (PortableServer::IdUniquenessPolicyValue)0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "_get_""value",
- 10,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean PortableServer::IdUniquenessPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::IdUniquenessPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_IdUniquenessPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 50, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x64556e69), ACE_NTOHL (0x7175656e), ACE_NTOHL (0x65737350), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x793a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0
- 19, ACE_NTOHL (0x4964556e), ACE_NTOHL (0x69717565), ACE_NTOHL (0x6e657373), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63790000), // name = IdUniquenessPolicy,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_IdUniquenessPolicy (CORBA::tk_objref,
- sizeof (_oc_PortableServer_IdUniquenessPolicy),
- (char *) &_oc_PortableServer_IdUniquenessPolicy,
- 0,
- sizeof (PortableServer::IdUniquenessPolicy));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IdUniquenessPolicy, &_tc_TAO_tc_PortableServer_IdUniquenessPolicy)
-TAO_NAMESPACE_END
-
-static const CORBA::Long _oc_PortableServer_IdAssignmentPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 55, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x64417373), ACE_NTOHL (0x69676e6d), ACE_NTOHL (0x656e7450), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/IdAssignmentPolicyValue:1.0
- 24, ACE_NTOHL (0x49644173), ACE_NTOHL (0x7369676e), ACE_NTOHL (0x6d656e74), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = IdAssignmentPolicyValue
- 2, // member count
- 8, ACE_NTOHL (0x55534552), ACE_NTOHL (0x5f494400), // name = USER_ID
- 10, ACE_NTOHL (0x53595354), ACE_NTOHL (0x454d5f49), ACE_NTOHL (0x44000000), // name = SYSTEM_ID
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_IdAssignmentPolicyValue (CORBA::tk_enum,
- sizeof (_oc_PortableServer_IdAssignmentPolicyValue),
- (char *) &_oc_PortableServer_IdAssignmentPolicyValue,
- 0,
- sizeof (PortableServer::IdAssignmentPolicyValue));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IdAssignmentPolicyValue, &_tc_TAO_tc_PortableServer_IdAssignmentPolicyValue)
-TAO_NAMESPACE_END
-
-PortableServer::IdAssignmentPolicy_ptr PortableServer::IdAssignmentPolicy::_duplicate (PortableServer::IdAssignmentPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::IdAssignmentPolicy_ptr PortableServer::IdAssignmentPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::IdAssignmentPolicy::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::IdAssignmentPolicy::_nil ());
- if (check)
- return PortableServer::IdAssignmentPolicy::_nil ();
- TAO_Stub* stub = obj->_stubobj ();
- void* servant = 0;
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::IdAssignmentPolicy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
- {
- PortableServer::IdAssignmentPolicy_ptr rval =
- PortableServer::IdAssignmentPolicy::_nil ();
-
- ACE_NEW_RETURN (rval,
- PortableServer::IdAssignmentPolicy (stub),
- PortableServer::IdAssignmentPolicy::_nil ());
-
- return rval;
- }
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::IdAssignmentPolicy_ptr retval =
- PortableServer::IdAssignmentPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_IdAssignmentPolicy (
- ACE_reinterpret_cast (POA_PortableServer::IdAssignmentPolicy_ptr,
- servant),
- stub
- ),
- PortableServer::IdAssignmentPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-PortableServer::IdAssignmentPolicyValue PortableServer::IdAssignmentPolicy::value(CORBA::Environment &ACE_TRY_ENV)
-{
- PortableServer::IdAssignmentPolicyValue _tao_retval = (PortableServer::IdAssignmentPolicyValue)0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "_get_""value",
- 10,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean PortableServer::IdAssignmentPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::IdAssignmentPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_IdAssignmentPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 50, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x64417373), ACE_NTOHL (0x69676e6d), ACE_NTOHL (0x656e7450), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x793a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0
- 19, ACE_NTOHL (0x49644173), ACE_NTOHL (0x7369676e), ACE_NTOHL (0x6d656e74), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63790000), // name = IdAssignmentPolicy,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_IdAssignmentPolicy (CORBA::tk_objref,
- sizeof (_oc_PortableServer_IdAssignmentPolicy),
- (char *) &_oc_PortableServer_IdAssignmentPolicy,
- 0,
- sizeof (PortableServer::IdAssignmentPolicy));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IdAssignmentPolicy, &_tc_TAO_tc_PortableServer_IdAssignmentPolicy)
-TAO_NAMESPACE_END
-
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 61, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x6d706c69), ACE_NTOHL (0x63697441), ACE_NTOHL (0x63746976), ACE_NTOHL (0x6174696f), ACE_NTOHL (0x6e506f6c), ACE_NTOHL (0x69637956), ACE_NTOHL (0x616c7565), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableServer/ImplicitActivationPolicyValue:1.0
- 30, ACE_NTOHL (0x496d706c), ACE_NTOHL (0x69636974), ACE_NTOHL (0x41637469), ACE_NTOHL (0x76617469), ACE_NTOHL (0x6f6e506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x56616c75), ACE_NTOHL (0x65000000), // name = ImplicitActivationPolicyValue
- 2, // member count
- 20, ACE_NTOHL (0x494d504c), ACE_NTOHL (0x49434954), ACE_NTOHL (0x5f414354), ACE_NTOHL (0x49564154), ACE_NTOHL (0x494f4e00), // name = IMPLICIT_ACTIVATION
- 23, ACE_NTOHL (0x4e4f5f49), ACE_NTOHL (0x4d504c49), ACE_NTOHL (0x4349545f), ACE_NTOHL (0x41435449), ACE_NTOHL (0x56415449), ACE_NTOHL (0x4f4e0000), // name = NO_IMPLICIT_ACTIVATION
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ImplicitActivationPolicyValue (CORBA::tk_enum,
- sizeof (_oc_PortableServer_ImplicitActivationPolicyValue),
- (char *) &_oc_PortableServer_ImplicitActivationPolicyValue,
- 0,
- sizeof (PortableServer::ImplicitActivationPolicyValue));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ImplicitActivationPolicyValue, &_tc_TAO_tc_PortableServer_ImplicitActivationPolicyValue)
-TAO_NAMESPACE_END
-
-PortableServer::ImplicitActivationPolicy_ptr PortableServer::ImplicitActivationPolicy::_duplicate (PortableServer::ImplicitActivationPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ImplicitActivationPolicy_ptr PortableServer::ImplicitActivationPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ImplicitActivationPolicy::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ImplicitActivationPolicy::_nil ());
- if (check)
- return PortableServer::ImplicitActivationPolicy::_nil ();
- TAO_Stub* stub = obj->_stubobj ();
- void* servant = 0;
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::ImplicitActivationPolicy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
- {
- PortableServer::ImplicitActivationPolicy_ptr rval =
- PortableServer::ImplicitActivationPolicy::_nil ();
-
- ACE_NEW_RETURN (rval,
- PortableServer::ImplicitActivationPolicy (stub),
- PortableServer::ImplicitActivationPolicy::_nil ());
-
- return rval;
- }
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::ImplicitActivationPolicy_ptr retval =
- PortableServer::ImplicitActivationPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ImplicitActivationPolicy (
- ACE_reinterpret_cast (POA_PortableServer::ImplicitActivationPolicy_ptr,
- servant),
- stub
- ),
- PortableServer::ImplicitActivationPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-PortableServer::ImplicitActivationPolicyValue PortableServer::ImplicitActivationPolicy::value(CORBA::Environment &ACE_TRY_ENV)
-{
- PortableServer::ImplicitActivationPolicyValue _tao_retval = (PortableServer::ImplicitActivationPolicyValue)0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "_get_""value",
- 10,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean PortableServer::ImplicitActivationPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::ImplicitActivationPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 56, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x6d706c69), ACE_NTOHL (0x63697441), ACE_NTOHL (0x63746976), ACE_NTOHL (0x6174696f), ACE_NTOHL (0x6e506f6c), ACE_NTOHL (0x6963793a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0
- 25, ACE_NTOHL (0x496d706c), ACE_NTOHL (0x69636974), ACE_NTOHL (0x41637469), ACE_NTOHL (0x76617469), ACE_NTOHL (0x6f6e506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x0), // name = ImplicitActivationPolicy,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ImplicitActivationPolicy (CORBA::tk_objref,
- sizeof (_oc_PortableServer_ImplicitActivationPolicy),
- (char *) &_oc_PortableServer_ImplicitActivationPolicy,
- 0,
- sizeof (PortableServer::ImplicitActivationPolicy));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ImplicitActivationPolicy, &_tc_TAO_tc_PortableServer_ImplicitActivationPolicy)
-TAO_NAMESPACE_END
-
-
-static const CORBA::Long _oc_PortableServer_ServantRetentionPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 59, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e745265), ACE_NTOHL (0x74656e74), ACE_NTOHL (0x696f6e50), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/ServantRetentionPolicyValue:1.0
- 28, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e7452), ACE_NTOHL (0x6574656e), ACE_NTOHL (0x74696f6e), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = ServantRetentionPolicyValue
- 2, // member count
- 7, ACE_NTOHL (0x52455441), ACE_NTOHL (0x494e0000), // name = RETAIN
- 11, ACE_NTOHL (0x4e4f4e5f), ACE_NTOHL (0x52455441), ACE_NTOHL (0x494e0000), // name = NON_RETAIN
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ServantRetentionPolicyValue (CORBA::tk_enum,
- sizeof (_oc_PortableServer_ServantRetentionPolicyValue),
- (char *) &_oc_PortableServer_ServantRetentionPolicyValue,
- 0,
- sizeof (PortableServer::ServantRetentionPolicyValue));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ServantRetentionPolicyValue, &_tc_TAO_tc_PortableServer_ServantRetentionPolicyValue)
-TAO_NAMESPACE_END
-
-PortableServer::ServantRetentionPolicy_ptr PortableServer::ServantRetentionPolicy::_duplicate (PortableServer::ServantRetentionPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantRetentionPolicy_ptr PortableServer::ServantRetentionPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantRetentionPolicy::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ServantRetentionPolicy::_nil ());
- if (check)
- return PortableServer::ServantRetentionPolicy::_nil ();
- TAO_Stub* stub = obj->_stubobj ();
- void* servant = 0;
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::ServantRetentionPolicy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
- {
- PortableServer::ServantRetentionPolicy_ptr rval =
- PortableServer::ServantRetentionPolicy::_nil ();
-
- ACE_NEW_RETURN (rval,
- PortableServer::ServantRetentionPolicy (stub),
- PortableServer::ServantRetentionPolicy::_nil ());
-
- return rval;
- }
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::ServantRetentionPolicy_ptr retval =
- PortableServer::ServantRetentionPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ServantRetentionPolicy (
- ACE_reinterpret_cast (POA_PortableServer::ServantRetentionPolicy_ptr,
- servant),
- stub
- ),
- PortableServer::ServantRetentionPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-PortableServer::ServantRetentionPolicyValue PortableServer::ServantRetentionPolicy::value(CORBA::Environment &ACE_TRY_ENV)
-{
- PortableServer::ServantRetentionPolicyValue _tao_retval = (PortableServer::ServantRetentionPolicyValue)0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "_get_""value",
- 10,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean PortableServer::ServantRetentionPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::ServantRetentionPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_ServantRetentionPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 54, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e745265), ACE_NTOHL (0x74656e74), ACE_NTOHL (0x696f6e50), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x793a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0
- 23, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e7452), ACE_NTOHL (0x6574656e), ACE_NTOHL (0x74696f6e), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63790000), // name = ServantRetentionPolicy,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ServantRetentionPolicy (CORBA::tk_objref,
- sizeof (_oc_PortableServer_ServantRetentionPolicy),
- (char *) &_oc_PortableServer_ServantRetentionPolicy,
- 0,
- sizeof (PortableServer::ServantRetentionPolicy));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ServantRetentionPolicy, &_tc_TAO_tc_PortableServer_ServantRetentionPolicy)
-TAO_NAMESPACE_END
-
-static const CORBA::Long _oc_PortableServer_RequestProcessingPolicyValue[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 60, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f52), ACE_NTOHL (0x65717565), ACE_NTOHL (0x73745072), ACE_NTOHL (0x6f636573), ACE_NTOHL (0x73696e67), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c75653a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/RequestProcessingPolicyValue:1.0
- 29, ACE_NTOHL (0x52657175), ACE_NTOHL (0x65737450), ACE_NTOHL (0x726f6365), ACE_NTOHL (0x7373696e), ACE_NTOHL (0x67506f6c), ACE_NTOHL (0x69637956), ACE_NTOHL (0x616c7565), ACE_NTOHL (0x0), // name = RequestProcessingPolicyValue
- 3, // member count
- 27, ACE_NTOHL (0x5553455f), ACE_NTOHL (0x41435449), ACE_NTOHL (0x56455f4f), ACE_NTOHL (0x424a4543), ACE_NTOHL (0x545f4d41), ACE_NTOHL (0x505f4f4e), ACE_NTOHL (0x4c590000), // name = USE_ACTIVE_OBJECT_MAP_ONLY
- 20, ACE_NTOHL (0x5553455f), ACE_NTOHL (0x44454641), ACE_NTOHL (0x554c545f), ACE_NTOHL (0x53455256), ACE_NTOHL (0x414e5400), // name = USE_DEFAULT_SERVANT
- 20, ACE_NTOHL (0x5553455f), ACE_NTOHL (0x53455256), ACE_NTOHL (0x414e545f), ACE_NTOHL (0x4d414e41), ACE_NTOHL (0x47455200), // name = USE_SERVANT_MANAGER
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_RequestProcessingPolicyValue (CORBA::tk_enum,
- sizeof (_oc_PortableServer_RequestProcessingPolicyValue),
- (char *) &_oc_PortableServer_RequestProcessingPolicyValue,
- 0,
- sizeof (PortableServer::RequestProcessingPolicyValue));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_RequestProcessingPolicyValue, &_tc_TAO_tc_PortableServer_RequestProcessingPolicyValue)
-TAO_NAMESPACE_END
-
-PortableServer::RequestProcessingPolicy_ptr PortableServer::RequestProcessingPolicy::_duplicate (PortableServer::RequestProcessingPolicy_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::RequestProcessingPolicy_ptr PortableServer::RequestProcessingPolicy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::RequestProcessingPolicy::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::RequestProcessingPolicy::_nil ());
- if (check)
- return PortableServer::RequestProcessingPolicy::_nil ();
- TAO_Stub* stub = obj->_stubobj ();
- void* servant = 0;
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::RequestProcessingPolicy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
- {
- PortableServer::RequestProcessingPolicy_ptr rval =
- PortableServer::RequestProcessingPolicy::_nil ();
-
- ACE_NEW_RETURN (rval,
- PortableServer::RequestProcessingPolicy (stub),
- PortableServer::RequestProcessingPolicy::_nil ());
-
- return rval;
- }
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::RequestProcessingPolicy_ptr retval =
- PortableServer::RequestProcessingPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_RequestProcessingPolicy (
- ACE_reinterpret_cast (POA_PortableServer::RequestProcessingPolicy_ptr,
- servant),
- stub
- ),
- PortableServer::RequestProcessingPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-PortableServer::RequestProcessingPolicyValue PortableServer::RequestProcessingPolicy::value(CORBA::Environment &ACE_TRY_ENV)
-{
- PortableServer::RequestProcessingPolicyValue _tao_retval = (PortableServer::RequestProcessingPolicyValue)0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "_get_""value",
- 10,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean PortableServer::RequestProcessingPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::RequestProcessingPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_RequestProcessingPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 55, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f52), ACE_NTOHL (0x65717565), ACE_NTOHL (0x73745072), ACE_NTOHL (0x6f636573), ACE_NTOHL (0x73696e67), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63793a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0
- 24, ACE_NTOHL (0x52657175), ACE_NTOHL (0x65737450), ACE_NTOHL (0x726f6365), ACE_NTOHL (0x7373696e), ACE_NTOHL (0x67506f6c), ACE_NTOHL (0x69637900), // name = RequestProcessingPolicy,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_RequestProcessingPolicy (CORBA::tk_objref,
- sizeof (_oc_PortableServer_RequestProcessingPolicy),
- (char *) &_oc_PortableServer_RequestProcessingPolicy,
- 0,
- sizeof (PortableServer::RequestProcessingPolicy));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_RequestProcessingPolicy, &_tc_TAO_tc_PortableServer_RequestProcessingPolicy)
-TAO_NAMESPACE_END
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-PortableServer::POAManager_ptr PortableServer::POAManager::_duplicate (PortableServer::POAManager_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-static const CORBA::Long _oc_PortableServer_POAManager_State[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 48, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f414d61), ACE_NTOHL (0x6e616765), ACE_NTOHL (0x722f5374), ACE_NTOHL (0x6174653a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/POAManager/State:1.0
- 6, ACE_NTOHL (0x53746174), ACE_NTOHL (0x65000000), // name = State
- 4, // member count
- 8, ACE_NTOHL (0x484f4c44), ACE_NTOHL (0x494e4700), // name = HOLDING
- 7, ACE_NTOHL (0x41435449), ACE_NTOHL (0x56450000), // name = ACTIVE
- 11, ACE_NTOHL (0x44495343), ACE_NTOHL (0x41524449), ACE_NTOHL (0x4e470000), // name = DISCARDING
- 9, ACE_NTOHL (0x494e4143), ACE_NTOHL (0x54495645), ACE_NTOHL (0x0), // name = INACTIVE
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POAManager_State (CORBA::tk_enum, sizeof (_oc_PortableServer_POAManager_State), (char *) &_oc_PortableServer_POAManager_State, 0, sizeof (PortableServer::POAManager::State));
-CORBA::TypeCode_ptr PortableServer::POAManager::_tc_State = &_tc_TAO_tc_PortableServer_POAManager_State;
-
-PortableServer::POAManager_ptr PortableServer::POAManager::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::POAManager::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/POAManager:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::POAManager::_nil ());
- if (check)
- return PortableServer::POAManager::_nil ();
- void* servant = 0;
- if (!obj->_is_collocated ()
- || !obj->_servant()
- || (servant = obj->_servant ()->_downcast ("IDL:omg.org/PortableServer/POAManager:1.0")) == 0)
- // This can only be colocated
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::POAManager::_nil ());
-
- PortableServer::POAManager_ptr retval =
- PortableServer::POAManager::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_POAManager (
- ACE_reinterpret_cast (POA_PortableServer::POAManager_ptr,
- servant),
- 0
- ),
- PortableServer::POAManager::_nil ()
- );
-
- return retval;
-}
-
-// default constructor
-PortableServer::POAManager::AdapterInactive::AdapterInactive (void)
- : CORBA_UserException (PortableServer::POAManager::_tc_AdapterInactive)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POAManager::AdapterInactive::~AdapterInactive (void)
-{
-}
-
-// copy constructor
-PortableServer::POAManager::AdapterInactive::AdapterInactive (const PortableServer::POAManager::AdapterInactive &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POAManager::AdapterInactive&
-PortableServer::POAManager::AdapterInactive::operator= (const PortableServer::POAManager::AdapterInactive &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POAManager::AdapterInactive::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POAManager::AdapterInactive::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POAManager::AdapterInactive::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POAManager::AdapterInactive *
-PortableServer::POAManager::AdapterInactive::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POAManager::AdapterInactive *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POAManager::AdapterInactive::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POAManager::AdapterInactive,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POAManager_AdapterInactive[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 58, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f414d61), ACE_NTOHL (0x6e616765), ACE_NTOHL (0x722f4164), ACE_NTOHL (0x61707465), ACE_NTOHL (0x72496e61), ACE_NTOHL (0x63746976), ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0
- 16, ACE_NTOHL (0x41646170), ACE_NTOHL (0x74657249), ACE_NTOHL (0x6e616374), ACE_NTOHL (0x69766500), // name = AdapterInactive
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POAManager_AdapterInactive
-(CORBA::tk_except, sizeof (_oc_PortableServer_POAManager_AdapterInactive),
- (char *) &_oc_PortableServer_POAManager_AdapterInactive, 0, sizeof
- (PortableServer::POAManager::AdapterInactive));
-CORBA::TypeCode_ptr PortableServer::POAManager::_tc_AdapterInactive = &_tc_TAO_tc_PortableServer_POAManager_AdapterInactive;
-
-CORBA::Boolean PortableServer::POAManager::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/POAManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::POAManager::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/POAManager:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_POAManager[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 42, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f414d61), ACE_NTOHL (0x6e616765), ACE_NTOHL (0x723a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/POAManager:1.0
- 11, ACE_NTOHL (0x504f414d), ACE_NTOHL (0x616e6167), ACE_NTOHL (0x65720000), // name = POAManager,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POAManager (CORBA::tk_objref,
- sizeof (_oc_PortableServer_POAManager),
- (char *) &_oc_PortableServer_POAManager,
- 0,
- sizeof (PortableServer::POAManager));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_POAManager, &_tc_TAO_tc_PortableServer_POAManager)
-TAO_NAMESPACE_END
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-PortableServer::AdapterActivator_ptr PortableServer::AdapterActivator::_duplicate (PortableServer::AdapterActivator_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::AdapterActivator_ptr PortableServer::AdapterActivator::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::AdapterActivator::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/AdapterActivator:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::AdapterActivator::_nil ());
- if (check)
- return PortableServer::AdapterActivator::_nil ();
- void *servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant ()->_downcast ("IDL:omg.org/PortableServer/AdapterActivator:1.0")) == 0)
- // This can only be colocated
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::AdapterActivator::_nil ());
-
- PortableServer::AdapterActivator_ptr retval =
- PortableServer::AdapterActivator::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_AdapterActivator (
- ACE_reinterpret_cast (POA_PortableServer::AdapterActivator_ptr,
- servant),
- 0
- ),
- PortableServer::AdapterActivator::_nil ()
- );
-
- return retval;
-}
-
-CORBA::Boolean PortableServer::AdapterActivator::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/AdapterActivator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::AdapterActivator::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/AdapterActivator:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_AdapterActivator[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 48, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f41), ACE_NTOHL (0x64617074), ACE_NTOHL (0x65724163), ACE_NTOHL (0x74697661), ACE_NTOHL (0x746f723a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/AdapterActivator:1.0
- 17, ACE_NTOHL (0x41646170), ACE_NTOHL (0x74657241), ACE_NTOHL (0x63746976), ACE_NTOHL (0x61746f72), ACE_NTOHL (0x0), // name = AdapterActivator,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_AdapterActivator (CORBA::tk_objref,
- sizeof (_oc_PortableServer_AdapterActivator),
- (char *) &_oc_PortableServer_AdapterActivator,
- 0,
- sizeof (PortableServer::AdapterActivator));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_AdapterActivator, &_tc_TAO_tc_PortableServer_AdapterActivator)
-TAO_NAMESPACE_END
-
-PortableServer::ServantManager_ptr PortableServer::ServantManager::_duplicate (PortableServer::ServantManager_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantManager_ptr PortableServer::ServantManager::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantManager::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/ServantManager:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ServantManager::_nil ());
- if (check)
- return PortableServer::ServantManager::_nil ();
- void *servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant ()->_downcast ("IDL:omg.org/PortableServer/ServantManager:1.0")) == 0)
- // This can only be colocated
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::ServantManager::_nil ());
-
- PortableServer::ServantManager_ptr retval =
- PortableServer::ServantManager::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ServantManager (
- ACE_reinterpret_cast (POA_PortableServer::ServantManager_ptr,
- servant),
- 0
- ),
- PortableServer::ServantManager::_nil ()
- );
-
- return retval;
-}
-
-CORBA::Boolean PortableServer::ServantManager::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::ServantManager::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantManager:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_ServantManager[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 46, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e744d61), ACE_NTOHL (0x6e616765), ACE_NTOHL (0x723a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/ServantManager:1.0
- 15, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e744d), ACE_NTOHL (0x616e6167), ACE_NTOHL (0x65720000), // name = ServantManager,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ServantManager (CORBA::tk_objref,
- sizeof (_oc_PortableServer_ServantManager),
- (char *) &_oc_PortableServer_ServantManager,
- 0,
- sizeof (PortableServer::ServantManager));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ServantManager, &_tc_TAO_tc_PortableServer_ServantManager)
-TAO_NAMESPACE_END
-
-PortableServer::ServantActivator_ptr PortableServer::ServantActivator::_duplicate (PortableServer::ServantActivator_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantActivator_ptr PortableServer::ServantActivator::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantActivator::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/ServantActivator:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ServantActivator::_nil ());
- if (check)
- return PortableServer::ServantActivator::_nil ();
- void *servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant ()->_downcast ("IDL:omg.org/PortableServer/ServantActivator:1.0")) == 0)
- // This can only be colocated
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::ServantActivator::_nil ());
-
- PortableServer::ServantActivator_ptr retval =
- PortableServer::ServantActivator::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ServantActivator (
- ACE_reinterpret_cast (POA_PortableServer::ServantActivator_ptr,
- servant),
- 0
- ),
- PortableServer::ServantActivator::_nil ()
- );
-
- return retval;
-}
-
-CORBA::Boolean PortableServer::ServantActivator::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantActivator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::ServantActivator::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantActivator:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_ServantActivator[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 48, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e744163), ACE_NTOHL (0x74697661), ACE_NTOHL (0x746f723a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/ServantActivator:1.0
- 17, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e7441), ACE_NTOHL (0x63746976), ACE_NTOHL (0x61746f72), ACE_NTOHL (0x0), // name = ServantActivator,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ServantActivator (CORBA::tk_objref,
- sizeof (_oc_PortableServer_ServantActivator),
- (char *) &_oc_PortableServer_ServantActivator,
- 0,
- sizeof (PortableServer::ServantActivator));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ServantActivator, &_tc_TAO_tc_PortableServer_ServantActivator)
-TAO_NAMESPACE_END
-
-PortableServer::ServantLocator_ptr PortableServer::ServantLocator::_duplicate (PortableServer::ServantLocator_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::ServantLocator_ptr PortableServer::ServantLocator::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::ServantLocator::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/ServantLocator:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::ServantLocator::_nil ());
- if (check)
- return PortableServer::ServantLocator::_nil ();
- void *servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant ()->_downcast ("IDL:omg.org/PortableServer/ServantLocator:1.0")) == 0)
- // This can only be colocated
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::ServantLocator::_nil ());
-
- PortableServer::ServantLocator_ptr retval =
- PortableServer::ServantLocator::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ServantLocator (
- ACE_reinterpret_cast (POA_PortableServer::ServantLocator_ptr,
- servant),
- 0
- ),
- PortableServer::ServantLocator::_nil ()
- );
-
- return retval;
-}
-
-CORBA::Boolean PortableServer::ServantLocator::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantLocator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::ServantLocator::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantLocator:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_ServantLocator[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 46, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e744c6f), ACE_NTOHL (0x6361746f), ACE_NTOHL (0x723a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/ServantLocator:1.0
- 15, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e744c), ACE_NTOHL (0x6f636174), ACE_NTOHL (0x6f720000), // name = ServantLocator,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_ServantLocator (CORBA::tk_objref,
- sizeof (_oc_PortableServer_ServantLocator),
- (char *) &_oc_PortableServer_ServantLocator,
- 0,
- sizeof (PortableServer::ServantLocator));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ServantLocator, &_tc_TAO_tc_PortableServer_ServantLocator)
-TAO_NAMESPACE_END
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-PortableServer::POA_ptr PortableServer::POA::_duplicate (PortableServer::POA_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::POA_ptr PortableServer::POA::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::POA::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/POA:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
- if (check)
- return PortableServer::POA::_nil ();
- void *servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant ()->_downcast ("IDL:omg.org/PortableServer/POA:1.0")) == 0)
- // This can only be colocated
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::POA::_nil ());
-
- PortableServer::POA_ptr retval =
- PortableServer::POA::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_POA (
- ACE_reinterpret_cast (POA_PortableServer::POA_ptr,
- servant),
- 0
- ),
- PortableServer::POA::_nil ()
- );
-
- return retval;
-}
-
-// default constructor
-PortableServer::POA::AdapterAlreadyExists::AdapterAlreadyExists (void)
- : CORBA_UserException (PortableServer::POA::_tc_AdapterAlreadyExists)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::AdapterAlreadyExists::~AdapterAlreadyExists (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::AdapterAlreadyExists::AdapterAlreadyExists (const PortableServer::POA::AdapterAlreadyExists &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::AdapterAlreadyExists&
-PortableServer::POA::AdapterAlreadyExists::operator= (const PortableServer::POA::AdapterAlreadyExists &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::AdapterAlreadyExists::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::AdapterAlreadyExists::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::AdapterAlreadyExists::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::AdapterAlreadyExists_ptr
-PortableServer::POA::AdapterAlreadyExists::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::AdapterAlreadyExists_ptr, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::AdapterAlreadyExists::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::AdapterAlreadyExists,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_AdapterAlreadyExists[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 56, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f41), ACE_NTOHL (0x64617074), ACE_NTOHL (0x6572416c), ACE_NTOHL (0x72656164), ACE_NTOHL (0x79457869), ACE_NTOHL (0x7374733a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0
- 21, ACE_NTOHL (0x41646170), ACE_NTOHL (0x74657241), ACE_NTOHL (0x6c726561), ACE_NTOHL (0x64794578), ACE_NTOHL (0x69737473), ACE_NTOHL (0x0), // name = AdapterAlreadyExists
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_AdapterAlreadyExists
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_AdapterAlreadyExists),
- (char *) &_oc_PortableServer_POA_AdapterAlreadyExists, 0, sizeof
- (PortableServer::POA::AdapterAlreadyExists));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_AdapterAlreadyExists = &_tc_TAO_tc_PortableServer_POA_AdapterAlreadyExists;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-// default constructor
-PortableServer::POA::AdapterInactive::AdapterInactive (void)
- : CORBA_UserException (PortableServer::POA::_tc_AdapterInactive)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::AdapterInactive::~AdapterInactive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::AdapterInactive::AdapterInactive (const PortableServer::POA::AdapterInactive &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::AdapterInactive&
-PortableServer::POA::AdapterInactive::operator= (const PortableServer::POA::AdapterInactive &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::AdapterInactive::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::AdapterInactive::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::AdapterInactive::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::AdapterInactive *
-PortableServer::POA::AdapterInactive::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/AdapterInactive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::AdapterInactive *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::AdapterInactive::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::AdapterInactive,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_AdapterInactive[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 51, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f41), ACE_NTOHL (0x64617074), ACE_NTOHL (0x6572496e), ACE_NTOHL (0x61637469), ACE_NTOHL (0x76653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/POA/AdapterInactive:1.0
- 16, ACE_NTOHL (0x41646170), ACE_NTOHL (0x74657249), ACE_NTOHL (0x6e616374), ACE_NTOHL (0x69766500), // name = AdapterInactive
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_AdapterInactive
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_AdapterInactive), (char *)
- &_oc_PortableServer_POA_AdapterInactive, 0, sizeof
- (PortableServer::POA::AdapterInactive));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_AdapterInactive = &_tc_TAO_tc_PortableServer_POA_AdapterInactive;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// default constructor
-PortableServer::POA::AdapterNonExistent::AdapterNonExistent (void)
- : CORBA_UserException (PortableServer::POA::_tc_AdapterNonExistent)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::AdapterNonExistent::~AdapterNonExistent (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::AdapterNonExistent::AdapterNonExistent (const PortableServer::POA::AdapterNonExistent &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::AdapterNonExistent&
-PortableServer::POA::AdapterNonExistent::operator= (const PortableServer::POA::AdapterNonExistent &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::AdapterNonExistent::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::AdapterNonExistent::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::AdapterNonExistent::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::AdapterNonExistent *
-PortableServer::POA::AdapterNonExistent::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::AdapterNonExistent *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::AdapterNonExistent::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::AdapterNonExistent,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_AdapterNonExistent[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 54, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f41), ACE_NTOHL (0x64617074), ACE_NTOHL (0x65724e6f), ACE_NTOHL (0x6e457869), ACE_NTOHL (0x7374656e), ACE_NTOHL (0x743a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0
- 19, ACE_NTOHL (0x41646170), ACE_NTOHL (0x7465724e), ACE_NTOHL (0x6f6e4578), ACE_NTOHL (0x69737465), ACE_NTOHL (0x6e740000), // name = AdapterNonExistent
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_AdapterNonExistent
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_AdapterNonExistent), (char *)
- &_oc_PortableServer_POA_AdapterNonExistent, 0, sizeof
- (PortableServer::POA::AdapterNonExistent));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_AdapterNonExistent = &_tc_TAO_tc_PortableServer_POA_AdapterNonExistent;
-
-// default constructor
-PortableServer::POA::InvalidPolicy::InvalidPolicy (void)
- : CORBA_UserException (PortableServer::POA::_tc_InvalidPolicy)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::InvalidPolicy::~InvalidPolicy (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::InvalidPolicy::InvalidPolicy (const PortableServer::POA::InvalidPolicy &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
- this->index = _tao_excp.index;
-}
-
-// assignment operator
-PortableServer::POA::InvalidPolicy&
-PortableServer::POA::InvalidPolicy::operator= (const PortableServer::POA::InvalidPolicy &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- this->index = _tao_excp.index;
- return *this;
-}
-
-PortableServer::POA::InvalidPolicy::InvalidPolicy(
- CORBA::UShort _tao_index)
- : CORBA_UserException (PortableServer::POA::_tc_InvalidPolicy)
-{
- this->index = _tao_index;
-}
-
-void PortableServer::POA::InvalidPolicy::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::InvalidPolicy::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::InvalidPolicy::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::InvalidPolicy *
-PortableServer::POA::InvalidPolicy::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::InvalidPolicy *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::InvalidPolicy::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::InvalidPolicy,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_InvalidPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 49, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f49), ACE_NTOHL (0x6e76616c), ACE_NTOHL (0x6964506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0
- 14, ACE_NTOHL (0x496e7661), ACE_NTOHL (0x6c696450), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x79000000), // name = InvalidPolicy
- 1, // member count
- 6, ACE_NTOHL (0x696e6465), ACE_NTOHL (0x78000000), // name = index
- CORBA::tk_ushort,
-
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_InvalidPolicy
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_InvalidPolicy), (char *)
- &_oc_PortableServer_POA_InvalidPolicy, 0, sizeof
- (PortableServer::POA::InvalidPolicy));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_InvalidPolicy = &_tc_TAO_tc_PortableServer_POA_InvalidPolicy;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-// default constructor
-PortableServer::POA::NoServant::NoServant (void)
- : CORBA_UserException (PortableServer::POA::_tc_NoServant)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::NoServant::~NoServant (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::NoServant::NoServant (const PortableServer::POA::NoServant &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::NoServant&
-PortableServer::POA::NoServant::operator= (const PortableServer::POA::NoServant &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::NoServant::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::NoServant::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::NoServant::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::NoServant *
-PortableServer::POA::NoServant::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/NoServant:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::NoServant *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::NoServant::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::NoServant,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_NoServant[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 45, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f4e), ACE_NTOHL (0x6f536572), ACE_NTOHL (0x76616e74), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableServer/POA/NoServant:1.0
- 10, ACE_NTOHL (0x4e6f5365), ACE_NTOHL (0x7276616e), ACE_NTOHL (0x74000000), // name = NoServant
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_NoServant (CORBA::tk_except,
- sizeof
- (_oc_PortableServer_POA_NoServant),
- (char *)
- &_oc_PortableServer_POA_NoServant, 0,
- sizeof (PortableServer::POA::NoServant));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_NoServant = &_tc_TAO_tc_PortableServer_POA_NoServant;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// default constructor
-PortableServer::POA::ObjectAlreadyActive::ObjectAlreadyActive (void)
- : CORBA_UserException (PortableServer::POA::_tc_ObjectAlreadyActive)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ObjectAlreadyActive::~ObjectAlreadyActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ObjectAlreadyActive::ObjectAlreadyActive (const PortableServer::POA::ObjectAlreadyActive &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::ObjectAlreadyActive&
-PortableServer::POA::ObjectAlreadyActive::operator= (const PortableServer::POA::ObjectAlreadyActive &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::ObjectAlreadyActive::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::ObjectAlreadyActive::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::ObjectAlreadyActive::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::ObjectAlreadyActive *
-PortableServer::POA::ObjectAlreadyActive::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ObjectAlreadyActive *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ObjectAlreadyActive::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::ObjectAlreadyActive,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ObjectAlreadyActive[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 55, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f4f), ACE_NTOHL (0x626a6563), ACE_NTOHL (0x74416c72), ACE_NTOHL (0x65616479), ACE_NTOHL (0x41637469), ACE_NTOHL (0x76653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0
- 20, ACE_NTOHL (0x4f626a65), ACE_NTOHL (0x6374416c), ACE_NTOHL (0x72656164), ACE_NTOHL (0x79416374), ACE_NTOHL (0x69766500), // name = ObjectAlreadyActive
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_ObjectAlreadyActive
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_ObjectAlreadyActive),
- (char *) &_oc_PortableServer_POA_ObjectAlreadyActive, 0, sizeof
- (PortableServer::POA::ObjectAlreadyActive));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ObjectAlreadyActive = &_tc_TAO_tc_PortableServer_POA_ObjectAlreadyActive;
-
-// default constructor
-PortableServer::POA::ObjectNotActive::ObjectNotActive (void)
- : CORBA_UserException (PortableServer::POA::_tc_ObjectNotActive)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ObjectNotActive::~ObjectNotActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ObjectNotActive::ObjectNotActive (const PortableServer::POA::ObjectNotActive &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::ObjectNotActive&
-PortableServer::POA::ObjectNotActive::operator= (const PortableServer::POA::ObjectNotActive &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::ObjectNotActive::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::ObjectNotActive::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::ObjectNotActive::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::ObjectNotActive *
-PortableServer::POA::ObjectNotActive::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ObjectNotActive *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ObjectNotActive::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::ObjectNotActive,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ObjectNotActive[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 51, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f4f), ACE_NTOHL (0x626a6563), ACE_NTOHL (0x744e6f74), ACE_NTOHL (0x41637469), ACE_NTOHL (0x76653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0
- 16, ACE_NTOHL (0x4f626a65), ACE_NTOHL (0x63744e6f), ACE_NTOHL (0x74416374), ACE_NTOHL (0x69766500), // name = ObjectNotActive
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_ObjectNotActive
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_ObjectNotActive), (char *)
- &_oc_PortableServer_POA_ObjectNotActive, 0, sizeof
- (PortableServer::POA::ObjectNotActive));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ObjectNotActive = &_tc_TAO_tc_PortableServer_POA_ObjectNotActive;
-
-// default constructor
-PortableServer::POA::ServantAlreadyActive::ServantAlreadyActive (void)
- : CORBA_UserException (PortableServer::POA::_tc_ServantAlreadyActive)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ServantAlreadyActive::~ServantAlreadyActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ServantAlreadyActive::ServantAlreadyActive (const PortableServer::POA::ServantAlreadyActive &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::ServantAlreadyActive&
-PortableServer::POA::ServantAlreadyActive::operator= (const PortableServer::POA::ServantAlreadyActive &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::ServantAlreadyActive::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::ServantAlreadyActive::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::ServantAlreadyActive::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::ServantAlreadyActive *
-PortableServer::POA::ServantAlreadyActive::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ServantAlreadyActive *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ServantAlreadyActive::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::ServantAlreadyActive,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ServantAlreadyActive[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 56, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e74416c), ACE_NTOHL (0x72656164), ACE_NTOHL (0x79416374), ACE_NTOHL (0x6976653a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0
- 21, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e7441), ACE_NTOHL (0x6c726561), ACE_NTOHL (0x64794163), ACE_NTOHL (0x74697665), ACE_NTOHL (0x0), // name = ServantAlreadyActive
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_ServantAlreadyActive
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_ServantAlreadyActive),
- (char *) &_oc_PortableServer_POA_ServantAlreadyActive, 0, sizeof
- (PortableServer::POA::ServantAlreadyActive));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ServantAlreadyActive = &_tc_TAO_tc_PortableServer_POA_ServantAlreadyActive;
-
-// default constructor
-PortableServer::POA::ServantNotActive::ServantNotActive (void)
- : CORBA_UserException (PortableServer::POA::_tc_ServantNotActive)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::ServantNotActive::~ServantNotActive (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::ServantNotActive::ServantNotActive (const PortableServer::POA::ServantNotActive &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::ServantNotActive&
-PortableServer::POA::ServantNotActive::operator= (const PortableServer::POA::ServantNotActive &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::ServantNotActive::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::ServantNotActive::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::ServantNotActive::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::ServantNotActive *
-PortableServer::POA::ServantNotActive::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/ServantNotActive:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::ServantNotActive *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::ServantNotActive::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::ServantNotActive,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_ServantNotActive[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 52, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e744e6f), ACE_NTOHL (0x74416374), ACE_NTOHL (0x6976653a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/POA/ServantNotActive:1.0
- 17, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e744e), ACE_NTOHL (0x6f744163), ACE_NTOHL (0x74697665), ACE_NTOHL (0x0), // name = ServantNotActive
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_ServantNotActive
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_ServantNotActive), (char *)
- &_oc_PortableServer_POA_ServantNotActive, 0, sizeof
- (PortableServer::POA::ServantNotActive));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_ServantNotActive = &_tc_TAO_tc_PortableServer_POA_ServantNotActive;
-
-// default constructor
-PortableServer::POA::WrongAdapter::WrongAdapter (void)
- : CORBA_UserException (PortableServer::POA::_tc_WrongAdapter)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::WrongAdapter::~WrongAdapter (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::WrongAdapter::WrongAdapter (const PortableServer::POA::WrongAdapter &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::WrongAdapter&
-PortableServer::POA::WrongAdapter::operator= (const PortableServer::POA::WrongAdapter &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::WrongAdapter::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::WrongAdapter::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::WrongAdapter::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::WrongAdapter *
-PortableServer::POA::WrongAdapter::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/WrongAdapter:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::WrongAdapter *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::WrongAdapter::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::WrongAdapter,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_WrongAdapter[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 48, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f57), ACE_NTOHL (0x726f6e67), ACE_NTOHL (0x41646170), ACE_NTOHL (0x7465723a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableServer/POA/WrongAdapter:1.0
- 13, ACE_NTOHL (0x57726f6e), ACE_NTOHL (0x67416461), ACE_NTOHL (0x70746572), ACE_NTOHL (0x0), // name = WrongAdapter
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_WrongAdapter
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_WrongAdapter), (char *)
- &_oc_PortableServer_POA_WrongAdapter, 0, sizeof
- (PortableServer::POA::WrongAdapter));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_WrongAdapter = &_tc_TAO_tc_PortableServer_POA_WrongAdapter;
-
-// default constructor
-PortableServer::POA::WrongPolicy::WrongPolicy (void)
- : CORBA_UserException (PortableServer::POA::_tc_WrongPolicy)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::POA::WrongPolicy::~WrongPolicy (void)
-{
-}
-
-// copy constructor
-PortableServer::POA::WrongPolicy::WrongPolicy (const PortableServer::POA::WrongPolicy &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::POA::WrongPolicy&
-PortableServer::POA::WrongPolicy::operator= (const PortableServer::POA::WrongPolicy &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::POA::WrongPolicy::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::POA::WrongPolicy::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::POA::WrongPolicy::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::POA::WrongPolicy *
-PortableServer::POA::WrongPolicy::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/POA/WrongPolicy:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::POA::WrongPolicy *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::POA::WrongPolicy::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::POA::WrongPolicy,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_POA_WrongPolicy[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 47, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f412f57), ACE_NTOHL (0x726f6e67), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63793a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/POA/WrongPolicy:1.0
- 12, ACE_NTOHL (0x57726f6e), ACE_NTOHL (0x67506f6c), ACE_NTOHL (0x69637900), // name = WrongPolicy
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA_WrongPolicy
-(CORBA::tk_except, sizeof (_oc_PortableServer_POA_WrongPolicy), (char *)
- &_oc_PortableServer_POA_WrongPolicy, 0, sizeof
- (PortableServer::POA::WrongPolicy));
-CORBA::TypeCode_ptr PortableServer::POA::_tc_WrongPolicy = &_tc_TAO_tc_PortableServer_POA_WrongPolicy;
-
-CORBA::Boolean PortableServer::POA::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/POA:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::POA::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/POA:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_POA[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 35, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f50), ACE_NTOHL (0x4f413a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/PortableServer/POA:1.0
- 4, ACE_NTOHL (0x504f4100), // name = POA,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_POA (CORBA::tk_objref,
- sizeof (_oc_PortableServer_POA),
- (char *) &_oc_PortableServer_POA,
- 0,
- sizeof (PortableServer::POA));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_POA, &_tc_TAO_tc_PortableServer_POA)
-TAO_NAMESPACE_END
-
-PortableServer::Current_ptr PortableServer::Current::_duplicate (PortableServer::Current_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
-
- return obj;
-} // end of _duplicate
-
-PortableServer::Current_ptr PortableServer::Current::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (CORBA::is_nil (obj))
- return PortableServer::Current::_nil ();
- CORBA::Boolean check =
- !obj->_is_a ("IDL:omg.org/PortableServer/Current:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (PortableServer::Current::_nil ());
- if (check)
- return PortableServer::Current::_nil ();
- void *servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant ()->_downcast ("IDL:omg.org/PortableServer/Current:1.0")) == 0)
- // This can only be colocated
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::Current::_nil ());
-
- PortableServer::Current_ptr retval =
- PortableServer::Current::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_Current (
- ACE_reinterpret_cast (POA_PortableServer::Current_ptr,
- servant),
- 0
- ),
- PortableServer::Current::_nil ()
- );
-
- return retval;
-}
-
-// default constructor
-PortableServer::Current::NoContext::NoContext (void)
- : CORBA_UserException (PortableServer::Current::_tc_NoContext)
-{
-}
-
-// destructor - all members are of self managing types
-PortableServer::Current::NoContext::~NoContext (void)
-{
-}
-
-// copy constructor
-PortableServer::Current::NoContext::NoContext (const PortableServer::Current::NoContext &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
-{
-}
-
-// assignment operator
-PortableServer::Current::NoContext&
-PortableServer::Current::NoContext::operator= (const PortableServer::Current::NoContext &_tao_excp)
-{
- this->CORBA_UserException::operator= (_tao_excp);
- return *this;
-}
-
-void PortableServer::Current::NoContext::_raise (void)
-{
- TAO_RAISE(*this);
-}
-
-void PortableServer::Current::NoContext::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
-{
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void PortableServer::Current::NoContext::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (cdr >> *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-// narrow
-PortableServer::Current::NoContext *
-PortableServer::Current::NoContext::_downcast (CORBA::Exception *exc)
-{
- if (!ACE_OS::strcmp ("IDL:omg.org/PortableServer/Current/NoContext:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (PortableServer::Current::NoContext *, exc);
- else
- return 0;
-}
-
-// TAO extension - the _alloc method
-CORBA::Exception *PortableServer::Current::NoContext::_alloc (void)
-{
- CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- PortableServer::Current::NoContext,
- 0);
-
- return retval;
-}
-
-static const CORBA::Long _oc_PortableServer_Current_NoContext[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 49, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f43), ACE_NTOHL (0x75727265), ACE_NTOHL (0x6e742f4e), ACE_NTOHL (0x6f436f6e), ACE_NTOHL (0x74657874), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableServer/Current/NoContext:1.0
- 10, ACE_NTOHL (0x4e6f436f), ACE_NTOHL (0x6e746578), ACE_NTOHL (0x74000000), // name = NoContext
- 0, // member count
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_Current_NoContext
-(CORBA::tk_except, sizeof (_oc_PortableServer_Current_NoContext), (char *)
- &_oc_PortableServer_Current_NoContext, 0, sizeof
- (PortableServer::Current::NoContext));
-CORBA::TypeCode_ptr PortableServer::Current::_tc_NoContext = &_tc_TAO_tc_PortableServer_Current_NoContext;
-
-PortableServer::POA_ptr PortableServer::Current::get_POA (CORBA::Environment &ACE_TRY_ENV)
-{
- ACE_THROW_RETURN (CORBA::MARSHAL (), PortableServer::POA::_nil ());
-}
-
-PortableServer::ObjectId * PortableServer::Current::get_object_id (CORBA::Environment &ACE_TRY_ENV)
-{
- // @@ This doesn't look right at all. - nw.
-
- static TAO_Exception_Data _tao_PortableServer_Current_get_object_id_exceptiondata [] =
- {
- {PortableServer::Current::_tc_NoContext, PortableServer::Current::NoContext::_alloc}
- };
-
- PortableServer::ObjectId *_tao_retval = 0;
-
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
-
- ACE_NEW_RETURN (_tao_retval, PortableServer::ObjectId, _tao_retval);
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "get_object_id",
- 13,
- istub->orb_core ()
- );
-
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (_tao_PortableServer_Current_get_object_id_exceptiondata, 1, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
- }
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> *_tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
-}
-
-CORBA::Boolean PortableServer::Current::_is_a (const CORBA::Char *value, CORBA::Environment &_tao_environment)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (_tao_environment))))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, _tao_environment); // remote call
-}
-
-const char* PortableServer::Current::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/Current:1.0";
-}
-
-static const CORBA::Long _oc_PortableServer_Current[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 31, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f43), ACE_NTOHL (0x75727265), ACE_NTOHL (0x6e743a31), ACE_NTOHL (0x2e3000fd), // repository ID = IDL:PortableServer/Current:1.0
- 8, ACE_NTOHL (0x43757272), ACE_NTOHL (0x656e7400), // name = Current,
-};
-static CORBA::TypeCode _tc_TAO_tc_PortableServer_Current (CORBA::tk_objref, sizeof
- (_oc_PortableServer_Current), (char *) &_oc_PortableServer_Current,
- 0,
- sizeof (PortableServer::Current));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (PortableServer)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_Current, &_tc_TAO_tc_PortableServer_Current)
-TAO_NAMESPACE_END
-
-char *
-PortableServer::ObjectId_to_string (const PortableServer::ObjectId &id)
-{
- return TAO_POA::ObjectId_to_string (id);
-}
-
-CORBA::WChar *
-PortableServer::ObjectId_to_wstring (const PortableServer::ObjectId &id)
-{
- return TAO_POA::ObjectId_to_wstring (id);
-}
-
-PortableServer::ObjectId *
-PortableServer::string_to_ObjectId (const char *id)
-{
- return TAO_POA::string_to_ObjectId (id);
-}
-
-PortableServer::ObjectId *
-PortableServer::wstring_to_ObjectId (const CORBA::WChar *id)
-{
- return TAO_POA::wstring_to_ObjectId (id);
-}
-
-void operator<<= (
- CORBA::Any &_tao_any,
- const PortableServer::ObjectId &_tao_elem
- ) // copying
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_ObjectId,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ObjectId *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_ObjectId,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::ObjectId::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ObjectId *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ObjectId, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::ObjectId *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::ObjectId, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ObjectId,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- PortableServer::ObjectId::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::ObjectId *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ObjectId, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::ObjectId *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::ObjectId, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *(PortableServer::ObjectId *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ObjectId,
- 1,
- ACE_reinterpret_cast (void *, ACE_const_cast (PortableServer::ObjectId *&, _tao_elem)),
- PortableServer::ObjectId::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete ACE_const_cast (PortableServer::ObjectId *&, _tao_elem);
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete ACE_const_cast (PortableServer::ObjectId *&, _tao_elem);
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-void operator<<= (CORBA::Any & _tao_any, PortableServer::ThreadPolicyValue _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_ThreadPolicyValue,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ThreadPolicyValue &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ThreadPolicyValue, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ThreadPolicy_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_ThreadPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::ThreadPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::ThreadPolicy *tmp = ACE_static_cast(PortableServer::ThreadPolicy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ThreadPolicy_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::ThreadPolicy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ThreadPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::ThreadPolicy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ThreadPolicy,
- 1,
- _tao_elem,
- PortableServer::ThreadPolicy::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::ThreadPolicy::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::ThreadPolicy::_nil ();
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::LifespanPolicyValue _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_LifespanPolicyValue,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::LifespanPolicyValue &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_LifespanPolicyValue, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::LifespanPolicy_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_LifespanPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::LifespanPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::LifespanPolicy *tmp = ACE_static_cast(PortableServer::LifespanPolicy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::LifespanPolicy_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::LifespanPolicy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_LifespanPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::LifespanPolicy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_LifespanPolicy,
- 1,
- _tao_elem,
- PortableServer::LifespanPolicy::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::LifespanPolicy::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::LifespanPolicy::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::IdUniquenessPolicyValue _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_IdUniquenessPolicyValue,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::IdUniquenessPolicyValue &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_IdUniquenessPolicyValue, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::IdUniquenessPolicy_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_IdUniquenessPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::IdUniquenessPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::IdUniquenessPolicy *tmp = ACE_static_cast(PortableServer::IdUniquenessPolicy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::IdUniquenessPolicy_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::IdUniquenessPolicy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_IdUniquenessPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::IdUniquenessPolicy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_IdUniquenessPolicy,
- 1,
- _tao_elem,
- PortableServer::IdUniquenessPolicy::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::IdUniquenessPolicy::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::IdUniquenessPolicy::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::IdAssignmentPolicyValue _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_IdAssignmentPolicyValue,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::IdAssignmentPolicyValue &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_IdAssignmentPolicyValue, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::IdAssignmentPolicy_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_IdAssignmentPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::IdAssignmentPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::IdAssignmentPolicy *tmp = ACE_static_cast(PortableServer::IdAssignmentPolicy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::IdAssignmentPolicy_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::IdAssignmentPolicy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_IdAssignmentPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::IdAssignmentPolicy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_IdAssignmentPolicy,
- 1,
- _tao_elem,
- PortableServer::IdAssignmentPolicy::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::IdAssignmentPolicy::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::IdAssignmentPolicy::_nil ();
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ImplicitActivationPolicyValue _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_ImplicitActivationPolicyValue,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ImplicitActivationPolicyValue &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ImplicitActivationPolicyValue, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ImplicitActivationPolicy_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_ImplicitActivationPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::ImplicitActivationPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::ImplicitActivationPolicy *tmp = ACE_static_cast(PortableServer::ImplicitActivationPolicy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ImplicitActivationPolicy_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::ImplicitActivationPolicy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ImplicitActivationPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::ImplicitActivationPolicy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ImplicitActivationPolicy,
- 1,
- _tao_elem,
- PortableServer::ImplicitActivationPolicy::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::ImplicitActivationPolicy::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::ImplicitActivationPolicy::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ServantRetentionPolicyValue _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_ServantRetentionPolicyValue,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ServantRetentionPolicyValue &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ServantRetentionPolicyValue, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ServantRetentionPolicy_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_ServantRetentionPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::ServantRetentionPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::ServantRetentionPolicy *tmp = ACE_static_cast(PortableServer::ServantRetentionPolicy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ServantRetentionPolicy_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::ServantRetentionPolicy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ServantRetentionPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::ServantRetentionPolicy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ServantRetentionPolicy,
- 1,
- _tao_elem,
- PortableServer::ServantRetentionPolicy::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::ServantRetentionPolicy::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::ServantRetentionPolicy::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::RequestProcessingPolicyValue _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::_tc_RequestProcessingPolicyValue,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::RequestProcessingPolicyValue &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_RequestProcessingPolicyValue, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::RequestProcessingPolicy_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_RequestProcessingPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::RequestProcessingPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::RequestProcessingPolicy *tmp = ACE_static_cast(PortableServer::RequestProcessingPolicy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::RequestProcessingPolicy_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::RequestProcessingPolicy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_RequestProcessingPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::RequestProcessingPolicy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_RequestProcessingPolicy,
- 1,
- _tao_elem,
- PortableServer::RequestProcessingPolicy::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::RequestProcessingPolicy::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::RequestProcessingPolicy::_nil ();
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::AdapterAlreadyExists &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_AdapterAlreadyExists,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::AdapterAlreadyExists::_tao_any_destructor (void *x)
-{
- PortableServer::POA::AdapterAlreadyExists *tmp = ACE_static_cast(PortableServer::POA::AdapterAlreadyExists*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::AdapterAlreadyExists *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_AdapterAlreadyExists,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::AdapterAlreadyExists::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::AdapterAlreadyExists *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_AdapterAlreadyExists, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::AdapterAlreadyExists *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterAlreadyExists, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_AdapterAlreadyExists,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- PortableServer::POA::AdapterAlreadyExists::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::AdapterAlreadyExists *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_AdapterAlreadyExists, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::AdapterAlreadyExists *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterAlreadyExists, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *(PortableServer::POA::AdapterAlreadyExists *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_AdapterAlreadyExists,
- 1,
- ACE_reinterpret_cast (void *, ACE_const_cast (PortableServer::POA::AdapterAlreadyExists *&, _tao_elem)),
- PortableServer::POA::AdapterAlreadyExists::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete ACE_const_cast (PortableServer::POA::AdapterAlreadyExists *&, _tao_elem);
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete ACE_const_cast (PortableServer::POA::AdapterAlreadyExists *&, _tao_elem);
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::AdapterInactive &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_AdapterInactive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::AdapterInactive::_tao_any_destructor (void *x)
-{
- PortableServer::POA::AdapterInactive *tmp = ACE_static_cast(PortableServer::POA::AdapterInactive*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::AdapterInactive *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_AdapterInactive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::AdapterInactive::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::AdapterInactive *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_AdapterInactive, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::AdapterInactive *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterInactive, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_AdapterInactive,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- PortableServer::POA::AdapterInactive::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::AdapterInactive *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_AdapterInactive, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::AdapterInactive *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterInactive, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *(PortableServer::POA::AdapterInactive *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_AdapterInactive,
- 1,
- ACE_reinterpret_cast (void *, ACE_const_cast (PortableServer::POA::AdapterInactive *&, _tao_elem)),
- PortableServer::POA::AdapterInactive::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete ACE_const_cast (PortableServer::POA::AdapterInactive *&, _tao_elem);
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete ACE_const_cast (PortableServer::POA::AdapterInactive *&, _tao_elem);
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::AdapterNonExistent &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_AdapterNonExistent,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::AdapterNonExistent::_tao_any_destructor (void *x)
-{
- PortableServer::POA::AdapterNonExistent *tmp = ACE_static_cast(PortableServer::POA::AdapterNonExistent*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::AdapterNonExistent *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_AdapterNonExistent,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::AdapterNonExistent::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::AdapterNonExistent *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_AdapterNonExistent, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::AdapterNonExistent *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterNonExistent, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_AdapterNonExistent,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- PortableServer::POA::AdapterNonExistent::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::AdapterNonExistent *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_AdapterNonExistent, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::AdapterNonExistent *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::AdapterNonExistent, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *(PortableServer::POA::AdapterNonExistent *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_AdapterNonExistent,
- 1,
- ACE_reinterpret_cast (void *, ACE_const_cast (PortableServer::POA::AdapterNonExistent *&, _tao_elem)),
- PortableServer::POA::AdapterNonExistent::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete ACE_const_cast (PortableServer::POA::AdapterNonExistent *&, _tao_elem);
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete ACE_const_cast (PortableServer::POA::AdapterNonExistent *&, _tao_elem);
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::InvalidPolicy &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_InvalidPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::InvalidPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::POA::InvalidPolicy *tmp = ACE_static_cast(PortableServer::POA::InvalidPolicy*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::InvalidPolicy *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_InvalidPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::InvalidPolicy::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::InvalidPolicy *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_InvalidPolicy, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::InvalidPolicy *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::InvalidPolicy, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_InvalidPolicy,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- PortableServer::POA::InvalidPolicy::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::InvalidPolicy *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_InvalidPolicy, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::InvalidPolicy *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::InvalidPolicy, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *(PortableServer::POA::InvalidPolicy *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_InvalidPolicy,
- 1,
- ACE_reinterpret_cast (void *, ACE_const_cast (PortableServer::POA::InvalidPolicy *&, _tao_elem)),
- PortableServer::POA::InvalidPolicy::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete ACE_const_cast (PortableServer::POA::InvalidPolicy *&, _tao_elem);
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete ACE_const_cast (PortableServer::POA::InvalidPolicy *&, _tao_elem);
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::NoServant &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_NoServant,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::NoServant::_tao_any_destructor (void *x)
-{
- PortableServer::POA::NoServant *tmp = ACE_static_cast(PortableServer::POA::NoServant*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::NoServant *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_NoServant,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::NoServant::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::NoServant *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_NoServant, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::NoServant *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::NoServant, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_NoServant,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- PortableServer::POA::NoServant::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::NoServant *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_NoServant, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::NoServant *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, PortableServer::POA::NoServant, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *(PortableServer::POA::NoServant *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_NoServant,
- 1,
- ACE_reinterpret_cast (void *, ACE_const_cast (PortableServer::POA::NoServant *&, _tao_elem)),
- PortableServer::POA::NoServant::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete ACE_const_cast (PortableServer::POA::NoServant *&, _tao_elem);
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete ACE_const_cast (PortableServer::POA::NoServant *&, _tao_elem);
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ObjectAlreadyActive &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ObjectAlreadyActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::ObjectAlreadyActive::_tao_any_destructor (void *x)
-{
- PortableServer::POA::ObjectAlreadyActive *tmp = ACE_static_cast(PortableServer::POA::ObjectAlreadyActive*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ObjectAlreadyActive *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ObjectAlreadyActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::ObjectAlreadyActive::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ObjectAlreadyActive *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::POA::ObjectAlreadyActive *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::ObjectAlreadyActive *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_ObjectAlreadyActive, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::ObjectAlreadyActive *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::POA::ObjectAlreadyActive *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::POA::ObjectAlreadyActive, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_ObjectAlreadyActive,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::POA::ObjectAlreadyActive::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ObjectNotActive &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ObjectNotActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::ObjectNotActive::_tao_any_destructor (void *x)
-{
- PortableServer::POA::ObjectNotActive *tmp = ACE_static_cast(PortableServer::POA::ObjectNotActive*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ObjectNotActive *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ObjectNotActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::ObjectNotActive::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ObjectNotActive *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::POA::ObjectNotActive *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::ObjectNotActive *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_ObjectNotActive, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::ObjectNotActive *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::POA::ObjectNotActive *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::POA::ObjectNotActive, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_ObjectNotActive,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::POA::ObjectNotActive::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ServantAlreadyActive &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ServantAlreadyActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::ServantAlreadyActive::_tao_any_destructor (void *x)
-{
- PortableServer::POA::ServantAlreadyActive *tmp = ACE_static_cast(PortableServer::POA::ServantAlreadyActive*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ServantAlreadyActive *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ServantAlreadyActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::ServantAlreadyActive::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ServantAlreadyActive *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::POA::ServantAlreadyActive *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::ServantAlreadyActive *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_ServantAlreadyActive, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::ServantAlreadyActive *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::POA::ServantAlreadyActive *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::POA::ServantAlreadyActive, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_ServantAlreadyActive,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::POA::ServantAlreadyActive::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::ServantNotActive &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ServantNotActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::ServantNotActive::_tao_any_destructor (void *x)
-{
- PortableServer::POA::ServantNotActive *tmp = ACE_static_cast(PortableServer::POA::ServantNotActive*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::ServantNotActive *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_ServantNotActive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::ServantNotActive::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::ServantNotActive *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::POA::ServantNotActive *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::ServantNotActive *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_ServantNotActive, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::ServantNotActive *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::POA::ServantNotActive *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::POA::ServantNotActive, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_ServantNotActive,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::POA::ServantNotActive::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::WrongAdapter &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_WrongAdapter,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::WrongAdapter::_tao_any_destructor (void *x)
-{
- PortableServer::POA::WrongAdapter *tmp = ACE_static_cast(PortableServer::POA::WrongAdapter*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::WrongAdapter *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_WrongAdapter,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::WrongAdapter::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::WrongAdapter *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::POA::WrongAdapter *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::WrongAdapter *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_WrongAdapter, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::WrongAdapter *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::POA::WrongAdapter *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::POA::WrongAdapter, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_WrongAdapter,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::POA::WrongAdapter::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POA::WrongPolicy &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_WrongPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POA::WrongPolicy::_tao_any_destructor (void *x)
-{
- PortableServer::POA::WrongPolicy *tmp = ACE_static_cast(PortableServer::POA::WrongPolicy*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA::WrongPolicy *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POA::_tc_WrongPolicy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POA::WrongPolicy::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA::WrongPolicy *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::POA::WrongPolicy *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POA::WrongPolicy *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POA::_tc_WrongPolicy, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POA::WrongPolicy *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::POA::WrongPolicy *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::POA::WrongPolicy, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POA::_tc_WrongPolicy,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::POA::WrongPolicy::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::Current::NoContext &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::Current::_tc_NoContext,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::Current::NoContext::_tao_any_destructor (void *x)
-{
- PortableServer::Current::NoContext *tmp = ACE_static_cast(PortableServer::Current::NoContext*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::Current::NoContext *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::Current::_tc_NoContext,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::Current::NoContext::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::Current::NoContext *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::Current::NoContext *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::Current::NoContext *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::Current::_tc_NoContext, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::Current::NoContext *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::Current::NoContext *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::Current::NoContext, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::Current::_tc_NoContext,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::Current::NoContext::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::Current_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_Current,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::Current::_tao_any_destructor (void *x)
-{
- PortableServer::Current *tmp = ACE_static_cast(PortableServer::Current*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::Current_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::Current::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_Current, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::Current::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_Current,
- 1,
- _tao_elem,
- PortableServer::Current::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::Current::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::Current::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POAManager_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_POAManager,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::POAManager::_tao_any_destructor (void *x)
-{
- PortableServer::POAManager *tmp = ACE_static_cast(PortableServer::POAManager*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POAManager_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::POAManager::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_POAManager, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::POAManager::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_POAManager,
- 1,
- _tao_elem,
- PortableServer::POAManager::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::POAManager::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::POAManager::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POAManager::State _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POAManager::_tc_State,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POAManager::State &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POAManager::_tc_State, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const PortableServer::POAManager::AdapterInactive &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- PortableServer::POAManager::_tc_AdapterInactive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void PortableServer::POAManager::AdapterInactive::_tao_any_destructor (void *x)
-{
- PortableServer::POAManager::AdapterInactive *tmp = ACE_static_cast(PortableServer::POAManager::AdapterInactive*,x);
- delete tmp;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POAManager::AdapterInactive *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- PortableServer::POAManager::_tc_AdapterInactive,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- PortableServer::POAManager::AdapterInactive::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POAManager::AdapterInactive *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const PortableServer::POAManager::AdapterInactive *&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::POAManager::AdapterInactive *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::POAManager::_tc_AdapterInactive, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (PortableServer::POAManager::AdapterInactive *)_tao_any.value ();
- return 1;
- }
- else
- {
- PortableServer::POAManager::AdapterInactive *tmp;
- ACE_NEW_RETURN (tmp, PortableServer::POAManager::AdapterInactive, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::POAManager::_tc_AdapterInactive,
- 1,
- ACE_reinterpret_cast (void *, tmp),
- PortableServer::POAManager::AdapterInactive::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::AdapterActivator_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_AdapterActivator,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::AdapterActivator::_tao_any_destructor (void *x)
-{
- PortableServer::AdapterActivator *tmp = ACE_static_cast(PortableServer::AdapterActivator*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::AdapterActivator_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::AdapterActivator::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_AdapterActivator, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::AdapterActivator::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_AdapterActivator,
- 1,
- _tao_elem,
- PortableServer::AdapterActivator::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::AdapterActivator::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::AdapterActivator::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ServantLocator_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_ServantLocator,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::ServantLocator::_tao_any_destructor (void *x)
-{
- PortableServer::ServantLocator *tmp = ACE_static_cast(PortableServer::ServantLocator*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ServantLocator_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::ServantLocator::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ServantLocator, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::ServantLocator::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ServantLocator,
- 1,
- _tao_elem,
- PortableServer::ServantLocator::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::ServantLocator::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::ServantLocator::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ServantManager_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_ServantManager,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::ServantManager::_tao_any_destructor (void *x)
-{
- PortableServer::ServantManager *tmp = ACE_static_cast(PortableServer::ServantManager*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ServantManager_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::ServantManager::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ServantManager, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::ServantManager::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ServantManager,
- 1,
- _tao_elem,
- PortableServer::ServantManager::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::ServantManager::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::ServantManager::_nil ();
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::ServantActivator_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_ServantActivator,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::ServantActivator::_tao_any_destructor (void *x)
-{
- PortableServer::ServantActivator *tmp = ACE_static_cast(PortableServer::ServantActivator*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ServantActivator_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::ServantActivator::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_ServantActivator, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::ServantActivator::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_ServantActivator,
- 1,
- _tao_elem,
- PortableServer::ServantActivator::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::ServantActivator::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::ServantActivator::_nil ();
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-void operator<<= (CORBA::Any &_tao_any, PortableServer::POA_ptr _tao_elem)
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- PortableServer::_tc_POA,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void PortableServer::POA::_tao_any_destructor (void *x)
-{
- PortableServer::POA *tmp = ACE_static_cast(PortableServer::POA*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::POA_ptr &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- _tao_elem = PortableServer::POA::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (PortableServer::_tc_POA, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = PortableServer::POA::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- PortableServer::_tc_POA,
- 1,
- _tao_elem,
- PortableServer::POA::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = PortableServer::POA::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = PortableServer::POA::_nil ();
- return 0;
-}
diff --git a/TAO/tao/POAC.h b/TAO/tao/POAC.h
deleted file mode 100644
index a63d3e7f196..00000000000
--- a/TAO/tao/POAC.h
+++ /dev/null
@@ -1,2555 +0,0 @@
-// $Id$
-//
-// ============================================================================
-//
-// = LIBRARY
-// TAO
-//
-// = FILENAME
-// POAC.h
-//
-// = DESCRIPTION
-//
-// POA stubs. This code generated by the The ACE ORB (TAO) IDL
-// Compiler and is not meant to be read.
-//
-// ============================================================================
-
-#ifndef TAO_IDL_POAC_H
-#define TAO_IDL_POAC_H
-#include "ace/pre.h"
-
-#include "tao/PolicyC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CurrentC.h"
-#include "tao/Exception.h"
-#include "tao/Environment.h"
-#include "tao/CDR.h"
-
-#if defined (TAO_EXPORT_MACRO)
-#undef TAO_EXPORT_MACRO
-#endif
-#define TAO_EXPORT_MACRO TAO_Export
-#if defined(_MSC_VER)
-#if (_MSC_VER >= 1200)
-#pragma warning(push)
-#endif /* _MSC_VER >= 1200 */
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-class TAO_ServantBase;
-class TAO_ServantBase_var;
-class TAO_RefCountServantBase;
-class TAO_Local_ServantBase;
-class TAO_Locality_Constrained_ServantBase;
-class TAO_DynamicImplementation;
-
-TAO_NAMESPACE PortableServer{
-
- typedef TAO_ServantBase ServantBase;
- typedef TAO_ServantBase_var ServantBase_var;
- typedef TAO_RefCountServantBase RefCountServantBase;
- typedef ServantBase *Servant;
-
- typedef TAO_Local_ServantBase LocalServantBase;
- typedef TAO_Locality_Constrained_ServantBase LocalityConstrainedServantBase;
- typedef TAO_DynamicImplementation DynamicImplementation;
-
-
- class POA;
-
-#if !defined (_PORTABLESERVER_POA___PTR_CH_)
-#define _PORTABLESERVER_POA___PTR_CH_
-
- typedef POA *POA_ptr;
-
-#endif /* end #if !defined */
-
-
-#if !defined (_PORTABLESERVER_POA___VAR_CH_)
-#define _PORTABLESERVER_POA___VAR_CH_
-
- class TAO_Export POA_var : public TAO_Base_var
- {
- public:
- POA_var (void); // default constructor
- POA_var (POA_ptr);
- POA_var (const POA_var &); // copy constructor
- ~POA_var (void); // destructor
-
- POA_var &operator= (POA_ptr);
- POA_var &operator= (const POA_var &);
- POA_ptr operator-> (void) const;
-
- operator const POA_ptr &() const;
- operator POA_ptr &();
- // in, inout, out, _retn
- POA_ptr in (void) const;
- POA_ptr &inout (void);
- POA_ptr &out (void);
- POA_ptr _retn (void);
- POA_ptr ptr (void) const;
-
- private:
- POA_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- POA_var (const TAO_Base_var &rhs);
- POA_var &operator= (const TAO_Base_var &rhs);
- };
-
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA___OUT_CH_)
-#define _PORTABLESERVER_POA___OUT_CH_
-
- class TAO_Export POA_out
- {
- public:
- POA_out (POA_ptr &);
- POA_out (POA_var &);
- POA_out (const POA_out &);
- POA_out &operator= (POA_out &);
- POA_out &operator= (const POA_var &);
- POA_out &operator= (POA_ptr);
- operator POA_ptr &();
- POA_ptr &ptr (void);
- POA_ptr operator-> (void);
-
- private:
- POA_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET_CH_)
-#define _PORTABLESERVER__TAO_SEQ_OCTET_CH_
-
- // *************************************************************
- // _tao_seq_Octet
- // *************************************************************
-
- typedef TAO_Unbounded_Sequence<CORBA::Octet > _tao_seq_Octet;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc__tao_seq_Octet;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET___VAR_CH_)
-#define _PORTABLESERVER__TAO_SEQ_OCTET___VAR_CH_
-
- // *************************************************************
- // class PortableServer::_tao_seq_Octet_var
- // *************************************************************
-
- class TAO_Export _tao_seq_Octet_var
- {
- public:
- _tao_seq_Octet_var (void); // default constructor
- _tao_seq_Octet_var (_tao_seq_Octet *);
- _tao_seq_Octet_var (const _tao_seq_Octet_var &); // copy constructor
- ~_tao_seq_Octet_var (void); // destructor
-
- _tao_seq_Octet_var &operator= (_tao_seq_Octet *);
- _tao_seq_Octet_var &operator= (const _tao_seq_Octet_var &);
- _tao_seq_Octet *operator-> (void);
- const _tao_seq_Octet *operator-> (void) const;
-
- operator const _tao_seq_Octet &() const;
- operator _tao_seq_Octet &();
- operator _tao_seq_Octet &() const;
- CORBA::Octet &operator[] (CORBA::ULong slot);
- // in, inout, out, _retn
- const _tao_seq_Octet &in (void) const;
- _tao_seq_Octet &inout (void);
- _tao_seq_Octet *&out (void);
- _tao_seq_Octet *_retn (void);
- _tao_seq_Octet *ptr (void) const;
-
- private:
- _tao_seq_Octet *ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET___OUT_CH_)
-#define _PORTABLESERVER__TAO_SEQ_OCTET___OUT_CH_
-
- class TAO_Export _tao_seq_Octet_out
- {
- public:
- _tao_seq_Octet_out (_tao_seq_Octet *&);
- _tao_seq_Octet_out (_tao_seq_Octet_var &);
- _tao_seq_Octet_out (const _tao_seq_Octet_out &);
- _tao_seq_Octet_out &operator= (_tao_seq_Octet_out &);
- _tao_seq_Octet_out &operator= (_tao_seq_Octet *);
- operator _tao_seq_Octet *&();
- _tao_seq_Octet *&ptr (void);
- _tao_seq_Octet *operator-> (void);
- CORBA::Octet &operator[] (CORBA::ULong slot);
-
- private:
- _tao_seq_Octet *&ptr_;
- // assignment from T_var not allowed
- void operator= (const _tao_seq_Octet_var &);
- };
-
-#endif /* end #if !defined */
-
- typedef _tao_seq_Octet ObjectId;
- typedef _tao_seq_Octet_var ObjectId_var;
- typedef _tao_seq_Octet_out ObjectId_out;
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ObjectId;
-
-#if (TAO_HAS_MINIMUM_CORBA == 0)
-
-#if !defined (_PORTABLESERVER_FORWARDREQUEST_CH_)
-#define _PORTABLESERVER_FORWARDREQUEST_CH_
-
- class TAO_Export ForwardRequest : public CORBA_UserException
- {
- public:
- ForwardRequest (void); // default ctor
- ForwardRequest (const ForwardRequest &); // copy ctor
- ~ForwardRequest (void); // dtor
- ForwardRequest &operator= (const ForwardRequest &);
-
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static ForwardRequest *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- ForwardRequest(
- const CORBA::Object_ptr _tao_forward_reference
- );
-
- CORBA::Object_var forward_reference;
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::ForwardRequest
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ForwardRequest;
-
-
-#endif /* end #if !defined */
-
-#endif /* TAO_HAS_MINIMUM_CORBA */
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong THREAD_POLICY_ID;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong LIFESPAN_POLICY_ID;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong ID_UNIQUENESS_POLICY_ID;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong ID_ASSIGNMENT_POLICY_ID;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong IMPLICIT_ACTIVATION_POLICY_ID;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong SERVANT_RETENTION_POLICY_ID;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong REQUEST_PROCESSING_POLICY_ID;
-
- enum ThreadPolicyValue
- {
- ORB_CTRL_MODEL,
- SINGLE_THREAD_MODEL
- };
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- typedef ThreadPolicyValue &ThreadPolicyValue_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ThreadPolicyValue;
-
-
-#if !defined (_PORTABLESERVER_THREADPOLICY___PTR_CH_)
-#define _PORTABLESERVER_THREADPOLICY___PTR_CH_
-
- class ThreadPolicy;
- typedef ThreadPolicy *ThreadPolicy_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_THREADPOLICY___VAR_CH_)
-#define _PORTABLESERVER_THREADPOLICY___VAR_CH_
-
- class TAO_Export ThreadPolicy_var : public TAO_Base_var
- {
- public:
- ThreadPolicy_var (void); // default constructor
- ThreadPolicy_var (ThreadPolicy_ptr);
- ThreadPolicy_var (const ThreadPolicy_var &); // copy constructor
- ~ThreadPolicy_var (void); // destructor
-
- ThreadPolicy_var &operator= (ThreadPolicy_ptr);
- ThreadPolicy_var &operator= (const ThreadPolicy_var &);
- ThreadPolicy_ptr operator-> (void) const;
-
- operator const ThreadPolicy_ptr &() const;
- operator ThreadPolicy_ptr &();
- // in, inout, out, _retn
- ThreadPolicy_ptr in (void) const;
- ThreadPolicy_ptr &inout (void);
- ThreadPolicy_ptr &out (void);
- ThreadPolicy_ptr _retn (void);
- ThreadPolicy_ptr ptr (void) const;
-
- private:
- ThreadPolicy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- ThreadPolicy_var (const TAO_Base_var &rhs);
- ThreadPolicy_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_THREADPOLICY___OUT_CH_)
-#define _PORTABLESERVER_THREADPOLICY___OUT_CH_
-
- class TAO_Export ThreadPolicy_out
- {
- public:
- ThreadPolicy_out (ThreadPolicy_ptr &);
- ThreadPolicy_out (ThreadPolicy_var &);
- ThreadPolicy_out (const ThreadPolicy_out &);
- ThreadPolicy_out &operator= (ThreadPolicy_out &);
- ThreadPolicy_out &operator= (const ThreadPolicy_var &);
- ThreadPolicy_out &operator= (ThreadPolicy_ptr);
- operator ThreadPolicy_ptr &();
- ThreadPolicy_ptr &ptr (void);
- ThreadPolicy_ptr operator-> (void);
-
- private:
- ThreadPolicy_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_THREADPOLICY_CH_)
-#define _PORTABLESERVER_THREADPOLICY_CH_
-
- class TAO_Export ThreadPolicy: public virtual CORBA::Policy
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef ThreadPolicy_ptr _ptr_type;
- typedef ThreadPolicy_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static ThreadPolicy_ptr _duplicate (ThreadPolicy_ptr obj);
- static ThreadPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static ThreadPolicy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual ThreadPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#else
- virtual ThreadPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- ThreadPolicy (TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0);
- public:
- virtual ~ThreadPolicy (void);
- private:
- ThreadPolicy (const ThreadPolicy&);
- void operator= (const ThreadPolicy&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ThreadPolicy;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- enum LifespanPolicyValue
- {
- TRANSIENT,
- PERSISTENT
- };
- typedef LifespanPolicyValue &LifespanPolicyValue_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_LifespanPolicyValue;
-
-
-#if !defined (_PORTABLESERVER_LIFESPANPOLICY___PTR_CH_)
-#define _PORTABLESERVER_LIFESPANPOLICY___PTR_CH_
-
- class LifespanPolicy;
- typedef LifespanPolicy *LifespanPolicy_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_LIFESPANPOLICY___VAR_CH_)
-#define _PORTABLESERVER_LIFESPANPOLICY___VAR_CH_
-
- class TAO_Export LifespanPolicy_var : public TAO_Base_var
- {
- public:
- LifespanPolicy_var (void); // default constructor
- LifespanPolicy_var (LifespanPolicy_ptr);
- LifespanPolicy_var (const LifespanPolicy_var &); // copy constructor
- ~LifespanPolicy_var (void); // destructor
-
- LifespanPolicy_var &operator= (LifespanPolicy_ptr);
- LifespanPolicy_var &operator= (const LifespanPolicy_var &);
- LifespanPolicy_ptr operator-> (void) const;
-
- operator const LifespanPolicy_ptr &() const;
- operator LifespanPolicy_ptr &();
- // in, inout, out, _retn
- LifespanPolicy_ptr in (void) const;
- LifespanPolicy_ptr &inout (void);
- LifespanPolicy_ptr &out (void);
- LifespanPolicy_ptr _retn (void);
- LifespanPolicy_ptr ptr (void) const;
-
- private:
- LifespanPolicy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- LifespanPolicy_var (const TAO_Base_var &rhs);
- LifespanPolicy_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_LIFESPANPOLICY___OUT_CH_)
-#define _PORTABLESERVER_LIFESPANPOLICY___OUT_CH_
-
- class TAO_Export LifespanPolicy_out
- {
- public:
- LifespanPolicy_out (LifespanPolicy_ptr &);
- LifespanPolicy_out (LifespanPolicy_var &);
- LifespanPolicy_out (const LifespanPolicy_out &);
- LifespanPolicy_out &operator= (LifespanPolicy_out &);
- LifespanPolicy_out &operator= (const LifespanPolicy_var &);
- LifespanPolicy_out &operator= (LifespanPolicy_ptr);
- operator LifespanPolicy_ptr &();
- LifespanPolicy_ptr &ptr (void);
- LifespanPolicy_ptr operator-> (void);
-
- private:
- LifespanPolicy_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_LIFESPANPOLICY_CH_)
-#define _PORTABLESERVER_LIFESPANPOLICY_CH_
-
- class TAO_Export LifespanPolicy: public virtual CORBA::Policy
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef LifespanPolicy_ptr _ptr_type;
- typedef LifespanPolicy_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static LifespanPolicy_ptr _duplicate (LifespanPolicy_ptr obj);
- static LifespanPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static LifespanPolicy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual LifespanPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#else
- virtual LifespanPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- LifespanPolicy (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~LifespanPolicy (void);
- private:
- LifespanPolicy (const LifespanPolicy&);
- void operator= (const LifespanPolicy&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_LifespanPolicy;
-
- enum IdUniquenessPolicyValue
- {
- UNIQUE_ID,
- MULTIPLE_ID
- };
- typedef IdUniquenessPolicyValue &IdUniquenessPolicyValue_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IdUniquenessPolicyValue;
-
-
-#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___PTR_CH_)
-#define _PORTABLESERVER_IDUNIQUENESSPOLICY___PTR_CH_
-
- class IdUniquenessPolicy;
- typedef IdUniquenessPolicy *IdUniquenessPolicy_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CH_)
-#define _PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CH_
-
- class TAO_Export IdUniquenessPolicy_var : public TAO_Base_var
- {
- public:
- IdUniquenessPolicy_var (void); // default constructor
- IdUniquenessPolicy_var (IdUniquenessPolicy_ptr);
- IdUniquenessPolicy_var (const IdUniquenessPolicy_var &); // copy constructor
- ~IdUniquenessPolicy_var (void); // destructor
-
- IdUniquenessPolicy_var &operator= (IdUniquenessPolicy_ptr);
- IdUniquenessPolicy_var &operator= (const IdUniquenessPolicy_var &);
- IdUniquenessPolicy_ptr operator-> (void) const;
-
- operator const IdUniquenessPolicy_ptr &() const;
- operator IdUniquenessPolicy_ptr &();
- // in, inout, out, _retn
- IdUniquenessPolicy_ptr in (void) const;
- IdUniquenessPolicy_ptr &inout (void);
- IdUniquenessPolicy_ptr &out (void);
- IdUniquenessPolicy_ptr _retn (void);
- IdUniquenessPolicy_ptr ptr (void) const;
-
- private:
- IdUniquenessPolicy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- IdUniquenessPolicy_var (const TAO_Base_var &rhs);
- IdUniquenessPolicy_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CH_)
-#define _PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CH_
-
- class TAO_Export IdUniquenessPolicy_out
- {
- public:
- IdUniquenessPolicy_out (IdUniquenessPolicy_ptr &);
- IdUniquenessPolicy_out (IdUniquenessPolicy_var &);
- IdUniquenessPolicy_out (const IdUniquenessPolicy_out &);
- IdUniquenessPolicy_out &operator= (IdUniquenessPolicy_out &);
- IdUniquenessPolicy_out &operator= (const IdUniquenessPolicy_var &);
- IdUniquenessPolicy_out &operator= (IdUniquenessPolicy_ptr);
- operator IdUniquenessPolicy_ptr &();
- IdUniquenessPolicy_ptr &ptr (void);
- IdUniquenessPolicy_ptr operator-> (void);
-
- private:
- IdUniquenessPolicy_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY_CH_)
-#define _PORTABLESERVER_IDUNIQUENESSPOLICY_CH_
-
- class TAO_Export IdUniquenessPolicy: public virtual CORBA::Policy
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef IdUniquenessPolicy_ptr _ptr_type;
- typedef IdUniquenessPolicy_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static IdUniquenessPolicy_ptr _duplicate (IdUniquenessPolicy_ptr obj);
- static IdUniquenessPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static IdUniquenessPolicy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual IdUniquenessPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#else
- virtual IdUniquenessPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- IdUniquenessPolicy (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~IdUniquenessPolicy (void);
- private:
- IdUniquenessPolicy (const IdUniquenessPolicy&);
- void operator= (const IdUniquenessPolicy&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IdUniquenessPolicy;
-
- enum IdAssignmentPolicyValue
- {
- USER_ID,
- SYSTEM_ID
- };
- typedef IdAssignmentPolicyValue &IdAssignmentPolicyValue_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IdAssignmentPolicyValue;
-
-
-#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___PTR_CH_)
-#define _PORTABLESERVER_IDASSIGNMENTPOLICY___PTR_CH_
-
- class IdAssignmentPolicy;
- typedef IdAssignmentPolicy *IdAssignmentPolicy_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CH_)
-#define _PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CH_
-
- class TAO_Export IdAssignmentPolicy_var : public TAO_Base_var
- {
- public:
- IdAssignmentPolicy_var (void); // default constructor
- IdAssignmentPolicy_var (IdAssignmentPolicy_ptr);
- IdAssignmentPolicy_var (const IdAssignmentPolicy_var &); // copy constructor
- ~IdAssignmentPolicy_var (void); // destructor
-
- IdAssignmentPolicy_var &operator= (IdAssignmentPolicy_ptr);
- IdAssignmentPolicy_var &operator= (const IdAssignmentPolicy_var &);
- IdAssignmentPolicy_ptr operator-> (void) const;
-
- operator const IdAssignmentPolicy_ptr &() const;
- operator IdAssignmentPolicy_ptr &();
- // in, inout, out, _retn
- IdAssignmentPolicy_ptr in (void) const;
- IdAssignmentPolicy_ptr &inout (void);
- IdAssignmentPolicy_ptr &out (void);
- IdAssignmentPolicy_ptr _retn (void);
- IdAssignmentPolicy_ptr ptr (void) const;
-
- private:
- IdAssignmentPolicy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- IdAssignmentPolicy_var (const TAO_Base_var &rhs);
- IdAssignmentPolicy_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CH_)
-#define _PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CH_
-
- class TAO_Export IdAssignmentPolicy_out
- {
- public:
- IdAssignmentPolicy_out (IdAssignmentPolicy_ptr &);
- IdAssignmentPolicy_out (IdAssignmentPolicy_var &);
- IdAssignmentPolicy_out (const IdAssignmentPolicy_out &);
- IdAssignmentPolicy_out &operator= (IdAssignmentPolicy_out &);
- IdAssignmentPolicy_out &operator= (const IdAssignmentPolicy_var &);
- IdAssignmentPolicy_out &operator= (IdAssignmentPolicy_ptr);
- operator IdAssignmentPolicy_ptr &();
- IdAssignmentPolicy_ptr &ptr (void);
- IdAssignmentPolicy_ptr operator-> (void);
-
- private:
- IdAssignmentPolicy_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY_CH_)
-#define _PORTABLESERVER_IDASSIGNMENTPOLICY_CH_
-
- class TAO_Export IdAssignmentPolicy: public virtual CORBA::Policy
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef IdAssignmentPolicy_ptr _ptr_type;
- typedef IdAssignmentPolicy_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static IdAssignmentPolicy_ptr _duplicate (IdAssignmentPolicy_ptr obj);
- static IdAssignmentPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static IdAssignmentPolicy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual IdAssignmentPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#else
- virtual IdAssignmentPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- IdAssignmentPolicy (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~IdAssignmentPolicy (void);
- private:
- IdAssignmentPolicy (const IdAssignmentPolicy&);
- void operator= (const IdAssignmentPolicy&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IdAssignmentPolicy;
-
- enum ImplicitActivationPolicyValue
- {
- IMPLICIT_ACTIVATION,
- NO_IMPLICIT_ACTIVATION
- };
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- typedef ImplicitActivationPolicyValue &ImplicitActivationPolicyValue_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ImplicitActivationPolicyValue;
-
-
-#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___PTR_CH_)
-#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___PTR_CH_
-
- class ImplicitActivationPolicy;
- typedef ImplicitActivationPolicy *ImplicitActivationPolicy_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CH_)
-#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CH_
-
- class TAO_Export ImplicitActivationPolicy_var : public TAO_Base_var
- {
- public:
- ImplicitActivationPolicy_var (void); // default constructor
- ImplicitActivationPolicy_var (ImplicitActivationPolicy_ptr);
- ImplicitActivationPolicy_var (const ImplicitActivationPolicy_var &); // copy constructor
- ~ImplicitActivationPolicy_var (void); // destructor
-
- ImplicitActivationPolicy_var &operator= (ImplicitActivationPolicy_ptr);
- ImplicitActivationPolicy_var &operator= (const ImplicitActivationPolicy_var &);
- ImplicitActivationPolicy_ptr operator-> (void) const;
-
- operator const ImplicitActivationPolicy_ptr &() const;
- operator ImplicitActivationPolicy_ptr &();
- // in, inout, out, _retn
- ImplicitActivationPolicy_ptr in (void) const;
- ImplicitActivationPolicy_ptr &inout (void);
- ImplicitActivationPolicy_ptr &out (void);
- ImplicitActivationPolicy_ptr _retn (void);
- ImplicitActivationPolicy_ptr ptr (void) const;
-
- private:
- ImplicitActivationPolicy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- ImplicitActivationPolicy_var (const TAO_Base_var &rhs);
- ImplicitActivationPolicy_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CH_)
-#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CH_
-
- class TAO_Export ImplicitActivationPolicy_out
- {
- public:
- ImplicitActivationPolicy_out (ImplicitActivationPolicy_ptr &);
- ImplicitActivationPolicy_out (ImplicitActivationPolicy_var &);
- ImplicitActivationPolicy_out (const ImplicitActivationPolicy_out &);
- ImplicitActivationPolicy_out &operator= (ImplicitActivationPolicy_out &);
- ImplicitActivationPolicy_out &operator= (const ImplicitActivationPolicy_var &);
- ImplicitActivationPolicy_out &operator= (ImplicitActivationPolicy_ptr);
- operator ImplicitActivationPolicy_ptr &();
- ImplicitActivationPolicy_ptr &ptr (void);
- ImplicitActivationPolicy_ptr operator-> (void);
-
- private:
- ImplicitActivationPolicy_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY_CH_)
-#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY_CH_
-
- class TAO_Export ImplicitActivationPolicy: public virtual CORBA::Policy
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef ImplicitActivationPolicy_ptr _ptr_type;
- typedef ImplicitActivationPolicy_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static ImplicitActivationPolicy_ptr _duplicate (ImplicitActivationPolicy_ptr obj);
- static ImplicitActivationPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static ImplicitActivationPolicy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual ImplicitActivationPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#else
- virtual ImplicitActivationPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- ImplicitActivationPolicy (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~ImplicitActivationPolicy (void);
- private:
- ImplicitActivationPolicy (const ImplicitActivationPolicy&);
- void operator= (const ImplicitActivationPolicy&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ImplicitActivationPolicy;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- enum ServantRetentionPolicyValue
- {
- RETAIN,
- NON_RETAIN
- };
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- typedef ServantRetentionPolicyValue &ServantRetentionPolicyValue_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ServantRetentionPolicyValue;
-
-
-#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___PTR_CH_)
-#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___PTR_CH_
-
- class ServantRetentionPolicy;
- typedef ServantRetentionPolicy *ServantRetentionPolicy_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CH_)
-#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CH_
-
- class TAO_Export ServantRetentionPolicy_var : public TAO_Base_var
- {
- public:
- ServantRetentionPolicy_var (void); // default constructor
- ServantRetentionPolicy_var (ServantRetentionPolicy_ptr);
- ServantRetentionPolicy_var (const ServantRetentionPolicy_var &); // copy constructor
- ~ServantRetentionPolicy_var (void); // destructor
-
- ServantRetentionPolicy_var &operator= (ServantRetentionPolicy_ptr);
- ServantRetentionPolicy_var &operator= (const ServantRetentionPolicy_var &);
- ServantRetentionPolicy_ptr operator-> (void) const;
-
- operator const ServantRetentionPolicy_ptr &() const;
- operator ServantRetentionPolicy_ptr &();
- // in, inout, out, _retn
- ServantRetentionPolicy_ptr in (void) const;
- ServantRetentionPolicy_ptr &inout (void);
- ServantRetentionPolicy_ptr &out (void);
- ServantRetentionPolicy_ptr _retn (void);
- ServantRetentionPolicy_ptr ptr (void) const;
-
- private:
- ServantRetentionPolicy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- ServantRetentionPolicy_var (const TAO_Base_var &rhs);
- ServantRetentionPolicy_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CH_)
-#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CH_
-
- class TAO_Export ServantRetentionPolicy_out
- {
- public:
- ServantRetentionPolicy_out (ServantRetentionPolicy_ptr &);
- ServantRetentionPolicy_out (ServantRetentionPolicy_var &);
- ServantRetentionPolicy_out (const ServantRetentionPolicy_out &);
- ServantRetentionPolicy_out &operator= (ServantRetentionPolicy_out &);
- ServantRetentionPolicy_out &operator= (const ServantRetentionPolicy_var &);
- ServantRetentionPolicy_out &operator= (ServantRetentionPolicy_ptr);
- operator ServantRetentionPolicy_ptr &();
- ServantRetentionPolicy_ptr &ptr (void);
- ServantRetentionPolicy_ptr operator-> (void);
-
- private:
- ServantRetentionPolicy_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY_CH_)
-#define _PORTABLESERVER_SERVANTRETENTIONPOLICY_CH_
-
- class TAO_Export ServantRetentionPolicy: public virtual CORBA::Policy
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef ServantRetentionPolicy_ptr _ptr_type;
- typedef ServantRetentionPolicy_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static ServantRetentionPolicy_ptr _duplicate (ServantRetentionPolicy_ptr obj);
- static ServantRetentionPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static ServantRetentionPolicy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual ServantRetentionPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#else
- virtual ServantRetentionPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- ServantRetentionPolicy (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~ServantRetentionPolicy (void);
- private:
- ServantRetentionPolicy (const ServantRetentionPolicy&);
- void operator= (const ServantRetentionPolicy&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ServantRetentionPolicy;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- enum RequestProcessingPolicyValue
- {
- USE_ACTIVE_OBJECT_MAP_ONLY,
- USE_DEFAULT_SERVANT,
- USE_SERVANT_MANAGER
- };
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- typedef RequestProcessingPolicyValue &RequestProcessingPolicyValue_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_RequestProcessingPolicyValue;
-
-
-#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___PTR_CH_)
-#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___PTR_CH_
-
- class RequestProcessingPolicy;
- typedef RequestProcessingPolicy *RequestProcessingPolicy_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CH_)
-#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CH_
-
- class TAO_Export RequestProcessingPolicy_var : public TAO_Base_var
- {
- public:
- RequestProcessingPolicy_var (void); // default constructor
- RequestProcessingPolicy_var (RequestProcessingPolicy_ptr);
- RequestProcessingPolicy_var (const RequestProcessingPolicy_var &); // copy constructor
- ~RequestProcessingPolicy_var (void); // destructor
-
- RequestProcessingPolicy_var &operator= (RequestProcessingPolicy_ptr);
- RequestProcessingPolicy_var &operator= (const RequestProcessingPolicy_var &);
- RequestProcessingPolicy_ptr operator-> (void) const;
-
- operator const RequestProcessingPolicy_ptr &() const;
- operator RequestProcessingPolicy_ptr &();
- // in, inout, out, _retn
- RequestProcessingPolicy_ptr in (void) const;
- RequestProcessingPolicy_ptr &inout (void);
- RequestProcessingPolicy_ptr &out (void);
- RequestProcessingPolicy_ptr _retn (void);
- RequestProcessingPolicy_ptr ptr (void) const;
-
- private:
- RequestProcessingPolicy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- RequestProcessingPolicy_var (const TAO_Base_var &rhs);
- RequestProcessingPolicy_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CH_)
-#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CH_
-
- class TAO_Export RequestProcessingPolicy_out
- {
- public:
- RequestProcessingPolicy_out (RequestProcessingPolicy_ptr &);
- RequestProcessingPolicy_out (RequestProcessingPolicy_var &);
- RequestProcessingPolicy_out (const RequestProcessingPolicy_out &);
- RequestProcessingPolicy_out &operator= (RequestProcessingPolicy_out &);
- RequestProcessingPolicy_out &operator= (const RequestProcessingPolicy_var &);
- RequestProcessingPolicy_out &operator= (RequestProcessingPolicy_ptr);
- operator RequestProcessingPolicy_ptr &();
- RequestProcessingPolicy_ptr &ptr (void);
- RequestProcessingPolicy_ptr operator-> (void);
-
- private:
- RequestProcessingPolicy_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY_CH_)
-#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY_CH_
-
- class TAO_Export RequestProcessingPolicy: public virtual CORBA::Policy
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef RequestProcessingPolicy_ptr _ptr_type;
- typedef RequestProcessingPolicy_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static RequestProcessingPolicy_ptr _duplicate (RequestProcessingPolicy_ptr obj);
- static RequestProcessingPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static RequestProcessingPolicy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual RequestProcessingPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#else
- virtual RequestProcessingPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- RequestProcessingPolicy (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~RequestProcessingPolicy (void);
- private:
- RequestProcessingPolicy (const RequestProcessingPolicy&);
- void operator= (const RequestProcessingPolicy&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_RequestProcessingPolicy;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-#if !defined (_PORTABLESERVER_POAMANAGER___PTR_CH_)
-#define _PORTABLESERVER_POAMANAGER___PTR_CH_
-
- class POAManager;
- typedef POAManager *POAManager_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POAMANAGER___VAR_CH_)
-#define _PORTABLESERVER_POAMANAGER___VAR_CH_
-
- class TAO_Export POAManager_var : public TAO_Base_var
- {
- public:
- POAManager_var (void); // default constructor
- POAManager_var (POAManager_ptr);
- POAManager_var (const POAManager_var &); // copy constructor
- ~POAManager_var (void); // destructor
-
- POAManager_var &operator= (POAManager_ptr);
- POAManager_var &operator= (const POAManager_var &);
- POAManager_ptr operator-> (void) const;
-
- operator const POAManager_ptr &() const;
- operator POAManager_ptr &();
- // in, inout, out, _retn
- POAManager_ptr in (void) const;
- POAManager_ptr &inout (void);
- POAManager_ptr &out (void);
- POAManager_ptr _retn (void);
- POAManager_ptr ptr (void) const;
-
- private:
- POAManager_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- POAManager_var (const TAO_Base_var &rhs);
- POAManager_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POAMANAGER___OUT_CH_)
-#define _PORTABLESERVER_POAMANAGER___OUT_CH_
-
- class TAO_Export POAManager_out
- {
- public:
- POAManager_out (POAManager_ptr &);
- POAManager_out (POAManager_var &);
- POAManager_out (const POAManager_out &);
- POAManager_out &operator= (POAManager_out &);
- POAManager_out &operator= (const POAManager_var &);
- POAManager_out &operator= (POAManager_ptr);
- operator POAManager_ptr &();
- POAManager_ptr &ptr (void);
- POAManager_ptr operator-> (void);
-
- private:
- POAManager_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POAMANAGER_CH_)
-#define _PORTABLESERVER_POAMANAGER_CH_
-
- class TAO_Export POAManager: public virtual ACE_CORBA_1 (Object)
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef POAManager_ptr _ptr_type;
- typedef POAManager_var _var_type;
- #endif /* __GNUC__ */
-
- enum State {
- HOLDING,
- ACTIVE,
- DISCARDING,
- INACTIVE
- };
- static CORBA::TypeCode_ptr _tc_State;
-
- // the static operations
- static POAManager_ptr _duplicate (POAManager_ptr obj);
- static POAManager_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static POAManager_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-
-#if !defined (_PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE_CH_)
-#define _PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE_CH_
-
- class TAO_Export AdapterInactive : public CORBA_UserException
- {
- public:
- AdapterInactive (void); // default ctor
- AdapterInactive (const AdapterInactive &); // copy ctor
- ~AdapterInactive (void); // dtor
- AdapterInactive &operator= (const AdapterInactive &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static AdapterInactive *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
- }; // exception PortableServer::POAManager::AdapterInactive
-
- friend void operator<<= (CORBA::Any &, const AdapterInactive &); // copying version
- friend void operator<<= (CORBA::Any &, AdapterInactive*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterInactive *&);
- static CORBA::TypeCode_ptr _tc_AdapterInactive;
-
-#endif /* end #if !defined */
-
- virtual void activate (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual void hold_requests (CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void discard_requests (CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void deactivate (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual State get_state (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- POAManager (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~POAManager (void);
- private:
- POAManager (const POAManager&);
- void operator= (const POAManager&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_POAManager;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_)
-#define _PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_
-
- class AdapterActivator;
- typedef AdapterActivator *AdapterActivator_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___VAR_CH_)
-#define _PORTABLESERVER_ADAPTERACTIVATOR___VAR_CH_
-
- class TAO_Export AdapterActivator_var : public TAO_Base_var
- {
- public:
- AdapterActivator_var (void); // default constructor
- AdapterActivator_var (AdapterActivator_ptr);
- AdapterActivator_var (const AdapterActivator_var &); // copy constructor
- ~AdapterActivator_var (void); // destructor
-
- AdapterActivator_var &operator= (AdapterActivator_ptr);
- AdapterActivator_var &operator= (const AdapterActivator_var &);
- AdapterActivator_ptr operator-> (void) const;
-
- operator const AdapterActivator_ptr &() const;
- operator AdapterActivator_ptr &();
- // in, inout, out, _retn
- AdapterActivator_ptr in (void) const;
- AdapterActivator_ptr &inout (void);
- AdapterActivator_ptr &out (void);
- AdapterActivator_ptr _retn (void);
- AdapterActivator_ptr ptr (void) const;
-
- private:
- AdapterActivator_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- AdapterActivator_var (const TAO_Base_var &rhs);
- AdapterActivator_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___OUT_CH_)
-#define _PORTABLESERVER_ADAPTERACTIVATOR___OUT_CH_
-
- class TAO_Export AdapterActivator_out
- {
- public:
- AdapterActivator_out (AdapterActivator_ptr &);
- AdapterActivator_out (AdapterActivator_var &);
- AdapterActivator_out (const AdapterActivator_out &);
- AdapterActivator_out &operator= (AdapterActivator_out &);
- AdapterActivator_out &operator= (const AdapterActivator_var &);
- AdapterActivator_out &operator= (AdapterActivator_ptr);
- operator AdapterActivator_ptr &();
- AdapterActivator_ptr &ptr (void);
- AdapterActivator_ptr operator-> (void);
-
- private:
- AdapterActivator_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR_CH_)
-#define _PORTABLESERVER_ADAPTERACTIVATOR_CH_
-
- class TAO_Export AdapterActivator: public virtual ACE_CORBA_1 (Object)
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef AdapterActivator_ptr _ptr_type;
- typedef AdapterActivator_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static AdapterActivator_ptr _duplicate (AdapterActivator_ptr obj);
- static AdapterActivator_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static AdapterActivator_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
- virtual CORBA::Boolean unknown_adapter (POA_ptr parent, const char *name, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- AdapterActivator (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~AdapterActivator (void);
- private:
- AdapterActivator (const AdapterActivator&);
- void operator= (const AdapterActivator&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_AdapterActivator;
-
-
-#if !defined (_PORTABLESERVER_SERVANTMANAGER___PTR_CH_)
-#define _PORTABLESERVER_SERVANTMANAGER___PTR_CH_
-
- class ServantManager;
- typedef ServantManager *ServantManager_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTMANAGER___VAR_CH_)
-#define _PORTABLESERVER_SERVANTMANAGER___VAR_CH_
-
- class TAO_Export ServantManager_var : public TAO_Base_var
- {
- public:
- ServantManager_var (void); // default constructor
- ServantManager_var (ServantManager_ptr);
- ServantManager_var (const ServantManager_var &); // copy constructor
- ~ServantManager_var (void); // destructor
-
- ServantManager_var &operator= (ServantManager_ptr);
- ServantManager_var &operator= (const ServantManager_var &);
- ServantManager_ptr operator-> (void) const;
-
- operator const ServantManager_ptr &() const;
- operator ServantManager_ptr &();
- // in, inout, out, _retn
- ServantManager_ptr in (void) const;
- ServantManager_ptr &inout (void);
- ServantManager_ptr &out (void);
- ServantManager_ptr _retn (void);
- ServantManager_ptr ptr (void) const;
-
- private:
- ServantManager_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- ServantManager_var (const TAO_Base_var &rhs);
- ServantManager_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-
-#if !defined (_PORTABLESERVER_SERVANTMANAGER___OUT_CH_)
-#define _PORTABLESERVER_SERVANTMANAGER___OUT_CH_
-
- class TAO_Export ServantManager_out
- {
- public:
- ServantManager_out (ServantManager_ptr &);
- ServantManager_out (ServantManager_var &);
- ServantManager_out (const ServantManager_out &);
- ServantManager_out &operator= (ServantManager_out &);
- ServantManager_out &operator= (const ServantManager_var &);
- ServantManager_out &operator= (ServantManager_ptr);
- operator ServantManager_ptr &();
- ServantManager_ptr &ptr (void);
- ServantManager_ptr operator-> (void);
-
- private:
- ServantManager_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTMANAGER_CH_)
-#define _PORTABLESERVER_SERVANTMANAGER_CH_
-
- class TAO_Export ServantManager: public virtual ACE_CORBA_1 (Object)
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef ServantManager_ptr _ptr_type;
- typedef ServantManager_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static ServantManager_ptr _duplicate (ServantManager_ptr obj);
- static ServantManager_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static ServantManager_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- ServantManager (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~ServantManager (void);
- private:
- ServantManager (const ServantManager&);
- void operator= (const ServantManager&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ServantManager;
-
-
-#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___PTR_CH_)
-#define _PORTABLESERVER_SERVANTACTIVATOR___PTR_CH_
-
- class ServantActivator;
- typedef ServantActivator *ServantActivator_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___VAR_CH_)
-#define _PORTABLESERVER_SERVANTACTIVATOR___VAR_CH_
-
- class TAO_Export ServantActivator_var : public TAO_Base_var
- {
- public:
- ServantActivator_var (void); // default constructor
- ServantActivator_var (ServantActivator_ptr);
- ServantActivator_var (const ServantActivator_var &); // copy constructor
- ~ServantActivator_var (void); // destructor
-
- ServantActivator_var &operator= (ServantActivator_ptr);
- ServantActivator_var &operator= (const ServantActivator_var &);
- ServantActivator_ptr operator-> (void) const;
-
- operator const ServantActivator_ptr &() const;
- operator ServantActivator_ptr &();
- // in, inout, out, _retn
- ServantActivator_ptr in (void) const;
- ServantActivator_ptr &inout (void);
- ServantActivator_ptr &out (void);
- ServantActivator_ptr _retn (void);
- ServantActivator_ptr ptr (void) const;
-
- private:
- ServantActivator_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- ServantActivator_var (const TAO_Base_var &rhs);
- ServantActivator_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___OUT_CH_)
-#define _PORTABLESERVER_SERVANTACTIVATOR___OUT_CH_
-
- class TAO_Export ServantActivator_out
- {
- public:
- ServantActivator_out (ServantActivator_ptr &);
- ServantActivator_out (ServantActivator_var &);
- ServantActivator_out (const ServantActivator_out &);
- ServantActivator_out &operator= (ServantActivator_out &);
- ServantActivator_out &operator= (const ServantActivator_var &);
- ServantActivator_out &operator= (ServantActivator_ptr);
- operator ServantActivator_ptr &();
- ServantActivator_ptr &ptr (void);
- ServantActivator_ptr operator-> (void);
-
- private:
- ServantActivator_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTACTIVATOR_CH_)
-#define _PORTABLESERVER_SERVANTACTIVATOR_CH_
-
- class TAO_Export ServantActivator: public virtual ServantManager
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef ServantActivator_ptr _ptr_type;
- typedef ServantActivator_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static ServantActivator_ptr _duplicate (ServantActivator_ptr obj);
- static ServantActivator_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static ServantActivator_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
- virtual Servant incarnate (const ObjectId &oid, POA_ptr adapter, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void etherealize (const ObjectId &oid, POA_ptr adapter, Servant serv, CORBA::Boolean cleanup_in_progress, CORBA::Boolean remaining_activations, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- ServantActivator (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~ServantActivator (void);
- private:
- ServantActivator (const ServantActivator&);
- void operator= (const ServantActivator&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ServantActivator;
-
-
-#if !defined (_PORTABLESERVER_SERVANTLOCATOR___PTR_CH_)
-#define _PORTABLESERVER_SERVANTLOCATOR___PTR_CH_
-
- class ServantLocator;
- typedef ServantLocator *ServantLocator_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTLOCATOR___VAR_CH_)
-#define _PORTABLESERVER_SERVANTLOCATOR___VAR_CH_
-
- class TAO_Export ServantLocator_var : public TAO_Base_var
- {
- public:
- ServantLocator_var (void); // default constructor
- ServantLocator_var (ServantLocator_ptr);
- ServantLocator_var (const ServantLocator_var &); // copy constructor
- ~ServantLocator_var (void); // destructor
-
- ServantLocator_var &operator= (ServantLocator_ptr);
- ServantLocator_var &operator= (const ServantLocator_var &);
- ServantLocator_ptr operator-> (void) const;
-
- operator const ServantLocator_ptr &() const;
- operator ServantLocator_ptr &();
- // in, inout, out, _retn
- ServantLocator_ptr in (void) const;
- ServantLocator_ptr &inout (void);
- ServantLocator_ptr &out (void);
- ServantLocator_ptr _retn (void);
- ServantLocator_ptr ptr (void) const;
-
- private:
- ServantLocator_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- ServantLocator_var (const TAO_Base_var &rhs);
- ServantLocator_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTLOCATOR___OUT_CH_)
-#define _PORTABLESERVER_SERVANTLOCATOR___OUT_CH_
-
- class TAO_Export ServantLocator_out
- {
- public:
- ServantLocator_out (ServantLocator_ptr &);
- ServantLocator_out (ServantLocator_var &);
- ServantLocator_out (const ServantLocator_out &);
- ServantLocator_out &operator= (ServantLocator_out &);
- ServantLocator_out &operator= (const ServantLocator_var &);
- ServantLocator_out &operator= (ServantLocator_ptr);
- operator ServantLocator_ptr &();
- ServantLocator_ptr &ptr (void);
- ServantLocator_ptr operator-> (void);
-
- private:
- ServantLocator_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_SERVANTLOCATOR_CH_)
-#define _PORTABLESERVER_SERVANTLOCATOR_CH_
-
- class TAO_Export ServantLocator: public virtual ServantManager
- {
- public:
-
- typedef void *Cookie;
-
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef ServantLocator_ptr _ptr_type;
- typedef ServantLocator_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static ServantLocator_ptr _duplicate (ServantLocator_ptr obj);
- static ServantLocator_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static ServantLocator_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
- virtual Servant preinvoke (const ObjectId &oid, POA_ptr adapter, const char *operation, Cookie & the_cookie, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void postinvoke (const ObjectId &oid, POA_ptr adapter, const char *operation, Cookie the_cookie, Servant the_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- ServantLocator (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~ServantLocator (void);
- private:
- ServantLocator (const ServantLocator&);
- void operator= (const ServantLocator&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ServantLocator;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-#if !defined (_PORTABLESERVER_POA___PTR_CH_)
-#define _PORTABLESERVER_POA___PTR_CH_
-
- class POA;
- typedef POA *POA_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA___VAR_CH_)
-#define _PORTABLESERVER_POA___VAR_CH_
-
- class TAO_Export POA_var : public TAO_Base_var
- {
- public:
- POA_var (void); // default constructor
- POA_var (POA_ptr);
- POA_var (const POA_var &); // copy constructor
- ~POA_var (void); // destructor
-
- POA_var &operator= (POA_ptr);
- POA_var &operator= (const POA_var &);
- POA_ptr operator-> (void) const;
-
- operator const POA_ptr &() const;
- operator POA_ptr &();
- // in, inout, out, _retn
- POA_ptr in (void) const;
- POA_ptr &inout (void);
- POA_ptr &out (void);
- POA_ptr _retn (void);
- POA_ptr ptr (void) const;
-
- private:
- POA_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- POA_var (const TAO_Base_var &rhs);
- POA_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA___OUT_CH_)
-#define _PORTABLESERVER_POA___OUT_CH_
-
- class TAO_Export POA_out
- {
- public:
- POA_out (POA_ptr &);
- POA_out (POA_var &);
- POA_out (const POA_out &);
- POA_out &operator= (POA_out &);
- POA_out &operator= (const POA_var &);
- POA_out &operator= (POA_ptr);
- operator POA_ptr &();
- POA_ptr &ptr (void);
- POA_ptr operator-> (void);
-
- private:
- POA_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_CH_)
-#define _PORTABLESERVER_POA_CH_
-
- class TAO_Export POA : public virtual ACE_CORBA_1 (Object)
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef POA_ptr _ptr_type;
- typedef POA_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static POA_ptr _duplicate (POA_ptr obj);
- static POA_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static POA_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-
-#if !defined (_PORTABLESERVER_POA_ADAPTERALREADYEXISTS___PTR_CH_)
-#define _PORTABLESERVER_POA_ADAPTERALREADYEXISTS___PTR_CH_
-
- class AdapterAlreadyExists;
- typedef AdapterAlreadyExists *AdapterAlreadyExists_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_ADAPTERALREADYEXISTS_CH_)
-#define _PORTABLESERVER_POA_ADAPTERALREADYEXISTS_CH_
-
- class TAO_Export AdapterAlreadyExists : public CORBA_UserException
- {
- public:
- AdapterAlreadyExists (void); // default ctor
- AdapterAlreadyExists (const AdapterAlreadyExists &); // copy ctor
- ~AdapterAlreadyExists (void); // dtor
- AdapterAlreadyExists &operator= (const AdapterAlreadyExists &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static AdapterAlreadyExists *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
- }; // exception PortableServer::POA::AdapterAlreadyExists
-
- friend void operator<<= (CORBA::Any &, const AdapterAlreadyExists &); // copying version
- friend void operator<<= (CORBA::Any &, AdapterAlreadyExists*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterAlreadyExists *&);
- static CORBA::TypeCode_ptr _tc_AdapterAlreadyExists;
-
-#endif /* end #if !defined */
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-#if !defined (_PORTABLESERVER_POA_ADAPTERINACTIVE_CH_)
-#define _PORTABLESERVER_POA_ADAPTERINACTIVE_CH_
-
- class TAO_Export AdapterInactive : public CORBA_UserException
- {
- public:
- AdapterInactive (void); // default ctor
- AdapterInactive (const AdapterInactive &); // copy ctor
- ~AdapterInactive (void); // dtor
- AdapterInactive &operator= (const AdapterInactive &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static AdapterInactive *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::AdapterInactive
-
- friend void operator<<= (CORBA::Any &, const AdapterInactive &); // copying version
- friend void operator<<= (CORBA::Any &, AdapterInactive*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterInactive *&);
- static CORBA::TypeCode_ptr _tc_AdapterInactive;
-
-#endif /* end #if !defined */
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-#if !defined (_PORTABLESERVER_POA_ADAPTERNONEXISTENT_CH_)
-#define _PORTABLESERVER_POA_ADAPTERNONEXISTENT_CH_
-
- class TAO_Export AdapterNonExistent : public CORBA_UserException
- {
- public:
- AdapterNonExistent (void); // default ctor
- AdapterNonExistent (const AdapterNonExistent &); // copy ctor
- ~AdapterNonExistent (void); // dtor
- AdapterNonExistent &operator= (const AdapterNonExistent &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static AdapterNonExistent *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::AdapterNonExistent
-
- friend void operator<<= (CORBA::Any &, const AdapterNonExistent &); // copying version
- friend void operator<<= (CORBA::Any &, AdapterNonExistent*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterNonExistent *&);
- static CORBA::TypeCode_ptr _tc_AdapterNonExistent;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_INVALIDPOLICY_CH_)
-#define _PORTABLESERVER_POA_INVALIDPOLICY_CH_
-
- class TAO_Export InvalidPolicy : public CORBA_UserException
- {
- public:
- InvalidPolicy (void); // default ctor
- InvalidPolicy (const InvalidPolicy &); // copy ctor
- ~InvalidPolicy (void); // dtor
- InvalidPolicy &operator= (const InvalidPolicy &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static InvalidPolicy *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- InvalidPolicy(
- CORBA::UShort _tao_index
- );
-
- CORBA::UShort index;
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::InvalidPolicy
-
- friend void operator<<= (CORBA::Any &, const InvalidPolicy &); // copying version
- friend void operator<<= (CORBA::Any &, InvalidPolicy*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, InvalidPolicy *&);
- static CORBA::TypeCode_ptr _tc_InvalidPolicy;
-
-#endif /* end #if !defined */
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-#if !defined (_PORTABLESERVER_POA_NOSERVANT_CH_)
-#define _PORTABLESERVER_POA_NOSERVANT_CH_
-
- class TAO_Export NoServant : public CORBA_UserException
- {
- public:
- NoServant (void); // default ctor
- NoServant (const NoServant &); // copy ctor
- ~NoServant (void); // dtor
- NoServant &operator= (const NoServant &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static NoServant *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::NoServant
-
- friend void operator<<= (CORBA::Any &, const NoServant &); // copying version
- friend void operator<<= (CORBA::Any &, NoServant*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, NoServant *&);
- static CORBA::TypeCode_ptr _tc_NoServant;
-
-#endif /* end #if !defined */
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-#if !defined (_PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_)
-#define _PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_
-
- class TAO_Export ObjectAlreadyActive : public CORBA_UserException
- {
- public:
- ObjectAlreadyActive (void); // default ctor
- ObjectAlreadyActive (const ObjectAlreadyActive &); // copy ctor
- ~ObjectAlreadyActive (void); // dtor
- ObjectAlreadyActive &operator= (const ObjectAlreadyActive &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static ObjectAlreadyActive *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::ObjectAlreadyActive
-
- friend void operator<<= (CORBA::Any &, const ObjectAlreadyActive &); // copying version
- friend void operator<<= (CORBA::Any &, ObjectAlreadyActive*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, ObjectAlreadyActive *&);
- static CORBA::TypeCode_ptr _tc_ObjectAlreadyActive;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_OBJECTNOTACTIVE_CH_)
-#define _PORTABLESERVER_POA_OBJECTNOTACTIVE_CH_
-
- class TAO_Export ObjectNotActive : public CORBA_UserException
- {
- public:
- ObjectNotActive (void); // default ctor
- ObjectNotActive (const ObjectNotActive &); // copy ctor
- ~ObjectNotActive (void); // dtor
- ObjectNotActive &operator= (const ObjectNotActive &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static ObjectNotActive *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::ObjectNotActive
-
- friend void operator<<= (CORBA::Any &, const ObjectNotActive &); // copying version
- friend void operator<<= (CORBA::Any &, ObjectNotActive*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, ObjectNotActive *&);
- static CORBA::TypeCode_ptr _tc_ObjectNotActive;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_SERVANTALREADYACTIVE_CH_)
-#define _PORTABLESERVER_POA_SERVANTALREADYACTIVE_CH_
-
- class TAO_Export ServantAlreadyActive : public CORBA_UserException
- {
- public:
- ServantAlreadyActive (void); // default ctor
- ServantAlreadyActive (const ServantAlreadyActive &); // copy ctor
- ~ServantAlreadyActive (void); // dtor
- ServantAlreadyActive &operator= (const ServantAlreadyActive &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static ServantAlreadyActive *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::ServantAlreadyActive
-
- friend void operator<<= (CORBA::Any &, const ServantAlreadyActive &); // copying version
- friend void operator<<= (CORBA::Any &, ServantAlreadyActive*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, ServantAlreadyActive *&);
- static CORBA::TypeCode_ptr _tc_ServantAlreadyActive;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_SERVANTNOTACTIVE_CH_)
-#define _PORTABLESERVER_POA_SERVANTNOTACTIVE_CH_
-
- class TAO_Export ServantNotActive : public CORBA_UserException
- {
- public:
- ServantNotActive (void); // default ctor
- ServantNotActive (const ServantNotActive &); // copy ctor
- ~ServantNotActive (void); // dtor
- ServantNotActive &operator= (const ServantNotActive &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static ServantNotActive *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::ServantNotActive
-
- friend void operator<<= (CORBA::Any &, const ServantNotActive &); // copying version
- friend void operator<<= (CORBA::Any &, ServantNotActive*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, ServantNotActive *&);
- static CORBA::TypeCode_ptr _tc_ServantNotActive;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_WRONGADAPTER_CH_)
-#define _PORTABLESERVER_POA_WRONGADAPTER_CH_
-
- class TAO_Export WrongAdapter : public CORBA_UserException
- {
- public:
- WrongAdapter (void); // default ctor
- WrongAdapter (const WrongAdapter &); // copy ctor
- ~WrongAdapter (void); // dtor
- WrongAdapter &operator= (const WrongAdapter &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static WrongAdapter *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::WrongAdapter
-
- friend void operator<<= (CORBA::Any &, const WrongAdapter &); // copying version
- friend void operator<<= (CORBA::Any &, WrongAdapter*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, WrongAdapter *&);
- static CORBA::TypeCode_ptr _tc_WrongAdapter;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_POA_WRONGPOLICY_CH_)
-#define _PORTABLESERVER_POA_WRONGPOLICY_CH_
-
- class TAO_Export WrongPolicy : public CORBA_UserException
- {
- public:
- WrongPolicy (void); // default ctor
- WrongPolicy (const WrongPolicy &); // copy ctor
- ~WrongPolicy (void); // dtor
- WrongPolicy &operator= (const WrongPolicy &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static WrongPolicy *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::POA::WrongPolicy
-
- friend void operator<<= (CORBA::Any &, const WrongPolicy &); // copying version
- friend void operator<<= (CORBA::Any &, WrongPolicy*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, WrongPolicy *&);
- static CORBA::TypeCode_ptr _tc_WrongPolicy;
-
-#endif /* end #if !defined */
-
- virtual POA_ptr create_POA (const char *adapter_name, POAManager_ptr a_POAManager, const CORBA::PolicyList &policies, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual POA_ptr find_POA (const char *adapter_name, CORBA::Boolean activate_it, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void destroy (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual ThreadPolicy_ptr create_thread_policy (ThreadPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual LifespanPolicy_ptr create_lifespan_policy (LifespanPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual IdUniquenessPolicy_ptr create_id_uniqueness_policy (IdUniquenessPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual IdAssignmentPolicy_ptr create_id_assignment_policy (IdAssignmentPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual ImplicitActivationPolicy_ptr create_implicit_activation_policy (ImplicitActivationPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual ServantRetentionPolicy_ptr create_servant_retention_policy (ServantRetentionPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual RequestProcessingPolicy_ptr create_request_processing_policy (RequestProcessingPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual char * the_name (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual POA_ptr the_parent (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual POAManager_ptr the_POAManager (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual AdapterActivator_ptr the_activator (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void the_activator(AdapterActivator_ptr the_activator, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual ServantManager_ptr get_servant_manager (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void set_servant_manager (ServantManager_ptr imgr, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual Servant get_servant (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void set_servant (Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual ObjectId * activate_object (Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void activate_object_with_id (const ObjectId &id, Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void deactivate_object (const ObjectId &oid, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Object_ptr create_reference (const char *intf, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Object_ptr create_reference_with_id (const ObjectId &oid, const char *intf, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual ObjectId * servant_to_id (Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Object_ptr servant_to_reference (Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual Servant reference_to_servant (CORBA::Object_ptr reference, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual ObjectId * reference_to_id (CORBA::Object_ptr reference, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual Servant id_to_servant (const ObjectId &oid, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Object_ptr id_to_reference (const ObjectId &oid, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- POA (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~POA (void);
- private:
- POA (const POA&);
- void operator= (const POA&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_POA;
-
-
-#if !defined (_PORTABLESERVER_CURRENT___PTR_CH_)
-#define _PORTABLESERVER_CURRENT___PTR_CH_
-
- class Current;
- typedef Current *Current_ptr;
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_CURRENT___VAR_CH_)
-#define _PORTABLESERVER_CURRENT___VAR_CH_
-
- class TAO_Export Current_var : public TAO_Base_var
- {
- public:
- Current_var (void); // default constructor
- Current_var (Current_ptr);
- Current_var (const Current_var &); // copy constructor
- ~Current_var (void); // destructor
-
- Current_var &operator= (Current_ptr);
- Current_var &operator= (const Current_var &);
- Current_ptr operator-> (void) const;
-
- operator const Current_ptr &() const;
- operator Current_ptr &();
- // in, inout, out, _retn
- Current_ptr in (void) const;
- Current_ptr &inout (void);
- Current_ptr &out (void);
- Current_ptr _retn (void);
- Current_ptr ptr (void) const;
-
- private:
- Current_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- Current_var (const TAO_Base_var &rhs);
- Current_var &operator= (const TAO_Base_var &rhs);
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_CURRENT___OUT_CH_)
-#define _PORTABLESERVER_CURRENT___OUT_CH_
-
- class TAO_Export Current_out
- {
- public:
- Current_out (Current_ptr &);
- Current_out (Current_var &);
- Current_out (const Current_out &);
- Current_out &operator= (Current_out &);
- Current_out &operator= (const Current_var &);
- Current_out &operator= (Current_ptr);
- operator Current_ptr &();
- Current_ptr &ptr (void);
- Current_ptr operator-> (void);
-
- private:
- Current_ptr &ptr_;
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_PORTABLESERVER_CURRENT_CH_)
-#define _PORTABLESERVER_CURRENT_CH_
-
- class TAO_Export Current: public virtual CORBA::Current
- {
- public:
- #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef Current_ptr _ptr_type;
- typedef Current_var _var_type;
- #endif /* __GNUC__ */
-
- // the static operations
- static Current_ptr _duplicate (Current_ptr obj);
- static Current_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- static Current_ptr _nil (void);
-
- static void _tao_any_destructor (void*);
-
-#if !defined (_PORTABLESERVER_CURRENT_NOCONTEXT_CH_)
-#define _PORTABLESERVER_CURRENT_NOCONTEXT_CH_
-
- class TAO_Export NoContext : public CORBA_UserException
- {
- public:
- NoContext (void); // default ctor
- NoContext (const NoContext &); // copy ctor
- ~NoContext (void); // dtor
- NoContext &operator= (const NoContext &);
- virtual void _raise (void);
-
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
-
- static NoContext *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-
- }; // exception PortableServer::Current::NoContext
-
- friend void operator<<= (CORBA::Any &, const NoContext &); // copying version
- friend void operator<<= (CORBA::Any &, NoContext*); // noncopying version
- friend CORBA::Boolean operator>>= (const CORBA::Any &, NoContext *&);
- static CORBA::TypeCode_ptr _tc_NoContext;
-
-#endif /* end #if !defined */
-
- virtual POA_ptr get_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual ObjectId * get_object_id (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- protected:
- Current (
- TAO_Stub *objref = 0,
- TAO_ServantBase *servant = 0,
- CORBA::Boolean collocated = 0
- );
- public:
- virtual ~Current (void);
- private:
- Current (const Current&);
- void operator= (const Current&);
- };
-
-#endif /* end #if !defined */
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_Current;
-
- TAO_NAMESPACE_STORAGE_CLASS char *ObjectId_to_string (const PortableServer::ObjectId &id);
- TAO_NAMESPACE_STORAGE_CLASS CORBA::WChar *ObjectId_to_wstring (const PortableServer::ObjectId &id);
- TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId *string_to_ObjectId (const char *id);
- TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId *wstring_to_ObjectId (const CORBA::WChar *id);
-
-}
-TAO_NAMESPACE_CLOSE
-
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::ObjectId &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ObjectId*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ObjectId *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::ObjectId *&);
-
-#if (TAO_HAS_MINIMUM_CORBA == 0)
-
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::ForwardRequest &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ForwardRequest*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ForwardRequest *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::ForwardRequest *&);
-
-#endif /* TAO_HAS_MINIMUM_CORBA */
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ThreadPolicyValue);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ThreadPolicyValue &);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ThreadPolicy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ThreadPolicy *&);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::LifespanPolicyValue);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::LifespanPolicyValue &);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::LifespanPolicy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::LifespanPolicy *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdUniquenessPolicyValue);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdUniquenessPolicyValue &);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdUniquenessPolicy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdUniquenessPolicy *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdAssignmentPolicyValue);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdAssignmentPolicyValue &);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdAssignmentPolicy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdAssignmentPolicy *&);
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ImplicitActivationPolicyValue);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ImplicitActivationPolicyValue &);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ImplicitActivationPolicy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ImplicitActivationPolicy *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ServantRetentionPolicyValue);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ServantRetentionPolicyValue &);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ServantRetentionPolicy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ServantRetentionPolicy *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::RequestProcessingPolicyValue);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::RequestProcessingPolicyValue &);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::RequestProcessingPolicy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::RequestProcessingPolicy *&);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::AdapterAlreadyExists &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::AdapterAlreadyExists*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::AdapterAlreadyExists *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::AdapterAlreadyExists *&);
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::AdapterInactive &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::AdapterInactive*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::AdapterInactive *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::AdapterInactive *&);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::AdapterNonExistent &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::AdapterNonExistent*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::AdapterNonExistent *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::AdapterNonExistent *&);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::InvalidPolicy &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::InvalidPolicy*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::InvalidPolicy *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::InvalidPolicy *&);
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::NoServant &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::NoServant*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::NoServant *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::NoServant *&);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::ObjectAlreadyActive &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::ObjectAlreadyActive*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::ObjectAlreadyActive *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::ObjectAlreadyActive *&);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::ObjectNotActive &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::ObjectNotActive*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::ObjectNotActive *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::ObjectNotActive *&);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::ServantAlreadyActive &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::ServantAlreadyActive*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::ServantAlreadyActive *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::ServantAlreadyActive *&);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::ServantNotActive &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::ServantNotActive*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::ServantNotActive *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::ServantNotActive *&);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::WrongAdapter &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::WrongAdapter*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::WrongAdapter *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::WrongAdapter *&);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POA::WrongPolicy &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA::WrongPolicy*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA::WrongPolicy *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POA::WrongPolicy *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::Current_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::Current *&);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::Current::NoContext &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::Current::NoContext*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::Current::NoContext *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::Current::NoContext *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POAManager_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POAManager *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POAManager::State);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POAManager::State &);
-TAO_Export void operator<<= (CORBA::Any &, const PortableServer::POAManager::AdapterInactive &); // copying version
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POAManager::AdapterInactive*); // noncopying version
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POAManager::AdapterInactive *&); // deprecated
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::POAManager::AdapterInactive *&);
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::AdapterActivator_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::AdapterActivator *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ServantManager_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ServantManager *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ServantActivator_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ServantActivator *&);
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::ServantLocator_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ServantLocator *&);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export void operator<<= (CORBA::Any &, PortableServer::POA_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::POA *&);
-
-#if defined (__ACE_INLINE__)
-#include "tao/POAC.i"
-#else
-
-// POA's policies.
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ThreadPolicyValue &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ThreadPolicyValue &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ThreadPolicy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ThreadPolicy_ptr &);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::LifespanPolicyValue &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::LifespanPolicyValue &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::LifespanPolicy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::LifespanPolicy_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdUniquenessPolicyValue &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdUniquenessPolicyValue &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdUniquenessPolicy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdUniquenessPolicy_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdAssignmentPolicyValue &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdAssignmentPolicyValue &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdAssignmentPolicy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdAssignmentPolicy_ptr &);
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ImplicitActivationPolicyValue &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ImplicitActivationPolicyValue &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ImplicitActivationPolicy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ImplicitActivationPolicy_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ServantRetentionPolicyValue &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantRetentionPolicyValue &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ServantRetentionPolicy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantRetentionPolicy_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::RequestProcessingPolicyValue &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::RequestProcessingPolicyValue &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::RequestProcessingPolicy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::RequestProcessingPolicy_ptr &);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// POA's exceptions.
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::AdapterAlreadyExists &_tao_aggregate);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::AdapterAlreadyExists &);
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::AdapterNonExistent &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::AdapterNonExistent &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::InvalidPolicy &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::InvalidPolicy &);
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::NoServant &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::NoServant &);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::ObjectAlreadyActive &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ObjectAlreadyActive &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::ObjectNotActive &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ObjectNotActive &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::ServantAlreadyActive &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ServantAlreadyActive &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::ServantNotActive &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ServantNotActive &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::WrongAdapter &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::WrongAdapter &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA::WrongPolicy &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::WrongPolicy &);
-
-// POA::Current && its exception.
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::Current_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::Current_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::Current::NoContext &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::Current::NoContext &);
-
-#if (TAO_HAS_MINIMUM_CORBA == 0)
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ForwardRequest &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ForwardRequest &);
-
-#endif /* TAO_HAS_MINIMUM_CORBA */
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POAManager_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POAManager_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POAManager::State &); //
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POAManager::State &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POAManager::AdapterInactive &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POAManager::AdapterInactive &);
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::AdapterActivator_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::AdapterActivator_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ServantManager_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantManager_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ServantActivator_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantActivator_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ServantLocator_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantLocator_ptr &);
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::POA_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA_ptr &);
-
-#endif /* defined INLINE */
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-#include "ace/post.h"
-#endif /* TAO_IDL_POAC_H */
diff --git a/TAO/tao/POAC.i b/TAO/tao/POAC.i
deleted file mode 100644
index e32f866887d..00000000000
--- a/TAO/tao/POAC.i
+++ /dev/null
@@ -1,4146 +0,0 @@
-// $Id$
-//
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
-//
-// Information on TAO is available at
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-
-#if !defined (_PORTABLESERVER_POA___VAR_CI_)
-#define _PORTABLESERVER_POA___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::POA_var
-// *************************************************************
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA::_nil (void)
-{
- return (PortableServer::POA_ptr)0;
-}
-
-ACE_INLINE
-PortableServer::POA_var::POA_var (void) // default constructor
- : ptr_ (PortableServer::POA::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::POA_var::POA_var (PortableServer::POA_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::POA_var::POA_var (const PortableServer::POA_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::POA::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::POA_var::~POA_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::POA_var &
-PortableServer::POA_var::operator= (PortableServer::POA_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::POA_var &
-PortableServer::POA_var::operator= (const PortableServer::POA_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POA::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::POA_var::operator const PortableServer::POA_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::POA_var::operator PortableServer::POA_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr &
-PortableServer::POA_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr &
-PortableServer::POA_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POA::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::POA_ptr val = this->ptr_;
- this->ptr_ = PortableServer::POA::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_POA___OUT_CI_)
-#define _PORTABLESERVER_POA___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::POA_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::POA_out::POA_out (PortableServer::POA_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::POA::_nil ();
-}
-
-ACE_INLINE
-PortableServer::POA_out::POA_out (PortableServer::POA_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POA::_nil ();
-}
-
-ACE_INLINE
-PortableServer::POA_out::POA_out (const PortableServer::POA_out &p) // copy constructor
- : ptr_ (ACE_const_cast (POA_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::POA_out &
-PortableServer::POA_out::operator= (PortableServer::POA_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::POA_out &
-PortableServer::POA_out::operator= (const PortableServer::POA_var &p)
-{
- this->ptr_ = PortableServer::POA::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::POA_out &
-PortableServer::POA_out::operator= (PortableServer::POA_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::POA_out::operator PortableServer::POA_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr &
-PortableServer::POA_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET___VAR_CI_)
-#define _PORTABLESERVER__TAO_SEQ_OCTET___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::_tao_seq_Octet_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_var::_tao_seq_Octet_var (void) // default constructor
- : ptr_ (0)
-{}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_var::_tao_seq_Octet_var (PortableServer::_tao_seq_Octet *p)
- : ptr_ (p)
-{}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_var::_tao_seq_Octet_var (const PortableServer::_tao_seq_Octet_var &p) // copy constructor
-{
- if (p.ptr_)
- ACE_NEW (this->ptr_,
- PortableServer::_tao_seq_Octet (*p.ptr_));
- else
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_var::~_tao_seq_Octet_var (void) // destructor
-{
- delete this->ptr_;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet_var &
-PortableServer::_tao_seq_Octet_var::operator= (PortableServer::_tao_seq_Octet *p)
-{
- delete this->ptr_;
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet_var &
-PortableServer::_tao_seq_Octet_var::operator= (const PortableServer::_tao_seq_Octet_var &p) // deep copy
-{
- if (this != &p)
- {
- delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_,
- PortableServer::_tao_seq_Octet (*p.ptr_),
- *this);
- }
- return *this;
-}
-
-ACE_INLINE const PortableServer::_tao_seq_Octet *
-PortableServer::_tao_seq_Octet_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet *
-PortableServer::_tao_seq_Octet_var::operator-> (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_var::operator const PortableServer::_tao_seq_Octet &() const // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_var::operator PortableServer::_tao_seq_Octet &() // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_var::operator PortableServer::_tao_seq_Octet &() const// cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE CORBA::Octet &
-PortableServer::_tao_seq_Octet_var::operator[] (CORBA::ULong slot)
-{
- return this->ptr_->operator[] (slot);
-}
-
-ACE_INLINE const PortableServer::_tao_seq_Octet &
-PortableServer::_tao_seq_Octet_var::in (void) const
-{
- return *this->ptr_;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet &
-PortableServer::_tao_seq_Octet_var::inout (void)
-{
- return *this->ptr_;
-}
-
-// mapping for variable size
-ACE_INLINE PortableServer::_tao_seq_Octet *&
-PortableServer::_tao_seq_Octet_var::out (void)
-{
- delete this->ptr_;
- this->ptr_ = 0;
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet *
-PortableServer::_tao_seq_Octet_var::_retn (void)
-{
- PortableServer::_tao_seq_Octet *tmp = this->ptr_;
- this->ptr_ = 0;
- return tmp;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet *
-PortableServer::_tao_seq_Octet_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET___OUT_CI_)
-#define _PORTABLESERVER__TAO_SEQ_OCTET___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::_tao_seq_Octet_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_out::_tao_seq_Octet_out (PortableServer::_tao_seq_Octet *&p)
- : ptr_ (p)
-{
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_out::_tao_seq_Octet_out (PortableServer::_tao_seq_Octet_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- delete this->ptr_;
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_out::_tao_seq_Octet_out (const PortableServer::_tao_seq_Octet_out &p) // copy constructor
- : ptr_ (ACE_const_cast (_tao_seq_Octet_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::_tao_seq_Octet_out &
-PortableServer::_tao_seq_Octet_out::operator= (PortableServer::_tao_seq_Octet_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet_out &
-PortableServer::_tao_seq_Octet_out::operator= (PortableServer::_tao_seq_Octet *p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::_tao_seq_Octet_out::operator PortableServer::_tao_seq_Octet *&() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet *&
-PortableServer::_tao_seq_Octet_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::_tao_seq_Octet *
-PortableServer::_tao_seq_Octet_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE CORBA::Octet &
-PortableServer::_tao_seq_Octet_out::operator[] (CORBA::ULong slot)
-{
- return this->ptr_->operator[] (slot);
-}
-
-
-#endif // end #if !defined
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE
-PortableServer::ThreadPolicy::ThreadPolicy(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::ThreadPolicy::~ThreadPolicy (void) // destructor
-{}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr
-PortableServer::ThreadPolicy::_nil (void)
-{
- return (PortableServer::ThreadPolicy_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_THREADPOLICY___VAR_CI_)
-#define _PORTABLESERVER_THREADPOLICY___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ThreadPolicy_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ThreadPolicy_var::ThreadPolicy_var (void) // default constructor
- : ptr_ (PortableServer::ThreadPolicy::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_var::ThreadPolicy_var (PortableServer::ThreadPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr
-PortableServer::ThreadPolicy_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_var::ThreadPolicy_var (const PortableServer::ThreadPolicy_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::ThreadPolicy::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_var::~ThreadPolicy_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_var &
-PortableServer::ThreadPolicy_var::operator= (PortableServer::ThreadPolicy_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_var &
-PortableServer::ThreadPolicy_var::operator= (const PortableServer::ThreadPolicy_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ThreadPolicy::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_var::operator const PortableServer::ThreadPolicy_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_var::operator PortableServer::ThreadPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr
-PortableServer::ThreadPolicy_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr
-PortableServer::ThreadPolicy_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr &
-PortableServer::ThreadPolicy_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr &
-PortableServer::ThreadPolicy_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ThreadPolicy::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr
-PortableServer::ThreadPolicy_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::ThreadPolicy_ptr val = this->ptr_;
- this->ptr_ = PortableServer::ThreadPolicy::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-#if !defined (_PORTABLESERVER_THREADPOLICY___OUT_CI_)
-#define _PORTABLESERVER_THREADPOLICY___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ThreadPolicy_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ThreadPolicy_out::ThreadPolicy_out (PortableServer::ThreadPolicy_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::ThreadPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_out::ThreadPolicy_out (PortableServer::ThreadPolicy_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ThreadPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_out::ThreadPolicy_out (const PortableServer::ThreadPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (ThreadPolicy_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::ThreadPolicy_out &
-PortableServer::ThreadPolicy_out::operator= (PortableServer::ThreadPolicy_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_out &
-PortableServer::ThreadPolicy_out::operator= (const PortableServer::ThreadPolicy_var &p)
-{
- this->ptr_ = PortableServer::ThreadPolicy::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_out &
-PortableServer::ThreadPolicy_out::operator= (PortableServer::ThreadPolicy_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ThreadPolicy_out::operator PortableServer::ThreadPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr &
-PortableServer::ThreadPolicy_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ThreadPolicy_ptr
-PortableServer::ThreadPolicy_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-ACE_INLINE
-PortableServer::LifespanPolicy::LifespanPolicy(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::LifespanPolicy::~LifespanPolicy (void) // destructor
-{}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr
-PortableServer::LifespanPolicy::_nil (void)
-{
- return (PortableServer::LifespanPolicy_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_LIFESPANPOLICY___VAR_CI_)
-#define _PORTABLESERVER_LIFESPANPOLICY___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::LifespanPolicy_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::LifespanPolicy_var::LifespanPolicy_var (void) // default constructor
- : ptr_ (PortableServer::LifespanPolicy::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_var::LifespanPolicy_var (PortableServer::LifespanPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr
-PortableServer::LifespanPolicy_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_var::LifespanPolicy_var (const PortableServer::LifespanPolicy_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::LifespanPolicy::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_var::~LifespanPolicy_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_var &
-PortableServer::LifespanPolicy_var::operator= (PortableServer::LifespanPolicy_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_var &
-PortableServer::LifespanPolicy_var::operator= (const PortableServer::LifespanPolicy_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::LifespanPolicy::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_var::operator const PortableServer::LifespanPolicy_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_var::operator PortableServer::LifespanPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr
-PortableServer::LifespanPolicy_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr
-PortableServer::LifespanPolicy_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr &
-PortableServer::LifespanPolicy_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr &
-PortableServer::LifespanPolicy_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::LifespanPolicy::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr
-PortableServer::LifespanPolicy_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::LifespanPolicy_ptr val = this->ptr_;
- this->ptr_ = PortableServer::LifespanPolicy::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_LIFESPANPOLICY___OUT_CI_)
-#define _PORTABLESERVER_LIFESPANPOLICY___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::LifespanPolicy_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::LifespanPolicy_out::LifespanPolicy_out (PortableServer::LifespanPolicy_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::LifespanPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_out::LifespanPolicy_out (PortableServer::LifespanPolicy_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::LifespanPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_out::LifespanPolicy_out (const PortableServer::LifespanPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (LifespanPolicy_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::LifespanPolicy_out &
-PortableServer::LifespanPolicy_out::operator= (PortableServer::LifespanPolicy_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_out &
-PortableServer::LifespanPolicy_out::operator= (const PortableServer::LifespanPolicy_var &p)
-{
- this->ptr_ = PortableServer::LifespanPolicy::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_out &
-PortableServer::LifespanPolicy_out::operator= (PortableServer::LifespanPolicy_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::LifespanPolicy_out::operator PortableServer::LifespanPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr &
-PortableServer::LifespanPolicy_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::LifespanPolicy_ptr
-PortableServer::LifespanPolicy_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy::IdUniquenessPolicy(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy::~IdUniquenessPolicy (void) // destructor
-{}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr
-PortableServer::IdUniquenessPolicy::_nil (void)
-{
- return (PortableServer::IdUniquenessPolicy_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CI_)
-#define _PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::IdUniquenessPolicy_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_var::IdUniquenessPolicy_var (void) // default constructor
- : ptr_ (PortableServer::IdUniquenessPolicy::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_var::IdUniquenessPolicy_var (PortableServer::IdUniquenessPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr
-PortableServer::IdUniquenessPolicy_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_var::IdUniquenessPolicy_var (const PortableServer::IdUniquenessPolicy_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::IdUniquenessPolicy::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_var::~IdUniquenessPolicy_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_var &
-PortableServer::IdUniquenessPolicy_var::operator= (PortableServer::IdUniquenessPolicy_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_var &
-PortableServer::IdUniquenessPolicy_var::operator= (const PortableServer::IdUniquenessPolicy_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::IdUniquenessPolicy::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_var::operator const PortableServer::IdUniquenessPolicy_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_var::operator PortableServer::IdUniquenessPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr
-PortableServer::IdUniquenessPolicy_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr
-PortableServer::IdUniquenessPolicy_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr &
-PortableServer::IdUniquenessPolicy_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr &
-PortableServer::IdUniquenessPolicy_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::IdUniquenessPolicy::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr
-PortableServer::IdUniquenessPolicy_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::IdUniquenessPolicy_ptr val = this->ptr_;
- this->ptr_ = PortableServer::IdUniquenessPolicy::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CI_)
-#define _PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::IdUniquenessPolicy_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_out::IdUniquenessPolicy_out (PortableServer::IdUniquenessPolicy_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::IdUniquenessPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_out::IdUniquenessPolicy_out (PortableServer::IdUniquenessPolicy_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::IdUniquenessPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_out::IdUniquenessPolicy_out (const PortableServer::IdUniquenessPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (IdUniquenessPolicy_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_out &
-PortableServer::IdUniquenessPolicy_out::operator= (PortableServer::IdUniquenessPolicy_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_out &
-PortableServer::IdUniquenessPolicy_out::operator= (const PortableServer::IdUniquenessPolicy_var &p)
-{
- this->ptr_ = PortableServer::IdUniquenessPolicy::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_out &
-PortableServer::IdUniquenessPolicy_out::operator= (PortableServer::IdUniquenessPolicy_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::IdUniquenessPolicy_out::operator PortableServer::IdUniquenessPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr &
-PortableServer::IdUniquenessPolicy_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdUniquenessPolicy_ptr
-PortableServer::IdUniquenessPolicy_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy::IdAssignmentPolicy(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy::~IdAssignmentPolicy (void) // destructor
-{}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr
-PortableServer::IdAssignmentPolicy::_nil (void)
-{
- return (PortableServer::IdAssignmentPolicy_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CI_)
-#define _PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::IdAssignmentPolicy_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_var::IdAssignmentPolicy_var (void) // default constructor
- : ptr_ (PortableServer::IdAssignmentPolicy::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_var::IdAssignmentPolicy_var (PortableServer::IdAssignmentPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr
-PortableServer::IdAssignmentPolicy_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_var::IdAssignmentPolicy_var (const PortableServer::IdAssignmentPolicy_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::IdAssignmentPolicy::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_var::~IdAssignmentPolicy_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_var &
-PortableServer::IdAssignmentPolicy_var::operator= (PortableServer::IdAssignmentPolicy_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_var &
-PortableServer::IdAssignmentPolicy_var::operator= (const PortableServer::IdAssignmentPolicy_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::IdAssignmentPolicy::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_var::operator const PortableServer::IdAssignmentPolicy_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_var::operator PortableServer::IdAssignmentPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr
-PortableServer::IdAssignmentPolicy_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr
-PortableServer::IdAssignmentPolicy_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr &
-PortableServer::IdAssignmentPolicy_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr &
-PortableServer::IdAssignmentPolicy_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::IdAssignmentPolicy::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr
-PortableServer::IdAssignmentPolicy_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::IdAssignmentPolicy_ptr val = this->ptr_;
- this->ptr_ = PortableServer::IdAssignmentPolicy::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CI_)
-#define _PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::IdAssignmentPolicy_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_out::IdAssignmentPolicy_out (PortableServer::IdAssignmentPolicy_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::IdAssignmentPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_out::IdAssignmentPolicy_out (PortableServer::IdAssignmentPolicy_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::IdAssignmentPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_out::IdAssignmentPolicy_out (const PortableServer::IdAssignmentPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (IdAssignmentPolicy_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_out &
-PortableServer::IdAssignmentPolicy_out::operator= (PortableServer::IdAssignmentPolicy_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_out &
-PortableServer::IdAssignmentPolicy_out::operator= (const PortableServer::IdAssignmentPolicy_var &p)
-{
- this->ptr_ = PortableServer::IdAssignmentPolicy::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_out &
-PortableServer::IdAssignmentPolicy_out::operator= (PortableServer::IdAssignmentPolicy_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::IdAssignmentPolicy_out::operator PortableServer::IdAssignmentPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr &
-PortableServer::IdAssignmentPolicy_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::IdAssignmentPolicy_ptr
-PortableServer::IdAssignmentPolicy_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy::ImplicitActivationPolicy(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy::~ImplicitActivationPolicy (void) // destructor
-{}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr
-PortableServer::ImplicitActivationPolicy::_nil (void)
-{
- return (PortableServer::ImplicitActivationPolicy_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CI_)
-#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ImplicitActivationPolicy_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_var::ImplicitActivationPolicy_var (void) // default constructor
- : ptr_ (PortableServer::ImplicitActivationPolicy::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_var::ImplicitActivationPolicy_var (PortableServer::ImplicitActivationPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr
-PortableServer::ImplicitActivationPolicy_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_var::ImplicitActivationPolicy_var (const PortableServer::ImplicitActivationPolicy_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::ImplicitActivationPolicy::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_var::~ImplicitActivationPolicy_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_var &
-PortableServer::ImplicitActivationPolicy_var::operator= (PortableServer::ImplicitActivationPolicy_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_var &
-PortableServer::ImplicitActivationPolicy_var::operator= (const PortableServer::ImplicitActivationPolicy_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ImplicitActivationPolicy::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_var::operator const PortableServer::ImplicitActivationPolicy_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_var::operator PortableServer::ImplicitActivationPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr
-PortableServer::ImplicitActivationPolicy_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr
-PortableServer::ImplicitActivationPolicy_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr &
-PortableServer::ImplicitActivationPolicy_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr &
-PortableServer::ImplicitActivationPolicy_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ImplicitActivationPolicy::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr
-PortableServer::ImplicitActivationPolicy_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::ImplicitActivationPolicy_ptr val = this->ptr_;
- this->ptr_ = PortableServer::ImplicitActivationPolicy::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CI_)
-#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ImplicitActivationPolicy_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_out::ImplicitActivationPolicy_out (PortableServer::ImplicitActivationPolicy_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::ImplicitActivationPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_out::ImplicitActivationPolicy_out (PortableServer::ImplicitActivationPolicy_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ImplicitActivationPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_out::ImplicitActivationPolicy_out (const PortableServer::ImplicitActivationPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (ImplicitActivationPolicy_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_out &
-PortableServer::ImplicitActivationPolicy_out::operator= (PortableServer::ImplicitActivationPolicy_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_out &
-PortableServer::ImplicitActivationPolicy_out::operator= (const PortableServer::ImplicitActivationPolicy_var &p)
-{
- this->ptr_ = PortableServer::ImplicitActivationPolicy::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_out &
-PortableServer::ImplicitActivationPolicy_out::operator= (PortableServer::ImplicitActivationPolicy_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ImplicitActivationPolicy_out::operator PortableServer::ImplicitActivationPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr &
-PortableServer::ImplicitActivationPolicy_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ImplicitActivationPolicy_ptr
-PortableServer::ImplicitActivationPolicy_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy::ServantRetentionPolicy(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy::~ServantRetentionPolicy (void) // destructor
-{}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr
-PortableServer::ServantRetentionPolicy::_nil (void)
-{
- return (PortableServer::ServantRetentionPolicy_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CI_)
-#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantRetentionPolicy_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_var::ServantRetentionPolicy_var (void) // default constructor
- : ptr_ (PortableServer::ServantRetentionPolicy::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_var::ServantRetentionPolicy_var (PortableServer::ServantRetentionPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr
-PortableServer::ServantRetentionPolicy_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_var::ServantRetentionPolicy_var (const PortableServer::ServantRetentionPolicy_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::ServantRetentionPolicy::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_var::~ServantRetentionPolicy_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_var &
-PortableServer::ServantRetentionPolicy_var::operator= (PortableServer::ServantRetentionPolicy_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_var &
-PortableServer::ServantRetentionPolicy_var::operator= (const PortableServer::ServantRetentionPolicy_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantRetentionPolicy::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_var::operator const PortableServer::ServantRetentionPolicy_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_var::operator PortableServer::ServantRetentionPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr
-PortableServer::ServantRetentionPolicy_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr
-PortableServer::ServantRetentionPolicy_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr &
-PortableServer::ServantRetentionPolicy_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr &
-PortableServer::ServantRetentionPolicy_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantRetentionPolicy::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr
-PortableServer::ServantRetentionPolicy_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::ServantRetentionPolicy_ptr val = this->ptr_;
- this->ptr_ = PortableServer::ServantRetentionPolicy::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CI_)
-#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantRetentionPolicy_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_out::ServantRetentionPolicy_out (PortableServer::ServantRetentionPolicy_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::ServantRetentionPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_out::ServantRetentionPolicy_out (PortableServer::ServantRetentionPolicy_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantRetentionPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_out::ServantRetentionPolicy_out (const PortableServer::ServantRetentionPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (ServantRetentionPolicy_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_out &
-PortableServer::ServantRetentionPolicy_out::operator= (PortableServer::ServantRetentionPolicy_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_out &
-PortableServer::ServantRetentionPolicy_out::operator= (const PortableServer::ServantRetentionPolicy_var &p)
-{
- this->ptr_ = PortableServer::ServantRetentionPolicy::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_out &
-PortableServer::ServantRetentionPolicy_out::operator= (PortableServer::ServantRetentionPolicy_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantRetentionPolicy_out::operator PortableServer::ServantRetentionPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr &
-PortableServer::ServantRetentionPolicy_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantRetentionPolicy_ptr
-PortableServer::ServantRetentionPolicy_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy::RequestProcessingPolicy(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy::~RequestProcessingPolicy (void) // destructor
-{}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr
-PortableServer::RequestProcessingPolicy::_nil (void)
-{
- return (PortableServer::RequestProcessingPolicy_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CI_)
-#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::RequestProcessingPolicy_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_var::RequestProcessingPolicy_var (void) // default constructor
- : ptr_ (PortableServer::RequestProcessingPolicy::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_var::RequestProcessingPolicy_var (PortableServer::RequestProcessingPolicy_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr
-PortableServer::RequestProcessingPolicy_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_var::RequestProcessingPolicy_var (const PortableServer::RequestProcessingPolicy_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::RequestProcessingPolicy::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_var::~RequestProcessingPolicy_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_var &
-PortableServer::RequestProcessingPolicy_var::operator= (PortableServer::RequestProcessingPolicy_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_var &
-PortableServer::RequestProcessingPolicy_var::operator= (const PortableServer::RequestProcessingPolicy_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::RequestProcessingPolicy::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_var::operator const PortableServer::RequestProcessingPolicy_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_var::operator PortableServer::RequestProcessingPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr
-PortableServer::RequestProcessingPolicy_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr
-PortableServer::RequestProcessingPolicy_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr &
-PortableServer::RequestProcessingPolicy_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr &
-PortableServer::RequestProcessingPolicy_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::RequestProcessingPolicy::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr
-PortableServer::RequestProcessingPolicy_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::RequestProcessingPolicy_ptr val = this->ptr_;
- this->ptr_ = PortableServer::RequestProcessingPolicy::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CI_)
-#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::RequestProcessingPolicy_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_out::RequestProcessingPolicy_out (PortableServer::RequestProcessingPolicy_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::RequestProcessingPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_out::RequestProcessingPolicy_out (PortableServer::RequestProcessingPolicy_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::RequestProcessingPolicy::_nil ();
-}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_out::RequestProcessingPolicy_out (const PortableServer::RequestProcessingPolicy_out &p) // copy constructor
- : ptr_ (ACE_const_cast (RequestProcessingPolicy_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_out &
-PortableServer::RequestProcessingPolicy_out::operator= (PortableServer::RequestProcessingPolicy_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_out &
-PortableServer::RequestProcessingPolicy_out::operator= (const PortableServer::RequestProcessingPolicy_var &p)
-{
- this->ptr_ = PortableServer::RequestProcessingPolicy::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_out &
-PortableServer::RequestProcessingPolicy_out::operator= (PortableServer::RequestProcessingPolicy_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::RequestProcessingPolicy_out::operator PortableServer::RequestProcessingPolicy_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr &
-PortableServer::RequestProcessingPolicy_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::RequestProcessingPolicy_ptr
-PortableServer::RequestProcessingPolicy_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-ACE_INLINE
-PortableServer::POAManager::POAManager(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::POAManager::~POAManager (void) // destructor
-{}
-
-ACE_INLINE PortableServer::POAManager_ptr
-PortableServer::POAManager::_nil (void)
-{
- return (PortableServer::POAManager_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_POAMANAGER___VAR_CI_)
-#define _PORTABLESERVER_POAMANAGER___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::POAManager_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::POAManager_var::POAManager_var (void) // default constructor
- : ptr_ (PortableServer::POAManager::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::POAManager_var::POAManager_var (PortableServer::POAManager_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::POAManager_ptr
-PortableServer::POAManager_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::POAManager_var::POAManager_var (const PortableServer::POAManager_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::POAManager::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::POAManager_var::~POAManager_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::POAManager_var &
-PortableServer::POAManager_var::operator= (PortableServer::POAManager_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::POAManager_var &
-PortableServer::POAManager_var::operator= (const PortableServer::POAManager_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POAManager::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::POAManager_var::operator const PortableServer::POAManager_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::POAManager_var::operator PortableServer::POAManager_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POAManager_ptr
-PortableServer::POAManager_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POAManager_ptr
-PortableServer::POAManager_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POAManager_ptr &
-PortableServer::POAManager_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POAManager_ptr &
-PortableServer::POAManager_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POAManager::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POAManager_ptr
-PortableServer::POAManager_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::POAManager_ptr val = this->ptr_;
- this->ptr_ = PortableServer::POAManager::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_POAMANAGER___OUT_CI_)
-#define _PORTABLESERVER_POAMANAGER___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::POAManager_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::POAManager_out::POAManager_out (PortableServer::POAManager_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::POAManager::_nil ();
-}
-
-ACE_INLINE
-PortableServer::POAManager_out::POAManager_out (PortableServer::POAManager_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POAManager::_nil ();
-}
-
-ACE_INLINE
-PortableServer::POAManager_out::POAManager_out (const PortableServer::POAManager_out &p) // copy constructor
- : ptr_ (ACE_const_cast (POAManager_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::POAManager_out &
-PortableServer::POAManager_out::operator= (PortableServer::POAManager_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::POAManager_out &
-PortableServer::POAManager_out::operator= (const PortableServer::POAManager_var &p)
-{
- this->ptr_ = PortableServer::POAManager::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::POAManager_out &
-PortableServer::POAManager_out::operator= (PortableServer::POAManager_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::POAManager_out::operator PortableServer::POAManager_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POAManager_ptr &
-PortableServer::POAManager_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POAManager_ptr
-PortableServer::POAManager_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE
-PortableServer::AdapterActivator::AdapterActivator(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::AdapterActivator::~AdapterActivator (void) // destructor
-{}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr
-PortableServer::AdapterActivator::_nil (void)
-{
- return (PortableServer::AdapterActivator_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___VAR_CI_)
-#define _PORTABLESERVER_ADAPTERACTIVATOR___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::AdapterActivator_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::AdapterActivator_var::AdapterActivator_var (void) // default constructor
- : ptr_ (PortableServer::AdapterActivator::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::AdapterActivator_var::AdapterActivator_var (PortableServer::AdapterActivator_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr
-PortableServer::AdapterActivator_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::AdapterActivator_var::AdapterActivator_var (const PortableServer::AdapterActivator_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::AdapterActivator::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::AdapterActivator_var::~AdapterActivator_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::AdapterActivator_var &
-PortableServer::AdapterActivator_var::operator= (PortableServer::AdapterActivator_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_var &
-PortableServer::AdapterActivator_var::operator= (const PortableServer::AdapterActivator_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::AdapterActivator::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::AdapterActivator_var::operator const PortableServer::AdapterActivator_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::AdapterActivator_var::operator PortableServer::AdapterActivator_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr
-PortableServer::AdapterActivator_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr
-PortableServer::AdapterActivator_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr &
-PortableServer::AdapterActivator_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr &
-PortableServer::AdapterActivator_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::AdapterActivator::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr
-PortableServer::AdapterActivator_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::AdapterActivator_ptr val = this->ptr_;
- this->ptr_ = PortableServer::AdapterActivator::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___OUT_CI_)
-#define _PORTABLESERVER_ADAPTERACTIVATOR___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::AdapterActivator_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::AdapterActivator_out::AdapterActivator_out (PortableServer::AdapterActivator_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::AdapterActivator::_nil ();
-}
-
-ACE_INLINE
-PortableServer::AdapterActivator_out::AdapterActivator_out (PortableServer::AdapterActivator_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::AdapterActivator::_nil ();
-}
-
-ACE_INLINE
-PortableServer::AdapterActivator_out::AdapterActivator_out (const PortableServer::AdapterActivator_out &p) // copy constructor
- : ptr_ (ACE_const_cast (AdapterActivator_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::AdapterActivator_out &
-PortableServer::AdapterActivator_out::operator= (PortableServer::AdapterActivator_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_out &
-PortableServer::AdapterActivator_out::operator= (const PortableServer::AdapterActivator_var &p)
-{
- this->ptr_ = PortableServer::AdapterActivator::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_out &
-PortableServer::AdapterActivator_out::operator= (PortableServer::AdapterActivator_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::AdapterActivator_out::operator PortableServer::AdapterActivator_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr &
-PortableServer::AdapterActivator_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::AdapterActivator_ptr
-PortableServer::AdapterActivator_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::ServantManager::ServantManager(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::ServantManager::~ServantManager (void) // destructor
-{}
-
-ACE_INLINE PortableServer::ServantManager_ptr
-PortableServer::ServantManager::_nil (void)
-{
- return (PortableServer::ServantManager_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_SERVANTMANAGER___VAR_CI_)
-#define _PORTABLESERVER_SERVANTMANAGER___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantManager_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantManager_var::ServantManager_var (void) // default constructor
- : ptr_ (PortableServer::ServantManager::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::ServantManager_var::ServantManager_var (PortableServer::ServantManager_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::ServantManager_ptr
-PortableServer::ServantManager_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantManager_var::ServantManager_var (const PortableServer::ServantManager_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::ServantManager::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::ServantManager_var::~ServantManager_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::ServantManager_var &
-PortableServer::ServantManager_var::operator= (PortableServer::ServantManager_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantManager_var &
-PortableServer::ServantManager_var::operator= (const PortableServer::ServantManager_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantManager::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantManager_var::operator const PortableServer::ServantManager_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantManager_var::operator PortableServer::ServantManager_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantManager_ptr
-PortableServer::ServantManager_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantManager_ptr
-PortableServer::ServantManager_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantManager_ptr &
-PortableServer::ServantManager_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantManager_ptr &
-PortableServer::ServantManager_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantManager::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantManager_ptr
-PortableServer::ServantManager_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::ServantManager_ptr val = this->ptr_;
- this->ptr_ = PortableServer::ServantManager::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_SERVANTMANAGER___OUT_CI_)
-#define _PORTABLESERVER_SERVANTMANAGER___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantManager_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantManager_out::ServantManager_out (PortableServer::ServantManager_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::ServantManager::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantManager_out::ServantManager_out (PortableServer::ServantManager_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantManager::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantManager_out::ServantManager_out (const PortableServer::ServantManager_out &p) // copy constructor
- : ptr_ (ACE_const_cast (ServantManager_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::ServantManager_out &
-PortableServer::ServantManager_out::operator= (PortableServer::ServantManager_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantManager_out &
-PortableServer::ServantManager_out::operator= (const PortableServer::ServantManager_var &p)
-{
- this->ptr_ = PortableServer::ServantManager::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantManager_out &
-PortableServer::ServantManager_out::operator= (PortableServer::ServantManager_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantManager_out::operator PortableServer::ServantManager_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantManager_ptr &
-PortableServer::ServantManager_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantManager_ptr
-PortableServer::ServantManager_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::ServantActivator::ServantActivator(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::ServantActivator::~ServantActivator (void) // destructor
-{}
-
-ACE_INLINE PortableServer::ServantActivator_ptr
-PortableServer::ServantActivator::_nil (void)
-{
- return (PortableServer::ServantActivator_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___VAR_CI_)
-#define _PORTABLESERVER_SERVANTACTIVATOR___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantActivator_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantActivator_var::ServantActivator_var (void) // default constructor
- : ptr_ (PortableServer::ServantActivator::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::ServantActivator_var::ServantActivator_var (PortableServer::ServantActivator_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::ServantActivator_ptr
-PortableServer::ServantActivator_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantActivator_var::ServantActivator_var (const PortableServer::ServantActivator_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::ServantActivator::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::ServantActivator_var::~ServantActivator_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::ServantActivator_var &
-PortableServer::ServantActivator_var::operator= (PortableServer::ServantActivator_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantActivator_var &
-PortableServer::ServantActivator_var::operator= (const PortableServer::ServantActivator_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantActivator::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantActivator_var::operator const PortableServer::ServantActivator_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantActivator_var::operator PortableServer::ServantActivator_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantActivator_ptr
-PortableServer::ServantActivator_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantActivator_ptr
-PortableServer::ServantActivator_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantActivator_ptr &
-PortableServer::ServantActivator_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantActivator_ptr &
-PortableServer::ServantActivator_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantActivator::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantActivator_ptr
-PortableServer::ServantActivator_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::ServantActivator_ptr val = this->ptr_;
- this->ptr_ = PortableServer::ServantActivator::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___OUT_CI_)
-#define _PORTABLESERVER_SERVANTACTIVATOR___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantActivator_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantActivator_out::ServantActivator_out (PortableServer::ServantActivator_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::ServantActivator::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantActivator_out::ServantActivator_out (PortableServer::ServantActivator_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantActivator::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantActivator_out::ServantActivator_out (const PortableServer::ServantActivator_out &p) // copy constructor
- : ptr_ (ACE_const_cast (ServantActivator_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::ServantActivator_out &
-PortableServer::ServantActivator_out::operator= (PortableServer::ServantActivator_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantActivator_out &
-PortableServer::ServantActivator_out::operator= (const PortableServer::ServantActivator_var &p)
-{
- this->ptr_ = PortableServer::ServantActivator::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantActivator_out &
-PortableServer::ServantActivator_out::operator= (PortableServer::ServantActivator_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantActivator_out::operator PortableServer::ServantActivator_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantActivator_ptr &
-PortableServer::ServantActivator_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantActivator_ptr
-PortableServer::ServantActivator_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::ServantLocator::ServantLocator(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::ServantLocator::~ServantLocator (void) // destructor
-{}
-
-ACE_INLINE PortableServer::ServantLocator_ptr
-PortableServer::ServantLocator::_nil (void)
-{
- return (PortableServer::ServantLocator_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_SERVANTLOCATOR___VAR_CI_)
-#define _PORTABLESERVER_SERVANTLOCATOR___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantLocator_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantLocator_var::ServantLocator_var (void) // default constructor
- : ptr_ (PortableServer::ServantLocator::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::ServantLocator_var::ServantLocator_var (PortableServer::ServantLocator_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::ServantLocator_ptr
-PortableServer::ServantLocator_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantLocator_var::ServantLocator_var (const PortableServer::ServantLocator_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::ServantLocator::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::ServantLocator_var::~ServantLocator_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::ServantLocator_var &
-PortableServer::ServantLocator_var::operator= (PortableServer::ServantLocator_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantLocator_var &
-PortableServer::ServantLocator_var::operator= (const PortableServer::ServantLocator_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantLocator::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantLocator_var::operator const PortableServer::ServantLocator_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::ServantLocator_var::operator PortableServer::ServantLocator_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantLocator_ptr
-PortableServer::ServantLocator_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantLocator_ptr
-PortableServer::ServantLocator_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantLocator_ptr &
-PortableServer::ServantLocator_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantLocator_ptr &
-PortableServer::ServantLocator_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantLocator::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantLocator_ptr
-PortableServer::ServantLocator_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::ServantLocator_ptr val = this->ptr_;
- this->ptr_ = PortableServer::ServantLocator::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_SERVANTLOCATOR___OUT_CI_)
-#define _PORTABLESERVER_SERVANTLOCATOR___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::ServantLocator_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::ServantLocator_out::ServantLocator_out (PortableServer::ServantLocator_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::ServantLocator::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantLocator_out::ServantLocator_out (PortableServer::ServantLocator_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::ServantLocator::_nil ();
-}
-
-ACE_INLINE
-PortableServer::ServantLocator_out::ServantLocator_out (const PortableServer::ServantLocator_out &p) // copy constructor
- : ptr_ (ACE_const_cast (ServantLocator_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::ServantLocator_out &
-PortableServer::ServantLocator_out::operator= (PortableServer::ServantLocator_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantLocator_out &
-PortableServer::ServantLocator_out::operator= (const PortableServer::ServantLocator_var &p)
-{
- this->ptr_ = PortableServer::ServantLocator::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::ServantLocator_out &
-PortableServer::ServantLocator_out::operator= (PortableServer::ServantLocator_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::ServantLocator_out::operator PortableServer::ServantLocator_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantLocator_ptr &
-PortableServer::ServantLocator_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::ServantLocator_ptr
-PortableServer::ServantLocator_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-ACE_INLINE
-PortableServer::POA::POA(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::POA::~POA (void) // destructor
-{}
-
-
-#if !defined (_PORTABLESERVER_POA___VAR_CI_)
-#define _PORTABLESERVER_POA___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::POA_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::POA_var::POA_var (void) // default constructor
- : ptr_ (PortableServer::POA::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::POA_var::POA_var (PortableServer::POA_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::POA_var::POA_var (const PortableServer::POA_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::POA::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::POA_var::~POA_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::POA_var &
-PortableServer::POA_var::operator= (PortableServer::POA_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::POA_var &
-PortableServer::POA_var::operator= (const PortableServer::POA_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POA::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::POA_var::operator const PortableServer::POA_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::POA_var::operator PortableServer::POA_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr &
-PortableServer::POA_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr &
-PortableServer::POA_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POA::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::POA_ptr val = this->ptr_;
- this->ptr_ = PortableServer::POA::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_POA___OUT_CI_)
-#define _PORTABLESERVER_POA___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::POA_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::POA_out::POA_out (PortableServer::POA_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::POA::_nil ();
-}
-
-ACE_INLINE
-PortableServer::POA_out::POA_out (PortableServer::POA_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::POA::_nil ();
-}
-
-ACE_INLINE
-PortableServer::POA_out::POA_out (const PortableServer::POA_out &p) // copy constructor
- : ptr_ (ACE_const_cast (POA_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::POA_out &
-PortableServer::POA_out::operator= (PortableServer::POA_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::POA_out &
-PortableServer::POA_out::operator= (const PortableServer::POA_var &p)
-{
- this->ptr_ = PortableServer::POA::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::POA_out &
-PortableServer::POA_out::operator= (PortableServer::POA_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::POA_out::operator PortableServer::POA_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr &
-PortableServer::POA_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::POA_ptr
-PortableServer::POA_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif // end #if !defined
-
-ACE_INLINE
-PortableServer::Current::Current(
- TAO_Stub *objref,
- TAO_ServantBase *servant,
- CORBA::Boolean collocated
- )
- : ACE_CORBA_1 (Object) (objref, servant, collocated)
-{}
-
-ACE_INLINE
-PortableServer::Current::~Current (void) // destructor
-{}
-
-ACE_INLINE PortableServer::Current_ptr
-PortableServer::Current::_nil (void)
-{
- return (PortableServer::Current_ptr)0;
-}
-
-
-#if !defined (_PORTABLESERVER_CURRENT___VAR_CI_)
-#define _PORTABLESERVER_CURRENT___VAR_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::Current_var
-// *************************************************************
-
-ACE_INLINE
-PortableServer::Current_var::Current_var (void) // default constructor
- : ptr_ (PortableServer::Current::_nil ())
-{}
-
-ACE_INLINE
-PortableServer::Current_var::Current_var (PortableServer::Current_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE PortableServer::Current_ptr
-PortableServer::Current_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::Current_var::Current_var (const PortableServer::Current_var &p) // copy constructor
- : TAO_Base_var (),
- ptr_ (PortableServer::Current::_duplicate (p.ptr ()))
-{}
-
-ACE_INLINE
-PortableServer::Current_var::~Current_var (void) // destructor
-{
- CORBA::release (this->ptr_);
-}
-
-ACE_INLINE PortableServer::Current_var &
-PortableServer::Current_var::operator= (PortableServer::Current_ptr p)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE PortableServer::Current_var &
-PortableServer::Current_var::operator= (const PortableServer::Current_var &p)
-{
- if (this != &p)
- {
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::Current::_duplicate (p.ptr ());
- }
- return *this;
-}
-
-ACE_INLINE
-PortableServer::Current_var::operator const PortableServer::Current_ptr &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-PortableServer::Current_var::operator PortableServer::Current_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::Current_ptr
-PortableServer::Current_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::Current_ptr
-PortableServer::Current_var::in (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::Current_ptr &
-PortableServer::Current_var::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::Current_ptr &
-PortableServer::Current_var::out (void)
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::Current::_nil ();
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::Current_ptr
-PortableServer::Current_var::_retn (void)
-{
- // yield ownership of managed obj reference
- PortableServer::Current_ptr val = this->ptr_;
- this->ptr_ = PortableServer::Current::_nil ();
- return val;
-}
-
-
-#endif // end #if !defined
-
-
-#if !defined (_PORTABLESERVER_CURRENT___OUT_CI_)
-#define _PORTABLESERVER_CURRENT___OUT_CI_
-
-// *************************************************************
-// Inline operations for class PortableServer::Current_out
-// *************************************************************
-
-ACE_INLINE
-PortableServer::Current_out::Current_out (PortableServer::Current_ptr &p)
- : ptr_ (p)
-{
- this->ptr_ = PortableServer::Current::_nil ();
-}
-
-ACE_INLINE
-PortableServer::Current_out::Current_out (PortableServer::Current_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- CORBA::release (this->ptr_);
- this->ptr_ = PortableServer::Current::_nil ();
-}
-
-ACE_INLINE
-PortableServer::Current_out::Current_out (const PortableServer::Current_out &p) // copy constructor
- : ptr_ (ACE_const_cast (Current_out&,p).ptr_)
-{}
-
-ACE_INLINE PortableServer::Current_out &
-PortableServer::Current_out::operator= (PortableServer::Current_out &p)
-{
- this->ptr_ = p.ptr_;
- return *this;
-}
-
-ACE_INLINE PortableServer::Current_out &
-PortableServer::Current_out::operator= (const PortableServer::Current_var &p)
-{
- this->ptr_ = PortableServer::Current::_duplicate (p.ptr ());
- return *this;
-}
-
-ACE_INLINE PortableServer::Current_out &
-PortableServer::Current_out::operator= (PortableServer::Current_ptr p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-PortableServer::Current_out::operator PortableServer::Current_ptr &() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::Current_ptr &
-PortableServer::Current_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE PortableServer::Current_ptr
-PortableServer::Current_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-#endif // end #if !defined
-
-// ****************************************************************
-
-#if (TAO_HAS_MINIMUM_CORBA == 0)
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ForwardRequest &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- {
- // now marshal the members (if any)
- if (
- (strm << _tao_aggregate.forward_reference.in ())
- )
- return 1;
- else
- return 0;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm,PortableServer::ForwardRequest &_tao_aggregate)
-{
- // now marshal the members
- if (
- (strm >> _tao_aggregate.forward_reference.out ())
- )
- return 1;
- else
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_CORBA */
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POAManager::AdapterInactive &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &,PortableServer::POAManager::AdapterInactive &)
-{
- return 1;
-}
-
-// ****************************************************************
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ThreadPolicyValue &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::ThreadPolicyValue &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::ThreadPolicy_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::ThreadPolicy_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::ThreadPolicy_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::ThreadPolicy_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::ThreadPolicy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::LifespanPolicyValue &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::LifespanPolicyValue &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::LifespanPolicy_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::LifespanPolicy_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::LifespanPolicy_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::LifespanPolicy_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::LifespanPolicy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::IdUniquenessPolicyValue &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::IdUniquenessPolicyValue &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::IdUniquenessPolicy_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::IdUniquenessPolicy_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::IdUniquenessPolicy_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::IdUniquenessPolicy_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::IdUniquenessPolicy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::IdAssignmentPolicyValue &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::IdAssignmentPolicyValue &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::IdAssignmentPolicy_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::IdAssignmentPolicy_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::IdAssignmentPolicy_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::IdAssignmentPolicy_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::IdAssignmentPolicy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ImplicitActivationPolicyValue &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::ImplicitActivationPolicyValue &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::ImplicitActivationPolicy_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::ImplicitActivationPolicy_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::ImplicitActivationPolicy_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::ImplicitActivationPolicy_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::ImplicitActivationPolicy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ServantRetentionPolicyValue &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::ServantRetentionPolicyValue &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::ServantRetentionPolicy_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::ServantRetentionPolicy_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::ServantRetentionPolicy_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::ServantRetentionPolicy_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::ServantRetentionPolicy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::RequestProcessingPolicyValue &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::RequestProcessingPolicyValue &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::RequestProcessingPolicy_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::RequestProcessingPolicy_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::RequestProcessingPolicy_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::RequestProcessingPolicy_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::RequestProcessingPolicy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::AdapterAlreadyExists &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::AdapterAlreadyExists &)
-{
- return 1;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::AdapterInactive &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::AdapterInactive &)
-{
- return 1;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::AdapterNonExistent &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::AdapterNonExistent &)
-{
- return 1;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::InvalidPolicy &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- {
- // now marshal the members (if any)
- if ((strm << _tao_aggregate.index))
- return 1;
- else
- return 0;
- }
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::POA::InvalidPolicy &_tao_aggregate)
-{
- // now marshal the members
- if ((strm >> _tao_aggregate.index))
- return 1;
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::NoServant &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::NoServant &)
-{
- return 1;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::ObjectAlreadyActive &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ObjectAlreadyActive &)
-{
- return 1;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::ObjectNotActive &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ObjectNotActive &)
-{
- return 1;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::ServantAlreadyActive &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ServantAlreadyActive &)
-{
- return 1;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::ServantNotActive &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::ServantNotActive &)
-{
- return 1;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::WrongAdapter &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::WrongAdapter &)
-{
- return 1;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POA::WrongPolicy &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::POA::WrongPolicy &)
-{
- return 1;
-}
-
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::Current_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::Current_ptr &
- );
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::Current::NoContext &_tao_aggregate)
-{
- // first marshal the repository ID
- if (strm << _tao_aggregate._id ())
- return 1;
- else
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::Current::NoContext &)
-{
- return 1;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::Current_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::Current_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::Current::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::POAManager_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::POAManager_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::POAManager::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::POAManager::State &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::POAManager::State &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::AdapterActivator_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::AdapterActivator_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::AdapterActivator::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::ServantManager_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::ServantManager_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::ServantManager_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::ServantManager_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::ServantManager::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::ServantActivator_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::ServantActivator_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::ServantActivator_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::ServantActivator_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::ServantActivator::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &,
- const PortableServer::ServantLocator_ptr
- );
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &,
- PortableServer::ServantLocator_ptr &
- );
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::ServantLocator_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::ServantLocator_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::ServantLocator::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const PortableServer::POA_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- PortableServer::POA_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- PortableServer::POA::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
-
diff --git a/TAO/tao/POAManager.cpp b/TAO/tao/POAManager.cpp
index 8c86e550a06..0412cfa2b46 100644
--- a/TAO/tao/POAManager.cpp
+++ b/TAO/tao/POAManager.cpp
@@ -231,11 +231,7 @@ TAO_POA_Manager::remove_poa (TAO_POA *poa)
{
if (this->poa_collection_.is_empty ())
{
- // @@ This may cause segfault if another thread gets a hold
- // at this POAManager but gets blocked on register POA
- // waiting for remove_poa to complete. I think we need to
- // use the client side mapping to refcount this.
- delete this;
+ CORBA::release (this);
}
}
diff --git a/TAO/tao/POAManager.h b/TAO/tao/POAManager.h
index 968609a7dcf..c853e2bf560 100644
--- a/TAO/tao/POAManager.h
+++ b/TAO/tao/POAManager.h
@@ -21,21 +21,33 @@
#define TAO_POAMANAGER_H
#include "ace/pre.h"
-#include "tao/POAS.h"
+#include "tao/PortableServerC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-// for POA skeleton.
-
#include "tao/poa_macros.h"
+// Local Object
+#include "tao/LocalObject.h"
+
class TAO_POA;
class TAO_Object_Adapter;
// Forward decl.
-class TAO_Export TAO_POA_Manager : public POA_PortableServer::POAManager
+// This is to remove "inherits via dominance" warnings from MSVC.
+// MSVC is being a little too paranoid.
+#if defined(_MSC_VER)
+#if (_MSC_VER >= 1200)
+#pragma warning(push)
+#endif /* _MSC_VER >= 1200 */
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+class TAO_Export TAO_POA_Manager :
+ public PortableServer::POAManager,
+ public TAO_Local_RefCounted_Object
{
friend class TAO_POA;
friend class TAO_Object_Adapter;
diff --git a/TAO/tao/POAS.cpp b/TAO/tao/POAS.cpp
deleted file mode 100644
index 4dd092ed444..00000000000
--- a/TAO/tao/POAS.cpp
+++ /dev/null
@@ -1,2995 +0,0 @@
-// $Id$
-
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
-//
-// Information on TAO is available at
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-#include "tao/POAS.h"
-#include "tao/Server_Request.h"
-#include "tao/Operation_Table.h"
-#include "tao/ORB_Core.h"
-#include "tao/ORB.h"
-
-#if !defined (__ACE_INLINE__)
-#include "tao/POAS.i"
-#endif // !defined INLINE
-
-ACE_RCSID(tao, POAS, "$Id$")
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-class TAO_PortableServer_ThreadPolicy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
-{
-private:
- unsigned int hash (const char *str, unsigned int len);
-public:
- const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
-};
-/* starting time is 0:12:47 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_PortableServer_ThreadPolicy_Perfect_Hash_OpTable -N lookup */
-unsigned int
-TAO_PortableServer_ThreadPolicy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
-{
- static const unsigned char asso_values[] =
- {
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 0, 17, 0, 17, 0,
- 0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
- 17, 0, 17, 17, 17, 17, 17, 17,
- };
- return len + asso_values[str[len - 1]] + asso_values[str[0]];
-}
-
-const class TAO_operation_db_entry *
-TAO_PortableServer_ThreadPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len)
-{
- enum
- {
- TOTAL_KEYWORDS = 6,
- MIN_WORD_LENGTH = 4,
- MAX_WORD_LENGTH = 16,
- MIN_HASH_VALUE = 4,
- MAX_HASH_VALUE = 16,
- HASH_VALUE_RANGE = 13,
- DUPLICATES = 0
- };
-
- static const class TAO_operation_db_entry wordlist[] =
- {
- {"",0}, {"",0}, {"",0}, {"",0},
- {"copy", &POA_PortableServer::ThreadPolicy::copy_skel},
- {"_is_a", &POA_PortableServer::ThreadPolicy::_is_a_skel},
- {"",0},
- {"destroy", &POA_PortableServer::ThreadPolicy::destroy_skel},
- {"",0}, {"",0},
- {"_get_value", &POA_PortableServer::ThreadPolicy::_get_value_skel},
- {"",0}, {"",0},
- {"_non_existent", &POA_PortableServer::ThreadPolicy::_non_existent_skel},
- {"",0}, {"",0},
- {"_get_policy_type", &POA_PortableServer::ThreadPolicy::_get_policy_type_skel},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- unsigned int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- const char *s = wordlist[key].opname_;
-
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
-/* ending time is 0:12:47 */
-TAO_PortableServer_ThreadPolicy_Perfect_Hash_OpTable tao_PortableServer_ThreadPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton constructor
-POA_PortableServer::ThreadPolicy::ThreadPolicy (void)
-{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- this->optable_ = &tao_PortableServer_ThreadPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::ThreadPolicy::_get_value_skel (
- CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::ThreadPolicy *_tao_impl = (POA_PortableServer::ThreadPolicy *)_tao_object_reference;
- PortableServer::ThreadPolicyValue _tao_retval;
- _tao_retval = _tao_impl->value (
- ACE_TRY_ENV
- );
- ACE_CHECK;
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!(
- (_tao_out << _tao_retval)
- ))
- ACE_THROW (CORBA::MARSHAL () );
-}
-
-void POA_PortableServer::ThreadPolicy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
- POA_PortableServer::ThreadPolicy *_tao_impl = (POA_PortableServer::ThreadPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = 0;
- CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
- ACE_THROW (CORBA::MARSHAL ());
-
- _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void POA_PortableServer::ThreadPolicy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::ThreadPolicy *_tao_impl = (POA_PortableServer::ThreadPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean POA_PortableServer::ThreadPolicy::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ThreadPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::ThreadPolicy::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ThreadPolicy:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ThreadPolicy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Policy:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::ThreadPolicy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-const char* POA_PortableServer::ThreadPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ThreadPolicy:1.0";
-}
-
-POA_PortableServer::_tao_collocated_ThreadPolicy::_tao_collocated_ThreadPolicy (
- POA_PortableServer::ThreadPolicy_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, ThreadPolicy) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA, _tao_collocated_Policy) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::ThreadPolicy_ptr POA_PortableServer::_tao_collocated_ThreadPolicy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_ThreadPolicy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-
-CORBA::Policy_ptr POA_PortableServer::_tao_collocated_ThreadPolicy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->copy (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_ThreadPolicy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- ACE_TRY_ENV
- );
-}
-
-CORBA::PolicyType POA_PortableServer::_tao_collocated_ThreadPolicy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->policy_type (ACE_TRY_ENV);
-}
-
-PortableServer::ThreadPolicyValue
-POA_PortableServer::_tao_collocated_ThreadPolicy::value (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->value(ACE_TRY_ENV);
-}
-
-PortableServer::ThreadPolicy*
-POA_PortableServer::ThreadPolicy::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- PortableServer::ThreadPolicy *retval =
- PortableServer::ThreadPolicy::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_ThreadPolicy (this,
- stub),
- PortableServer::ThreadPolicy::_nil ());
-
- return retval;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-class TAO_PortableServer_LifespanPolicy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
-{
-private:
- unsigned int hash (const char *str, unsigned int len);
-public:
- const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
-};
-/* starting time is 0:12:47 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_PortableServer_LifespanPolicy_Perfect_Hash_OpTable -N lookup */
-unsigned int
-TAO_PortableServer_LifespanPolicy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
-{
- static const unsigned char asso_values[] =
- {
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 0, 17, 0, 17, 0,
- 0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
- 17, 0, 17, 17, 17, 17, 17, 17,
- };
- return len + asso_values[str[len - 1]] + asso_values[str[0]];
-}
-
-const class TAO_operation_db_entry *
-TAO_PortableServer_LifespanPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len)
-{
- enum
- {
- TOTAL_KEYWORDS = 6,
- MIN_WORD_LENGTH = 4,
- MAX_WORD_LENGTH = 16,
- MIN_HASH_VALUE = 4,
- MAX_HASH_VALUE = 16,
- HASH_VALUE_RANGE = 13,
- DUPLICATES = 0
- };
-
- static const class TAO_operation_db_entry wordlist[] =
- {
- {"",0}, {"",0}, {"",0}, {"",0},
- {"copy", &POA_PortableServer::LifespanPolicy::copy_skel},
- {"_is_a", &POA_PortableServer::LifespanPolicy::_is_a_skel},
- {"",0},
- {"destroy", &POA_PortableServer::LifespanPolicy::destroy_skel},
- {"",0}, {"",0},
- {"_get_value", &POA_PortableServer::LifespanPolicy::_get_value_skel},
- {"",0}, {"",0},
- {"_non_existent", &POA_PortableServer::LifespanPolicy::_non_existent_skel},
- {"",0}, {"",0},
- {"_get_policy_type", &POA_PortableServer::LifespanPolicy::_get_policy_type_skel},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- unsigned int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- const char *s = wordlist[key].opname_;
-
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
-/* ending time is 0:12:47 */
-TAO_PortableServer_LifespanPolicy_Perfect_Hash_OpTable tao_PortableServer_LifespanPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton constructor
-POA_PortableServer::LifespanPolicy::LifespanPolicy (void)
-{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- this->optable_ = &tao_PortableServer_LifespanPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::LifespanPolicy::_get_value_skel (
- CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::LifespanPolicy *_tao_impl = (POA_PortableServer::LifespanPolicy *)_tao_object_reference;
- PortableServer::LifespanPolicyValue _tao_retval;
- _tao_retval = _tao_impl->value (
- ACE_TRY_ENV
- );
- ACE_CHECK;
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!(
- (_tao_out << _tao_retval)
- ))
- ACE_THROW (CORBA::MARSHAL () );
-
-}
-
-void POA_PortableServer::LifespanPolicy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
- POA_PortableServer::LifespanPolicy *_tao_impl = (POA_PortableServer::LifespanPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = 0;
- CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
- ACE_THROW (CORBA::MARSHAL ());
-
- _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void POA_PortableServer::LifespanPolicy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::LifespanPolicy *_tao_impl = (POA_PortableServer::LifespanPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean POA_PortableServer::LifespanPolicy::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/LifespanPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::LifespanPolicy::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/LifespanPolicy:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::LifespanPolicy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Policy:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::LifespanPolicy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-const char* POA_PortableServer::LifespanPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/LifespanPolicy:1.0";
-}
-
-POA_PortableServer::_tao_collocated_LifespanPolicy::_tao_collocated_LifespanPolicy (
- POA_PortableServer::LifespanPolicy_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, LifespanPolicy) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA, _tao_collocated_Policy) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::LifespanPolicy_ptr POA_PortableServer::_tao_collocated_LifespanPolicy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_LifespanPolicy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Policy_ptr POA_PortableServer::_tao_collocated_LifespanPolicy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->copy (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_LifespanPolicy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- ACE_TRY_ENV
- );
-}
-
-CORBA::PolicyType POA_PortableServer::_tao_collocated_LifespanPolicy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->policy_type (ACE_TRY_ENV);
-}
-
-PortableServer::LifespanPolicyValue
-POA_PortableServer::_tao_collocated_LifespanPolicy::value (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->value(ACE_TRY_ENV);
-}
-
-PortableServer::LifespanPolicy*
-POA_PortableServer::LifespanPolicy::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- PortableServer::LifespanPolicy *retval =
- PortableServer::LifespanPolicy::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_LifespanPolicy (this,
- stub),
- PortableServer::LifespanPolicy::_nil ());
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-class TAO_PortableServer_IdUniquenessPolicy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
-{
-private:
- unsigned int hash (const char *str, unsigned int len);
-public:
- const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
-};
-/* starting time is 0:12:47 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_PortableServer_IdUniquenessPolicy_Perfect_Hash_OpTable -N lookup */
-unsigned int
-TAO_PortableServer_IdUniquenessPolicy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
-{
- static const unsigned char asso_values[] =
- {
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 0, 17, 0, 17, 0,
- 0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
- 17, 0, 17, 17, 17, 17, 17, 17,
- };
- return len + asso_values[str[len - 1]] + asso_values[str[0]];
-}
-
-const class TAO_operation_db_entry *
-TAO_PortableServer_IdUniquenessPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len)
-{
- enum
- {
- TOTAL_KEYWORDS = 6,
- MIN_WORD_LENGTH = 4,
- MAX_WORD_LENGTH = 16,
- MIN_HASH_VALUE = 4,
- MAX_HASH_VALUE = 16,
- HASH_VALUE_RANGE = 13,
- DUPLICATES = 0
- };
-
- static const class TAO_operation_db_entry wordlist[] =
- {
- {"",0}, {"",0}, {"",0}, {"",0},
- {"copy", &POA_PortableServer::IdUniquenessPolicy::copy_skel},
- {"_is_a", &POA_PortableServer::IdUniquenessPolicy::_is_a_skel},
- {"",0},
- {"destroy", &POA_PortableServer::IdUniquenessPolicy::destroy_skel},
- {"",0}, {"",0},
- {"_get_value", &POA_PortableServer::IdUniquenessPolicy::_get_value_skel},
- {"",0}, {"",0},
- {"_non_existent", &POA_PortableServer::IdUniquenessPolicy::_non_existent_skel},
- {"",0}, {"",0},
- {"_get_policy_type", &POA_PortableServer::IdUniquenessPolicy::_get_policy_type_skel},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- unsigned int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- const char *s = wordlist[key].opname_;
-
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
-/* ending time is 0:12:47 */
-TAO_PortableServer_IdUniquenessPolicy_Perfect_Hash_OpTable tao_PortableServer_IdUniquenessPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton constructor
-POA_PortableServer::IdUniquenessPolicy::IdUniquenessPolicy (void)
-{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- this->optable_ = &tao_PortableServer_IdUniquenessPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::IdUniquenessPolicy::_get_value_skel (
- CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::IdUniquenessPolicy *_tao_impl = (POA_PortableServer::IdUniquenessPolicy *)_tao_object_reference;
- PortableServer::IdUniquenessPolicyValue _tao_retval;
- _tao_retval = _tao_impl->value (
- ACE_TRY_ENV
- );
- ACE_CHECK;
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!(
- (_tao_out << _tao_retval)
- ))
- ACE_THROW (CORBA::MARSHAL () );
-
-}
-
-void POA_PortableServer::IdUniquenessPolicy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
- POA_PortableServer::IdUniquenessPolicy *_tao_impl = (POA_PortableServer::IdUniquenessPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = 0;
- CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
- ACE_THROW (CORBA::MARSHAL ());
-
- _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void POA_PortableServer::IdUniquenessPolicy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::IdUniquenessPolicy *_tao_impl = (POA_PortableServer::IdUniquenessPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean POA_PortableServer::IdUniquenessPolicy::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::IdUniquenessPolicy::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::IdUniquenessPolicy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Policy:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::IdUniquenessPolicy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-const char* POA_PortableServer::IdUniquenessPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/IdUniquenessPolicy:1.0";
-}
-
-POA_PortableServer::_tao_collocated_IdUniquenessPolicy::_tao_collocated_IdUniquenessPolicy (
- POA_PortableServer::IdUniquenessPolicy_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, IdUniquenessPolicy) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA, _tao_collocated_Policy) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::IdUniquenessPolicy_ptr POA_PortableServer::_tao_collocated_IdUniquenessPolicy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_IdUniquenessPolicy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Policy_ptr POA_PortableServer::_tao_collocated_IdUniquenessPolicy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->copy (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_IdUniquenessPolicy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- ACE_TRY_ENV
- );
-}
-
-CORBA::PolicyType POA_PortableServer::_tao_collocated_IdUniquenessPolicy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->policy_type (ACE_TRY_ENV);
-}
-
-PortableServer::IdUniquenessPolicyValue
-POA_PortableServer::_tao_collocated_IdUniquenessPolicy::value (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->value(ACE_TRY_ENV);
-}
-
-
-PortableServer::IdUniquenessPolicy*
-POA_PortableServer::IdUniquenessPolicy::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- PortableServer::IdUniquenessPolicy *retval =
- PortableServer::IdUniquenessPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_IdUniquenessPolicy (this,
- stub),
- PortableServer::IdUniquenessPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-class TAO_PortableServer_IdAssignmentPolicy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
-{
-private:
- unsigned int hash (const char *str, unsigned int len);
-public:
- const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
-};
-/* starting time is 0:12:47 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_PortableServer_IdAssignmentPolicy_Perfect_Hash_OpTable -N lookup */
-unsigned int
-TAO_PortableServer_IdAssignmentPolicy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
-{
- static const unsigned char asso_values[] =
- {
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 0, 17, 0, 17, 0,
- 0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
- 17, 0, 17, 17, 17, 17, 17, 17,
- };
- return len + asso_values[str[len - 1]] + asso_values[str[0]];
-}
-
-const class TAO_operation_db_entry *
-TAO_PortableServer_IdAssignmentPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len)
-{
- enum
- {
- TOTAL_KEYWORDS = 6,
- MIN_WORD_LENGTH = 4,
- MAX_WORD_LENGTH = 16,
- MIN_HASH_VALUE = 4,
- MAX_HASH_VALUE = 16,
- HASH_VALUE_RANGE = 13,
- DUPLICATES = 0
- };
-
- static const class TAO_operation_db_entry wordlist[] =
- {
- {"",0}, {"",0}, {"",0}, {"",0},
- {"copy", &POA_PortableServer::IdAssignmentPolicy::copy_skel},
- {"_is_a", &POA_PortableServer::IdAssignmentPolicy::_is_a_skel},
- {"",0},
- {"destroy", &POA_PortableServer::IdAssignmentPolicy::destroy_skel},
- {"",0}, {"",0},
- {"_get_value", &POA_PortableServer::IdAssignmentPolicy::_get_value_skel},
- {"",0}, {"",0},
- {"_non_existent", &POA_PortableServer::IdAssignmentPolicy::_non_existent_skel},
- {"",0}, {"",0},
- {"_get_policy_type", &POA_PortableServer::IdAssignmentPolicy::_get_policy_type_skel},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- unsigned int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- const char *s = wordlist[key].opname_;
-
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
-/* ending time is 0:12:47 */
-TAO_PortableServer_IdAssignmentPolicy_Perfect_Hash_OpTable tao_PortableServer_IdAssignmentPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton constructor
-POA_PortableServer::IdAssignmentPolicy::IdAssignmentPolicy (void)
-{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- this->optable_ = &tao_PortableServer_IdAssignmentPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::IdAssignmentPolicy::_get_value_skel (
- CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::IdAssignmentPolicy *_tao_impl = (POA_PortableServer::IdAssignmentPolicy *)_tao_object_reference;
- PortableServer::IdAssignmentPolicyValue _tao_retval;
- _tao_retval = _tao_impl->value (
- ACE_TRY_ENV
- );
- ACE_CHECK;
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!(
- (_tao_out << _tao_retval)
- ))
- ACE_THROW (CORBA::MARSHAL () );
-
-}
-
-void POA_PortableServer::IdAssignmentPolicy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
- POA_PortableServer::IdAssignmentPolicy *_tao_impl = (POA_PortableServer::IdAssignmentPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = 0;
- CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
- ACE_THROW (CORBA::MARSHAL ());
-
- _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void POA_PortableServer::IdAssignmentPolicy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::IdAssignmentPolicy *_tao_impl = (POA_PortableServer::IdAssignmentPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean POA_PortableServer::IdAssignmentPolicy::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::IdAssignmentPolicy::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::IdAssignmentPolicy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Policy:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::IdAssignmentPolicy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-const char* POA_PortableServer::IdAssignmentPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/IdAssignmentPolicy:1.0";
-}
-
-POA_PortableServer::_tao_collocated_IdAssignmentPolicy::_tao_collocated_IdAssignmentPolicy (
- POA_PortableServer::IdAssignmentPolicy_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, IdAssignmentPolicy) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA, _tao_collocated_Policy) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::IdAssignmentPolicy_ptr POA_PortableServer::_tao_collocated_IdAssignmentPolicy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_IdAssignmentPolicy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Policy_ptr POA_PortableServer::_tao_collocated_IdAssignmentPolicy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->copy (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_IdAssignmentPolicy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- ACE_TRY_ENV
- );
-}
-
-CORBA::PolicyType POA_PortableServer::_tao_collocated_IdAssignmentPolicy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->policy_type (ACE_TRY_ENV);
-}
-
-PortableServer::IdAssignmentPolicyValue
-POA_PortableServer::_tao_collocated_IdAssignmentPolicy::value (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->value(ACE_TRY_ENV);
-}
-
-PortableServer::IdAssignmentPolicy*
-POA_PortableServer::IdAssignmentPolicy::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- PortableServer::IdAssignmentPolicy *retval =
- PortableServer::IdAssignmentPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_IdAssignmentPolicy (this,
- stub),
- PortableServer::IdAssignmentPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-class TAO_PortableServer_ImplicitActivationPolicy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
-{
-private:
- unsigned int hash (const char *str, unsigned int len);
-public:
- const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
-};
-/* starting time is 0:12:47 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_PortableServer_ImplicitActivationPolicy_Perfect_Hash_OpTable -N lookup */
-unsigned int
-TAO_PortableServer_ImplicitActivationPolicy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
-{
- static const unsigned char asso_values[] =
- {
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 0, 17, 0, 17, 0,
- 0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
- 17, 0, 17, 17, 17, 17, 17, 17,
- };
- return len + asso_values[str[len - 1]] + asso_values[str[0]];
-}
-
-const class TAO_operation_db_entry *
-TAO_PortableServer_ImplicitActivationPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len)
-{
- enum
- {
- TOTAL_KEYWORDS = 6,
- MIN_WORD_LENGTH = 4,
- MAX_WORD_LENGTH = 16,
- MIN_HASH_VALUE = 4,
- MAX_HASH_VALUE = 16,
- HASH_VALUE_RANGE = 13,
- DUPLICATES = 0
- };
-
- static const class TAO_operation_db_entry wordlist[] =
- {
- {"",0}, {"",0}, {"",0}, {"",0},
- {"copy", &POA_PortableServer::ImplicitActivationPolicy::copy_skel},
- {"_is_a", &POA_PortableServer::ImplicitActivationPolicy::_is_a_skel},
- {"",0},
- {"destroy", &POA_PortableServer::ImplicitActivationPolicy::destroy_skel},
- {"",0}, {"",0},
- {"_get_value", &POA_PortableServer::ImplicitActivationPolicy::_get_value_skel},
- {"",0}, {"",0},
- {"_non_existent", &POA_PortableServer::ImplicitActivationPolicy::_non_existent_skel},
- {"",0}, {"",0},
- {"_get_policy_type", &POA_PortableServer::ImplicitActivationPolicy::_get_policy_type_skel},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- unsigned int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- const char *s = wordlist[key].opname_;
-
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
-/* ending time is 0:12:47 */
-TAO_PortableServer_ImplicitActivationPolicy_Perfect_Hash_OpTable tao_PortableServer_ImplicitActivationPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton constructor
-POA_PortableServer::ImplicitActivationPolicy::ImplicitActivationPolicy (void)
-{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- this->optable_ = &tao_PortableServer_ImplicitActivationPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::ImplicitActivationPolicy::_get_value_skel (
- CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::ImplicitActivationPolicy *_tao_impl = (POA_PortableServer::ImplicitActivationPolicy *)_tao_object_reference;
- PortableServer::ImplicitActivationPolicyValue _tao_retval;
- _tao_retval = _tao_impl->value (
- ACE_TRY_ENV
- );
- ACE_CHECK;
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!(
- (_tao_out << _tao_retval)
- ))
- ACE_THROW (CORBA::MARSHAL () );
-
-}
-
-void POA_PortableServer::ImplicitActivationPolicy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
- POA_PortableServer::ImplicitActivationPolicy *_tao_impl = (POA_PortableServer::ImplicitActivationPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = 0;
- CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
- ACE_THROW (CORBA::MARSHAL ());
-
- _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void POA_PortableServer::ImplicitActivationPolicy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::ImplicitActivationPolicy *_tao_impl = (POA_PortableServer::ImplicitActivationPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean POA_PortableServer::ImplicitActivationPolicy::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::ImplicitActivationPolicy::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ImplicitActivationPolicy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Policy:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::ImplicitActivationPolicy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-const char* POA_PortableServer::ImplicitActivationPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ImplicitActivationPolicy:1.0";
-}
-
-POA_PortableServer::_tao_collocated_ImplicitActivationPolicy::_tao_collocated_ImplicitActivationPolicy (
- POA_PortableServer::ImplicitActivationPolicy_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, ImplicitActivationPolicy) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA, _tao_collocated_Policy) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::ImplicitActivationPolicy_ptr POA_PortableServer::_tao_collocated_ImplicitActivationPolicy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_ImplicitActivationPolicy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Policy_ptr POA_PortableServer::_tao_collocated_ImplicitActivationPolicy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->copy (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_ImplicitActivationPolicy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- ACE_TRY_ENV
- );
-}
-
-CORBA::PolicyType POA_PortableServer::_tao_collocated_ImplicitActivationPolicy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->policy_type (ACE_TRY_ENV);
-}
-
-PortableServer::ImplicitActivationPolicyValue
-POA_PortableServer::_tao_collocated_ImplicitActivationPolicy::value (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->value(ACE_TRY_ENV);
-}
-
-PortableServer::ImplicitActivationPolicy*
-POA_PortableServer::ImplicitActivationPolicy::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- PortableServer::ImplicitActivationPolicy *retval =
- PortableServer::ImplicitActivationPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ImplicitActivationPolicy (this,
- stub),
- PortableServer::ImplicitActivationPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-class TAO_PortableServer_ServantRetentionPolicy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
-{
-private:
- unsigned int hash (const char *str, unsigned int len);
-public:
- const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
-};
-/* starting time is 0:12:47 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_PortableServer_ServantRetentionPolicy_Perfect_Hash_OpTable -N lookup */
-unsigned int
-TAO_PortableServer_ServantRetentionPolicy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
-{
- static const unsigned char asso_values[] =
- {
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 0, 17, 0, 17, 0,
- 0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
- 17, 0, 17, 17, 17, 17, 17, 17,
- };
- return len + asso_values[str[len - 1]] + asso_values[str[0]];
-}
-
-const class TAO_operation_db_entry *
-TAO_PortableServer_ServantRetentionPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len)
-{
- enum
- {
- TOTAL_KEYWORDS = 6,
- MIN_WORD_LENGTH = 4,
- MAX_WORD_LENGTH = 16,
- MIN_HASH_VALUE = 4,
- MAX_HASH_VALUE = 16,
- HASH_VALUE_RANGE = 13,
- DUPLICATES = 0
- };
-
- static const class TAO_operation_db_entry wordlist[] =
- {
- {"",0}, {"",0}, {"",0}, {"",0},
- {"copy", &POA_PortableServer::ServantRetentionPolicy::copy_skel},
- {"_is_a", &POA_PortableServer::ServantRetentionPolicy::_is_a_skel},
- {"",0},
- {"destroy", &POA_PortableServer::ServantRetentionPolicy::destroy_skel},
- {"",0}, {"",0},
- {"_get_value", &POA_PortableServer::ServantRetentionPolicy::_get_value_skel},
- {"",0}, {"",0},
- {"_non_existent", &POA_PortableServer::ServantRetentionPolicy::_non_existent_skel},
- {"",0}, {"",0},
- {"_get_policy_type", &POA_PortableServer::ServantRetentionPolicy::_get_policy_type_skel},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- unsigned int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- const char *s = wordlist[key].opname_;
-
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
-/* ending time is 0:12:47 */
-TAO_PortableServer_ServantRetentionPolicy_Perfect_Hash_OpTable tao_PortableServer_ServantRetentionPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton constructor
-POA_PortableServer::ServantRetentionPolicy::ServantRetentionPolicy (void)
-{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- this->optable_ = &tao_PortableServer_ServantRetentionPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::ServantRetentionPolicy::_get_value_skel (
- CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::ServantRetentionPolicy *_tao_impl = (POA_PortableServer::ServantRetentionPolicy *)_tao_object_reference;
- PortableServer::ServantRetentionPolicyValue _tao_retval;
- _tao_retval = _tao_impl->value (
- ACE_TRY_ENV
- );
- ACE_CHECK;
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!(
- (_tao_out << _tao_retval)
- ))
- ACE_THROW (CORBA::MARSHAL () );
-
-}
-
-void POA_PortableServer::ServantRetentionPolicy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
- POA_PortableServer::ServantRetentionPolicy *_tao_impl = (POA_PortableServer::ServantRetentionPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = 0;
- CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
- ACE_THROW (CORBA::MARSHAL ());
-
- _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void POA_PortableServer::ServantRetentionPolicy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::ServantRetentionPolicy *_tao_impl = (POA_PortableServer::ServantRetentionPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean POA_PortableServer::ServantRetentionPolicy::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::ServantRetentionPolicy::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ServantRetentionPolicy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Policy:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::ServantRetentionPolicy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-const char* POA_PortableServer::ServantRetentionPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantRetentionPolicy:1.0";
-}
-
-POA_PortableServer::_tao_collocated_ServantRetentionPolicy::_tao_collocated_ServantRetentionPolicy (
- POA_PortableServer::ServantRetentionPolicy_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, ServantRetentionPolicy) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA, _tao_collocated_Policy) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::ServantRetentionPolicy_ptr POA_PortableServer::_tao_collocated_ServantRetentionPolicy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_ServantRetentionPolicy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Policy_ptr POA_PortableServer::_tao_collocated_ServantRetentionPolicy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->copy (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_ServantRetentionPolicy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- ACE_TRY_ENV
- );
-}
-
-CORBA::PolicyType POA_PortableServer::_tao_collocated_ServantRetentionPolicy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->policy_type (ACE_TRY_ENV);
-}
-
-PortableServer::ServantRetentionPolicyValue
-POA_PortableServer::_tao_collocated_ServantRetentionPolicy::value (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->value(ACE_TRY_ENV);
-}
-
-PortableServer::ServantRetentionPolicy*
-POA_PortableServer::ServantRetentionPolicy::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- PortableServer::ServantRetentionPolicy *retval =
- PortableServer::ServantRetentionPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_ServantRetentionPolicy (this,
- stub),
- PortableServer::ServantRetentionPolicy::_nil ()
- );
-
- return retval;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-class TAO_PortableServer_RequestProcessingPolicy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
-{
-private:
- unsigned int hash (const char *str, unsigned int len);
-public:
- const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
-};
-/* starting time is 0:12:47 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_PortableServer_RequestProcessingPolicy_Perfect_Hash_OpTable -N lookup */
-unsigned int
-TAO_PortableServer_RequestProcessingPolicy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
-{
- static const unsigned char asso_values[] =
- {
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 0, 17, 0, 17, 0,
- 0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
- 17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
- 17, 0, 17, 17, 17, 17, 17, 17,
- };
- return len + asso_values[str[len - 1]] + asso_values[str[0]];
-}
-
-const class TAO_operation_db_entry *
-TAO_PortableServer_RequestProcessingPolicy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len)
-{
- enum
- {
- TOTAL_KEYWORDS = 6,
- MIN_WORD_LENGTH = 4,
- MAX_WORD_LENGTH = 16,
- MIN_HASH_VALUE = 4,
- MAX_HASH_VALUE = 16,
- HASH_VALUE_RANGE = 13,
- DUPLICATES = 0
- };
-
- static const class TAO_operation_db_entry wordlist[] =
- {
- {"",0}, {"",0}, {"",0}, {"",0},
- {"copy", &POA_PortableServer::RequestProcessingPolicy::copy_skel},
- {"_is_a", &POA_PortableServer::RequestProcessingPolicy::_is_a_skel},
- {"",0},
- {"destroy", &POA_PortableServer::RequestProcessingPolicy::destroy_skel},
- {"",0}, {"",0},
- {"_get_value", &POA_PortableServer::RequestProcessingPolicy::_get_value_skel},
- {"",0}, {"",0},
- {"_non_existent", &POA_PortableServer::RequestProcessingPolicy::_non_existent_skel},
- {"",0}, {"",0},
- {"_get_policy_type", &POA_PortableServer::RequestProcessingPolicy::_get_policy_type_skel},
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- unsigned int key = hash (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
- {
- const char *s = wordlist[key].opname_;
-
- if (*str == *s && !strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
-/* ending time is 0:12:47 */
-TAO_PortableServer_RequestProcessingPolicy_Perfect_Hash_OpTable tao_PortableServer_RequestProcessingPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton constructor
-POA_PortableServer::RequestProcessingPolicy::RequestProcessingPolicy (void)
-{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- this->optable_ = &tao_PortableServer_RequestProcessingPolicy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::RequestProcessingPolicy::_get_value_skel (
- CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::RequestProcessingPolicy *_tao_impl = (POA_PortableServer::RequestProcessingPolicy *)_tao_object_reference;
- PortableServer::RequestProcessingPolicyValue _tao_retval;
- _tao_retval = _tao_impl->value (
- ACE_TRY_ENV
- );
- ACE_CHECK;
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!(
- (_tao_out << _tao_retval)
- ))
- ACE_THROW (CORBA::MARSHAL () );
-
-}
-
-void POA_PortableServer::RequestProcessingPolicy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
- POA_PortableServer::RequestProcessingPolicy *_tao_impl = (POA_PortableServer::RequestProcessingPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = 0;
- CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
- ACE_THROW (CORBA::MARSHAL ());
-
- _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-
-void POA_PortableServer::RequestProcessingPolicy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- POA_PortableServer::RequestProcessingPolicy *_tao_impl = (POA_PortableServer::RequestProcessingPolicy *) _tao_object_reference;
- CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
- ACE_CHECK;
-
- _tao_server_request.init_reply (ACE_TRY_ENV);
- ACE_CHECK;
- TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
- ACE_THROW (CORBA::MARSHAL ());
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-CORBA::Boolean POA_PortableServer::RequestProcessingPolicy::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Policy:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::RequestProcessingPolicy::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::RequestProcessingPolicy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Policy:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-void POA_PortableServer::RequestProcessingPolicy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-const char* POA_PortableServer::RequestProcessingPolicy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/RequestProcessingPolicy:1.0";
-}
-
-POA_PortableServer::_tao_collocated_RequestProcessingPolicy::_tao_collocated_RequestProcessingPolicy (
- POA_PortableServer::RequestProcessingPolicy_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, RequestProcessingPolicy) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA, _tao_collocated_Policy) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::RequestProcessingPolicy_ptr POA_PortableServer::_tao_collocated_RequestProcessingPolicy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_RequestProcessingPolicy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Policy_ptr POA_PortableServer::_tao_collocated_RequestProcessingPolicy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->copy (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_RequestProcessingPolicy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- ACE_TRY_ENV
- );
-}
-
-CORBA::PolicyType POA_PortableServer::_tao_collocated_RequestProcessingPolicy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->policy_type (ACE_TRY_ENV);
-}
-
-PortableServer::RequestProcessingPolicyValue
-POA_PortableServer::_tao_collocated_RequestProcessingPolicy::value (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->value(ACE_TRY_ENV);
-}
-
-PortableServer::RequestProcessingPolicy*
-POA_PortableServer::RequestProcessingPolicy::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- PortableServer::RequestProcessingPolicy *retval =
- PortableServer::RequestProcessingPolicy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_PortableServer::_tao_collocated_RequestProcessingPolicy (this,
- stub),
- PortableServer::RequestProcessingPolicy::_nil ()
- );
-
- return retval;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// skeleton constructor
-POA_PortableServer::POAManager::POAManager (void)
-{
-}
-
-CORBA::Boolean POA_PortableServer::POAManager::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/POAManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::POAManager::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/POAManager:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::POAManager_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_PortableServer::POAManager::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/POAManager:1.0";
-}
-
-POA_PortableServer::_tao_collocated_POAManager::_tao_collocated_POAManager (
- POA_PortableServer::POAManager_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, POAManager) (stub, servant, 1),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::POAManager_ptr POA_PortableServer::_tao_collocated_POAManager::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_POAManager::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POAManager::activate (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->activate (
- ACE_TRY_ENV
- );
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-void POA_PortableServer::_tao_collocated_POAManager::hold_requests (
- CORBA::Boolean wait_for_completion,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->hold_requests (
- wait_for_completion,
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POAManager::discard_requests (
- CORBA::Boolean wait_for_completion,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->discard_requests (
- wait_for_completion,
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POAManager::deactivate (
- CORBA::Boolean etherealize_objects,
- CORBA::Boolean wait_for_completion,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->deactivate (
- etherealize_objects,
- wait_for_completion,
- ACE_TRY_ENV
- );
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-PortableServer::POAManager::State
-POA_PortableServer::_tao_collocated_POAManager:: get_state(CORBA::Environment &ACE_TRY_ENV)
-{
- return this->servant_->get_state (ACE_TRY_ENV);
-}
-
-PortableServer::POAManager*
-POA_PortableServer::POAManager::_this (CORBA_Environment &)
-{
- PortableServer::POAManager *retval =
- PortableServer::POAManager::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_POAManager (this,
- 0),
- PortableServer::POAManager::_nil ());
-
-
- return retval;
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-// skeleton constructor
-POA_PortableServer::AdapterActivator::AdapterActivator (void)
-{
-}
-
-CORBA::Boolean POA_PortableServer::AdapterActivator::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/AdapterActivator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::AdapterActivator::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/AdapterActivator:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::AdapterActivator_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_PortableServer::AdapterActivator::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/AdapterActivator:1.0";
-}
-
-POA_PortableServer::_tao_collocated_AdapterActivator::_tao_collocated_AdapterActivator (
- POA_PortableServer::AdapterActivator_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, AdapterActivator) (stub, servant, 1),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::AdapterActivator_ptr POA_PortableServer::_tao_collocated_AdapterActivator::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_AdapterActivator::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_AdapterActivator::unknown_adapter (
- PortableServer::POA_ptr parent,
- const char* name,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->unknown_adapter (
- parent,
- name,
- ACE_TRY_ENV
- );
-}
-
-
-PortableServer::AdapterActivator*
-POA_PortableServer::AdapterActivator::_this (CORBA_Environment &)
-{
- PortableServer::AdapterActivator *retval =
- PortableServer::AdapterActivator::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_AdapterActivator (this,
- 0),
- PortableServer::AdapterActivator::_nil ());
-
-
- return retval;
-}
-
-// skeleton constructor
-POA_PortableServer::ServantManager::ServantManager (void)
-{
-}
-
-CORBA::Boolean POA_PortableServer::ServantManager::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::ServantManager::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ServantManager:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ServantManager_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_PortableServer::ServantManager::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantManager:1.0";
-}
-
-POA_PortableServer::_tao_collocated_ServantManager::_tao_collocated_ServantManager (
- POA_PortableServer::ServantManager_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, ServantManager) (stub, servant, 1),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::ServantManager_ptr POA_PortableServer::_tao_collocated_ServantManager::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_ServantManager::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-
-PortableServer::ServantManager*
-POA_PortableServer::ServantManager::_this (CORBA_Environment &)
-{
- PortableServer::ServantManager *retval =
- PortableServer::ServantManager::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_ServantManager (this,
- 0),
- PortableServer::ServantManager::_nil ());
-
-
- return retval;
-}
-
-// skeleton constructor
-POA_PortableServer::ServantActivator::ServantActivator (void)
-{
-}
-
-CORBA::Boolean POA_PortableServer::ServantActivator::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantActivator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::ServantActivator::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ServantActivator:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ServantActivator_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ServantManager:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ServantManager_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_PortableServer::ServantActivator::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantActivator:1.0";
-}
-
-POA_PortableServer::_tao_collocated_ServantActivator::_tao_collocated_ServantActivator (
- POA_PortableServer::ServantActivator_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, ServantActivator) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_PortableServer, _tao_collocated_ServantManager) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::ServantActivator_ptr POA_PortableServer::_tao_collocated_ServantActivator::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_ServantActivator::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::Servant
-POA_PortableServer::_tao_collocated_ServantActivator::incarnate (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
-#if defined(TAO_HAS_EXCEPTIONS)
- ACE_UNUSED_ARG (ACE_TRY_ENV);
-#endif /* TAO_HAS_EXCEPTIONS */
- return this->servant_->incarnate (
- oid,
- adapter
-#if !defined(TAO_HAS_EXCEPTIONS)
- , ACE_TRY_ENV
-#endif /* TAO_HAS_EXCEPTIONS */
- );
-}
-
-void
-POA_PortableServer::_tao_collocated_ServantActivator::etherealize (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- PortableServer::Servant serv,
- CORBA::Boolean cleanup_in_progress,
- CORBA::Boolean remaining_activations,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
-#if defined(TAO_HAS_EXCEPTIONS)
- ACE_UNUSED_ARG (ACE_TRY_ENV);
-#endif /* TAO_HAS_EXCEPTIONS */
- this->servant_->etherealize (
- oid,
- adapter,
- serv,
- cleanup_in_progress,
- remaining_activations
-#if !defined(TAO_HAS_EXCEPTIONS)
- , ACE_TRY_ENV
-#endif /* TAO_HAS_EXCEPTIONS */
- );
-}
-
-PortableServer::ServantActivator*
-POA_PortableServer::ServantActivator::_this (CORBA_Environment &)
-{
- PortableServer::ServantActivator *retval =
- PortableServer::ServantActivator::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_ServantActivator (this,
- 0),
- PortableServer::ServantActivator::_nil ());
-
-
- return retval;
-}
-
-// skeleton constructor
-POA_PortableServer::ServantLocator::ServantLocator (void)
-{
-}
-
-CORBA::Boolean POA_PortableServer::ServantLocator::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantLocator:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/ServantManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::ServantLocator::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ServantLocator:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ServantLocator_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/ServantManager:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::ServantManager_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_PortableServer::ServantLocator::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/ServantLocator:1.0";
-}
-
-POA_PortableServer::_tao_collocated_ServantLocator::_tao_collocated_ServantLocator (
- POA_PortableServer::ServantLocator_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, ServantLocator) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_PortableServer, _tao_collocated_ServantManager) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::ServantLocator_ptr POA_PortableServer::_tao_collocated_ServantLocator::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_ServantLocator::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::Servant
-POA_PortableServer::_tao_collocated_ServantLocator::preinvoke (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- const char * operation,
- PortableServer::ServantLocator::Cookie & the_cookie,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
-#if defined(TAO_HAS_EXCEPTIONS)
- ACE_UNUSED_ARG (ACE_TRY_ENV);
-#endif /* TAO_HAS_EXCEPTIONS */
- return this->servant_->preinvoke (
- oid,
- adapter,
- operation,
- the_cookie
-#if !defined(TAO_HAS_EXCEPTIONS)
- , ACE_TRY_ENV
-#endif /* TAO_HAS_EXCEPTIONS */
- );
-}
-
-void
-POA_PortableServer::_tao_collocated_ServantLocator::postinvoke (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- const char * operation,
- PortableServer::ServantLocator::Cookie the_cookie,
- PortableServer::Servant the_servant,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
-#if defined(TAO_HAS_EXCEPTIONS)
- ACE_UNUSED_ARG (ACE_TRY_ENV);
-#endif /* TAO_HAS_EXCEPTIONS */
- this->servant_->postinvoke (
- oid,
- adapter,
- operation,
- the_cookie,
- the_servant
-#if !defined(TAO_HAS_EXCEPTIONS)
- , ACE_TRY_ENV
-#endif /* TAO_HAS_EXCEPTIONS */
- );
-}
-
-
-PortableServer::ServantLocator*
-POA_PortableServer::ServantLocator::_this (CORBA_Environment &)
-{
- PortableServer::ServantLocator *retval =
- PortableServer::ServantLocator::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_ServantLocator (this,
- 0),
- PortableServer::ServantLocator::_nil ());
-
-
- return retval;
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// skeleton constructor
-POA_PortableServer::POA::POA (void)
-{
-}
-
-CORBA::Boolean POA_PortableServer::POA::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/POA:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::POA::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/POA:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::POA_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_PortableServer::POA::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/POA:1.0";
-}
-
-POA_PortableServer::_tao_collocated_POA::_tao_collocated_POA (
- POA_PortableServer::POA_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, POA) (stub, servant, 1),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::POA_ptr POA_PortableServer::_tao_collocated_POA::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_POA::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::POA_ptr POA_PortableServer::_tao_collocated_POA::create_POA (
- const char* adapter_name,
- PortableServer::POAManager_ptr a_POAManager,
- const CORBA::PolicyList & policies,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_POA (
- adapter_name,
- a_POAManager,
- policies,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::POA_ptr POA_PortableServer::_tao_collocated_POA::find_POA (
- const char* adapter_name,
- CORBA::Boolean activate_it,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->find_POA (
- adapter_name,
- activate_it,
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POA::destroy (
- CORBA::Boolean etherealize_objects,
- CORBA::Boolean wait_for_completion,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->destroy (
- etherealize_objects,
- wait_for_completion,
- ACE_TRY_ENV
- );
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-PortableServer::ThreadPolicy_ptr POA_PortableServer::_tao_collocated_POA::create_thread_policy (
- PortableServer::ThreadPolicyValue value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_thread_policy (
- value,
- ACE_TRY_ENV
- );
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-PortableServer::LifespanPolicy_ptr POA_PortableServer::_tao_collocated_POA::create_lifespan_policy (
- PortableServer::LifespanPolicyValue value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_lifespan_policy (
- value,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::IdUniquenessPolicy_ptr POA_PortableServer::_tao_collocated_POA::create_id_uniqueness_policy (
- PortableServer::IdUniquenessPolicyValue value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_id_uniqueness_policy (
- value,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::IdAssignmentPolicy_ptr POA_PortableServer::_tao_collocated_POA::create_id_assignment_policy (
- PortableServer::IdAssignmentPolicyValue value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_id_assignment_policy (
- value,
- ACE_TRY_ENV
- );
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-PortableServer::ImplicitActivationPolicy_ptr POA_PortableServer::_tao_collocated_POA::create_implicit_activation_policy (
- PortableServer::ImplicitActivationPolicyValue value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_implicit_activation_policy (
- value,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::ServantRetentionPolicy_ptr POA_PortableServer::_tao_collocated_POA::create_servant_retention_policy (
- PortableServer::ServantRetentionPolicyValue value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_servant_retention_policy (
- value,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::RequestProcessingPolicy_ptr POA_PortableServer::_tao_collocated_POA::create_request_processing_policy (
- PortableServer::RequestProcessingPolicyValue value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_request_processing_policy (
- value,
- ACE_TRY_ENV
- );
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-char*
-POA_PortableServer::_tao_collocated_POA::the_name (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->the_name(ACE_TRY_ENV);
-}
-PortableServer::POA_ptr
-POA_PortableServer::_tao_collocated_POA::the_parent (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->the_parent(ACE_TRY_ENV);
-}
-PortableServer::POAManager_ptr
-POA_PortableServer::_tao_collocated_POA::the_POAManager (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->the_POAManager(ACE_TRY_ENV);
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-PortableServer::AdapterActivator_ptr
-POA_PortableServer::_tao_collocated_POA::the_activator (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->the_activator(ACE_TRY_ENV);
-}
-
-void POA_PortableServer::_tao_collocated_POA::the_activator (
- PortableServer::AdapterActivator_ptr _tao_value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->the_activator (
- _tao_value,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::ServantManager_ptr POA_PortableServer::_tao_collocated_POA::get_servant_manager (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->get_servant_manager (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POA::set_servant_manager (
- PortableServer::ServantManager_ptr imgr,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->set_servant_manager (
- imgr,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::Servant POA_PortableServer::_tao_collocated_POA::get_servant (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->get_servant (
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POA::set_servant (
- PortableServer::Servant p_servant,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->set_servant (
- p_servant,
- ACE_TRY_ENV
- );
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-PortableServer::ObjectId * POA_PortableServer::_tao_collocated_POA::activate_object (
- PortableServer::Servant p_servant,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->activate_object (
- p_servant,
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POA::activate_object_with_id (
- const PortableServer::ObjectId & id,
- PortableServer::Servant p_servant,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->activate_object_with_id (
- id,
- p_servant,
- ACE_TRY_ENV
- );
-}
-
-void POA_PortableServer::_tao_collocated_POA::deactivate_object (
- const PortableServer::ObjectId & oid,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- this->servant_->deactivate_object (
- oid,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Object_ptr POA_PortableServer::_tao_collocated_POA::create_reference (
- const char *intf,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_reference (
- intf,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Object_ptr POA_PortableServer::_tao_collocated_POA::create_reference_with_id (
- const PortableServer::ObjectId & oid,
- const char *intf,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->create_reference_with_id (
- oid,
- intf,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::ObjectId * POA_PortableServer::_tao_collocated_POA::servant_to_id (
- PortableServer::Servant p_servant,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->servant_to_id (
- p_servant,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Object_ptr POA_PortableServer::_tao_collocated_POA::servant_to_reference (
- PortableServer::Servant p_servant,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->servant_to_reference (
- p_servant,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::Servant POA_PortableServer::_tao_collocated_POA::reference_to_servant (
- CORBA::Object_ptr reference,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->reference_to_servant (
- reference,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::ObjectId * POA_PortableServer::_tao_collocated_POA::reference_to_id (
- CORBA::Object_ptr reference,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->reference_to_id (
- reference,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::Servant POA_PortableServer::_tao_collocated_POA::id_to_servant (
- const PortableServer::ObjectId & oid,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->id_to_servant (
- oid,
- ACE_TRY_ENV
- );
-}
-
-CORBA::Object_ptr POA_PortableServer::_tao_collocated_POA::id_to_reference (
- const PortableServer::ObjectId & oid,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->id_to_reference (
- oid,
- ACE_TRY_ENV
- );
-}
-
-
-PortableServer::POA*
-POA_PortableServer::POA::_this (CORBA_Environment &)
-{
- PortableServer::POA *retval =
- PortableServer::POA::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_POA (this,
- 0),
- PortableServer::POA::_nil ());
-
-
- return retval;
-}
-
-// skeleton constructor
-POA_PortableServer::Current::Current (void)
-{
-}
-
-CORBA::Boolean POA_PortableServer::Current::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/PortableServer/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_PortableServer::Current::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/PortableServer/Current:1.0") == 0)
- return ACE_static_cast (POA_PortableServer::Current_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Current:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Current_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_PortableServer::Current::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableServer/Current:1.0";
-}
-
-POA_PortableServer::_tao_collocated_Current::_tao_collocated_Current (
- POA_PortableServer::Current_ptr servant,
- TAO_Stub *stub
- )
- : ACE_NESTED_CLASS (PortableServer, Current) (stub, servant, 1),
- ACE_NESTED_CLASS (POA_CORBA,_tao_collocated_Current) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_PortableServer::Current_ptr POA_PortableServer::_tao_collocated_Current::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_PortableServer::_tao_collocated_Current::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- ACE_TRY_ENV
- );
-}
-
-PortableServer::POA_ptr POA_PortableServer::_tao_collocated_Current::get_POA (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->get_POA (
- ACE_TRY_ENV
- );
-}
-
-PortableServer::ObjectId * POA_PortableServer::_tao_collocated_Current::get_object_id (
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->get_object_id (
- ACE_TRY_ENV
- );
-}
-
-
-PortableServer::Current*
-POA_PortableServer::Current::_this (CORBA_Environment &)
-{
- PortableServer::Current *retval =
- PortableServer::Current::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_PortableServer::_tao_collocated_Current (this,
- 0),
- PortableServer::Current::_nil ());
-
-
- return retval;
-}
diff --git a/TAO/tao/POAS.h b/TAO/tao/POAS.h
deleted file mode 100644
index 208cca9ce57..00000000000
--- a/TAO/tao/POAS.h
+++ /dev/null
@@ -1,1265 +0,0 @@
-// $Id$
-//
-// ============================================================================
-//
-// = LIBRARY
-// TAO
-//
-// = FILENAME
-// POAC.h
-//
-// = DESCRIPTION
-//
-// POA skels. This code generated by the The ACE ORB (TAO) IDL
-// Compiler and is not meant to be read.
-//
-// ============================================================================
-
-#ifndef TAO_IDL_POAS_H
-#define TAO_IDL_POAS_H
-#include "ace/pre.h"
-
-#include "tao/POAC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Servant_Base.h"
-#include "tao/POA_CORBA.h"
-
-#if defined (TAO_EXPORT_MACRO)
-#undef TAO_EXPORT_MACRO
-#endif
-#define TAO_EXPORT_MACRO TAO_Export
-#if defined(_MSC_VER)
-#if (_MSC_VER >= 1200)
-#pragma warning(push)
-#endif /* _MSC_VER >= 1200 */
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-TAO_NAMESPACE POA_PortableServer
-{
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- class ThreadPolicy;
- typedef ThreadPolicy *ThreadPolicy_ptr;
- class TAO_Export ThreadPolicy : public virtual POA_CORBA::Policy
- {
- protected:
- ThreadPolicy (void);
- public:
- virtual ~ThreadPolicy (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::ThreadPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_value_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _is_a_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _non_existent_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ());
-
- static void copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual void _dispatch (CORBA::ServerRequest &req, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::ThreadPolicy *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_THREADPOLICY___COLLOCATED_SH_)
-#define _PORTABLESERVER_THREADPOLICY___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_ThreadPolicy : public virtual PortableServer::ThreadPolicy,
- public virtual POA_CORBA::_tao_collocated_Policy
- {
- public:
- _tao_collocated_ThreadPolicy (
- ThreadPolicy_ptr servant,
- TAO_Stub *stub
- );
- ThreadPolicy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ThreadPolicyValue value (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- private:
- ThreadPolicy_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- class LifespanPolicy;
- typedef LifespanPolicy *LifespanPolicy_ptr;
- class TAO_Export LifespanPolicy : public virtual POA_CORBA::Policy
- {
- protected:
- LifespanPolicy (void);
- public:
- virtual ~LifespanPolicy (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::LifespanPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_value_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _is_a_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _non_existent_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ());
-
- static void copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual void _dispatch (CORBA::ServerRequest &req, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::LifespanPolicy *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_LIFESPANPOLICY___COLLOCATED_SH_)
-#define _PORTABLESERVER_LIFESPANPOLICY___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_LifespanPolicy : public virtual PortableServer::LifespanPolicy,
- public virtual POA_CORBA::_tao_collocated_Policy
- {
- public:
- _tao_collocated_LifespanPolicy (
- LifespanPolicy_ptr servant,
- TAO_Stub *stub
- );
- LifespanPolicy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::LifespanPolicyValue value (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- LifespanPolicy_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class IdUniquenessPolicy;
- typedef IdUniquenessPolicy *IdUniquenessPolicy_ptr;
- class TAO_Export IdUniquenessPolicy : public virtual POA_CORBA::Policy
- {
- protected:
- IdUniquenessPolicy (void);
- public:
- virtual ~IdUniquenessPolicy (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::IdUniquenessPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_value_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _is_a_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _non_existent_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ());
-
- static void copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual void _dispatch (CORBA::ServerRequest &req, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::IdUniquenessPolicy *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___COLLOCATED_SH_)
-#define _PORTABLESERVER_IDUNIQUENESSPOLICY___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_IdUniquenessPolicy : public virtual PortableServer::IdUniquenessPolicy,
- public virtual POA_CORBA::_tao_collocated_Policy
- {
- public:
- _tao_collocated_IdUniquenessPolicy (
- IdUniquenessPolicy_ptr servant,
- TAO_Stub *stub
- );
- IdUniquenessPolicy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::IdUniquenessPolicyValue value (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- IdUniquenessPolicy_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class IdAssignmentPolicy;
- typedef IdAssignmentPolicy *IdAssignmentPolicy_ptr;
- class TAO_Export IdAssignmentPolicy : public virtual POA_CORBA::Policy
- {
- protected:
- IdAssignmentPolicy (void);
- public:
- virtual ~IdAssignmentPolicy (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::IdAssignmentPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_value_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _is_a_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _non_existent_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ());
-
- static void copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual void _dispatch (CORBA::ServerRequest &req, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::IdAssignmentPolicy *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___COLLOCATED_SH_)
-#define _PORTABLESERVER_IDASSIGNMENTPOLICY___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_IdAssignmentPolicy : public virtual PortableServer::IdAssignmentPolicy,
- public virtual POA_CORBA::_tao_collocated_Policy
- {
- public:
- _tao_collocated_IdAssignmentPolicy (
- IdAssignmentPolicy_ptr servant,
- TAO_Stub *stub
- );
- IdAssignmentPolicy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::IdAssignmentPolicyValue value (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- IdAssignmentPolicy_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- class ImplicitActivationPolicy;
- typedef ImplicitActivationPolicy *ImplicitActivationPolicy_ptr;
- class TAO_Export ImplicitActivationPolicy : public virtual POA_CORBA::Policy
- {
- protected:
- ImplicitActivationPolicy (void);
- public:
- virtual ~ImplicitActivationPolicy (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::ImplicitActivationPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_value_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _is_a_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _non_existent_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ());
-
- static void copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual void _dispatch (CORBA::ServerRequest &req, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::ImplicitActivationPolicy *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___COLLOCATED_SH_)
-#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_ImplicitActivationPolicy : public virtual PortableServer::ImplicitActivationPolicy,
- public virtual POA_CORBA::_tao_collocated_Policy
- {
- public:
- _tao_collocated_ImplicitActivationPolicy (
- ImplicitActivationPolicy_ptr servant,
- TAO_Stub *stub
- );
- ImplicitActivationPolicy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ImplicitActivationPolicyValue value (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- ImplicitActivationPolicy_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class ServantRetentionPolicy;
- typedef ServantRetentionPolicy *ServantRetentionPolicy_ptr;
- class TAO_Export ServantRetentionPolicy : public virtual POA_CORBA::Policy
- {
- protected:
- ServantRetentionPolicy (void);
- public:
- virtual ~ServantRetentionPolicy (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::ServantRetentionPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_value_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _is_a_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _non_existent_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ());
-
- static void copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual void _dispatch (CORBA::ServerRequest &req, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::ServantRetentionPolicy *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___COLLOCATED_SH_)
-#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_ServantRetentionPolicy : public virtual PortableServer::ServantRetentionPolicy,
- public virtual POA_CORBA::_tao_collocated_Policy
- {
- public:
- _tao_collocated_ServantRetentionPolicy (
- ServantRetentionPolicy_ptr servant,
- TAO_Stub *stub
- );
- ServantRetentionPolicy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ServantRetentionPolicyValue value (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- ServantRetentionPolicy_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class RequestProcessingPolicy;
- typedef RequestProcessingPolicy *RequestProcessingPolicy_ptr;
- class TAO_Export RequestProcessingPolicy : public virtual POA_CORBA::Policy
- {
- protected:
- RequestProcessingPolicy (void);
- public:
- virtual ~RequestProcessingPolicy (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::RequestProcessingPolicyValue value (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_value_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _is_a_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _non_existent_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ());
-
- static void copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual void _dispatch (CORBA::ServerRequest &req, void *context, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- PortableServer::RequestProcessingPolicy *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___COLLOCATED_SH_)
-#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_RequestProcessingPolicy : public virtual PortableServer::RequestProcessingPolicy,
- public virtual POA_CORBA::_tao_collocated_Policy
- {
- public:
- _tao_collocated_RequestProcessingPolicy (
- RequestProcessingPolicy_ptr servant,
- TAO_Stub *stub
- );
- RequestProcessingPolicy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::RequestProcessingPolicyValue value (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- RequestProcessingPolicy_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-
- class POAManager;
- typedef POAManager *POAManager_ptr;
- class TAO_Export POAManager : public virtual TAO_Local_ServantBase
- {
- protected:
- POAManager (void);
- public:
- virtual ~POAManager (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual void activate ( CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual void hold_requests (CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual void discard_requests (CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual void deactivate (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual PortableServer::POAManager::State get_state (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- PortableServer::POAManager *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_POAMANAGER___COLLOCATED_SH_)
-#define _PORTABLESERVER_POAMANAGER___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_POAManager : public virtual PortableServer::POAManager
- {
- public:
- _tao_collocated_POAManager (
- POAManager_ptr servant,
- TAO_Stub *stub
- );
- POAManager_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void activate (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual void hold_requests (
- CORBA::Boolean wait_for_completion,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void discard_requests (
- CORBA::Boolean wait_for_completion,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void deactivate (
- CORBA::Boolean etherealize_objects,
- CORBA::Boolean wait_for_completion,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual PortableServer::POAManager::State get_state (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
-
- private:
- POAManager_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- class AdapterActivator;
- typedef AdapterActivator *AdapterActivator_ptr;
- class TAO_Export AdapterActivator : public virtual TAO_Local_ServantBase
- {
- protected:
- AdapterActivator (void);
- public:
- virtual ~AdapterActivator (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual CORBA::Boolean unknown_adapter (PortableServer::POA_ptr parent, const char *name, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- PortableServer::AdapterActivator *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___COLLOCATED_SH_)
-#define _PORTABLESERVER_ADAPTERACTIVATOR___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_AdapterActivator : public virtual PortableServer::AdapterActivator
- {
- public:
- _tao_collocated_AdapterActivator (
- AdapterActivator_ptr servant,
- TAO_Stub *stub
- );
- AdapterActivator_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Boolean unknown_adapter (
- PortableServer::POA_ptr parent,
- const char* name,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- AdapterActivator_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class ServantManager;
- typedef ServantManager *ServantManager_ptr;
- class TAO_Export ServantManager : public virtual TAO_Local_ServantBase
- {
- protected:
- ServantManager (void);
- public:
- virtual ~ServantManager (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
-
- PortableServer::ServantManager *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_SERVANTMANAGER___COLLOCATED_SH_)
-#define _PORTABLESERVER_SERVANTMANAGER___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_ServantManager : public virtual PortableServer::ServantManager
- {
- public:
- _tao_collocated_ServantManager (
- ServantManager_ptr servant,
- TAO_Stub *stub
- );
- ServantManager_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- ServantManager_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class ServantActivator;
- typedef ServantActivator *ServantActivator_ptr;
- class TAO_Export ServantActivator : public virtual ServantManager
- {
- protected:
- ServantActivator (void);
- public:
- virtual ~ServantActivator (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
-
-#if defined(TAO_HAS_EXCEPTIONS)
- virtual PortableServer::Servant incarnate (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter) = 0;
- virtual void etherealize (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- PortableServer::Servant serv,
- CORBA::Boolean cleanup_in_progress,
- CORBA::Boolean remaining_activations) = 0;
-#else
- virtual PortableServer::Servant incarnate (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void etherealize (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- PortableServer::Servant serv,
- CORBA::Boolean cleanup_in_progress,
- CORBA::Boolean remaining_activations,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* TAO_HAS_EXCEPTIONS */
-
- PortableServer::ServantActivator *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___COLLOCATED_SH_)
-#define _PORTABLESERVER_SERVANTACTIVATOR___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_ServantActivator : public virtual PortableServer::ServantActivator,
- public virtual _tao_collocated_ServantManager
- {
- public:
- _tao_collocated_ServantActivator (
- ServantActivator_ptr servant,
- TAO_Stub *stub
- );
- ServantActivator_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::Servant incarnate (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void etherealize (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- PortableServer::Servant serv,
- CORBA::Boolean cleanup_in_progress,
- CORBA::Boolean remaining_activations,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- ServantActivator_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class ServantLocator;
- typedef ServantLocator *ServantLocator_ptr;
- class TAO_Export ServantLocator : public virtual ServantManager
- {
- protected:
- ServantLocator (void);
- public:
- virtual ~ServantLocator (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id);
-
-#if defined(TAO_HAS_EXCEPTIONS)
- virtual PortableServer::Servant preinvoke (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- const char *operation,
- PortableServer::ServantLocator::Cookie & the_cookie) = 0;
- virtual void postinvoke (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- const char *operation,
- PortableServer::ServantLocator::Cookie the_cookie,
- PortableServer::Servant the_servant) = 0;
-#else
- virtual PortableServer::Servant preinvoke (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- const char *operation,
- PortableServer::ServantLocator::Cookie & the_cookie,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
- virtual void postinvoke (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- const char *operation,
- PortableServer::ServantLocator::Cookie the_cookie,
- PortableServer::Servant the_servant,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-#endif /* TAO_HAS_EXCEPTIONS */
-
- PortableServer::ServantLocator *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_SERVANTLOCATOR___COLLOCATED_SH_)
-#define _PORTABLESERVER_SERVANTLOCATOR___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_ServantLocator : public virtual PortableServer::ServantLocator,
- public virtual _tao_collocated_ServantManager
- {
- public:
- _tao_collocated_ServantLocator (
- ServantLocator_ptr servant,
- TAO_Stub *stub
- );
- ServantLocator_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::Servant preinvoke (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- const char * operation,
- PortableServer::ServantLocator::Cookie & the_cookie,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void postinvoke (
- const PortableServer::ObjectId & oid,
- PortableServer::POA_ptr adapter,
- const char * operation,
- PortableServer::ServantLocator::Cookie the_cookie,
- PortableServer::Servant the_servant,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- ServantLocator_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- class POA;
- typedef POA *POA_ptr;
- class TAO_Export POA : public virtual TAO_Local_ServantBase
- {
- protected:
- POA (void);
- public:
- virtual ~POA (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::POA_ptr create_POA (const char *adapter_name, PortableServer::POAManager_ptr a_POAManager, const CORBA::PolicyList &policies, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::POA_ptr find_POA (const char *adapter_name, CORBA::Boolean activate_it, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual void destroy (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual PortableServer::ThreadPolicy_ptr create_thread_policy (PortableServer::ThreadPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual PortableServer::LifespanPolicy_ptr create_lifespan_policy (PortableServer::LifespanPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::IdUniquenessPolicy_ptr create_id_uniqueness_policy (PortableServer::IdUniquenessPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::IdAssignmentPolicy_ptr create_id_assignment_policy (PortableServer::IdAssignmentPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual PortableServer::ImplicitActivationPolicy_ptr create_implicit_activation_policy (PortableServer::ImplicitActivationPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::ServantRetentionPolicy_ptr create_servant_retention_policy (PortableServer::ServantRetentionPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::RequestProcessingPolicy_ptr create_request_processing_policy (PortableServer::RequestProcessingPolicyValue value, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual char * the_name (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
- virtual PortableServer::POA_ptr the_parent (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
- virtual PortableServer::POAManager_ptr the_POAManager (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual PortableServer::AdapterActivator_ptr the_activator (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
- virtual void the_activator(PortableServer::AdapterActivator_ptr the_activator, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0;
-
- virtual PortableServer::ServantManager_ptr get_servant_manager ( CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual void set_servant_manager (PortableServer::ServantManager_ptr imgr, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::Servant get_servant ( CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual void set_servant (PortableServer::Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual PortableServer::ObjectId * activate_object (PortableServer::Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual void activate_object_with_id (const PortableServer::ObjectId &id, PortableServer::Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual void deactivate_object (const PortableServer::ObjectId &oid, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual CORBA::Object_ptr create_reference (const char *intf, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual CORBA::Object_ptr create_reference_with_id (const PortableServer::ObjectId &oid, const char *intf, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::ObjectId * servant_to_id (PortableServer::Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual CORBA::Object_ptr servant_to_reference (PortableServer::Servant p_servant, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::Servant reference_to_servant (CORBA::Object_ptr reference, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::ObjectId * reference_to_id (CORBA::Object_ptr reference, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::Servant id_to_servant (const PortableServer::ObjectId &oid, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual CORBA::Object_ptr id_to_reference (const PortableServer::ObjectId &oid, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- PortableServer::POA *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_POA___COLLOCATED_SH_)
-#define _PORTABLESERVER_POA___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_POA : public virtual PortableServer::POA
- {
- public:
- _tao_collocated_POA (
- POA_ptr servant,
- TAO_Stub *stub
- );
- POA_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::POA_ptr create_POA (
- const char* adapter_name,
- PortableServer::POAManager_ptr a_POAManager,
- const CORBA::PolicyList & policies,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::POA_ptr find_POA (
- const char* adapter_name,
- CORBA::Boolean activate_it,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA::Boolean etherealize_objects,
- CORBA::Boolean wait_for_completion,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual PortableServer::ThreadPolicy_ptr create_thread_policy (
- PortableServer::ThreadPolicyValue value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual PortableServer::LifespanPolicy_ptr create_lifespan_policy (
- PortableServer::LifespanPolicyValue value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::IdUniquenessPolicy_ptr create_id_uniqueness_policy (
- PortableServer::IdUniquenessPolicyValue value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::IdAssignmentPolicy_ptr create_id_assignment_policy (
- PortableServer::IdAssignmentPolicyValue value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual PortableServer::ImplicitActivationPolicy_ptr create_implicit_activation_policy (
- PortableServer::ImplicitActivationPolicyValue value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ServantRetentionPolicy_ptr create_servant_retention_policy (
- PortableServer::ServantRetentionPolicyValue value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::RequestProcessingPolicy_ptr create_request_processing_policy (
- PortableServer::RequestProcessingPolicyValue value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-
- virtual char* the_name (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::POA_ptr the_parent (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::POAManager_ptr the_POAManager (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-#if (TAO_HAS_MINIMUM_POA == 0)
-
- virtual PortableServer::AdapterActivator_ptr the_activator (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void the_activator (PortableServer::AdapterActivator_ptr _tao_value,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ServantManager_ptr get_servant_manager (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void set_servant_manager (
- PortableServer::ServantManager_ptr imgr,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::Servant get_servant (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void set_servant (
- PortableServer::Servant p_servant,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
- virtual PortableServer::ObjectId * activate_object (
- PortableServer::Servant p_servant,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void activate_object_with_id (
- const PortableServer::ObjectId & id,
- PortableServer::Servant p_servant,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void deactivate_object (
- const PortableServer::ObjectId & oid,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Object_ptr create_reference (
- const char *intf,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Object_ptr create_reference_with_id (
- const PortableServer::ObjectId & oid,
- const char *intf,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ObjectId * servant_to_id (
- PortableServer::Servant p_servant,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Object_ptr servant_to_reference (
- PortableServer::Servant p_servant,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::Servant reference_to_servant (
- CORBA::Object_ptr reference,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ObjectId * reference_to_id (
- CORBA::Object_ptr reference,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::Servant id_to_servant (
- const PortableServer::ObjectId & oid,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Object_ptr id_to_reference (
- const PortableServer::ObjectId & oid,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- POA_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
- class Current;
- typedef Current *Current_ptr;
- class TAO_Export Current : public virtual POA_CORBA::Current
- {
- protected:
- Current (void);
- public:
- virtual ~Current (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual PortableServer::POA_ptr get_POA ( CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- virtual PortableServer::ObjectId * get_object_id ( CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()) = 0; // pure virtual
-
- PortableServer::Current *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
- };
-
-
-#if !defined (_PORTABLESERVER_CURRENT___COLLOCATED_SH_)
-#define _PORTABLESERVER_CURRENT___COLLOCATED_SH_
-
- class TAO_Export _tao_collocated_Current : public virtual PortableServer::Current,
- public virtual POA_CORBA::_tao_collocated_Current
- {
- public:
- _tao_collocated_Current (
- Current_ptr servant,
- TAO_Stub *stub
- );
- Current_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::POA_ptr get_POA (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual PortableServer::ObjectId * get_object_id (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- Current_ptr servant_;
- };
-
-
-#endif // end #if !defined
-
-
-}
-TAO_NAMESPACE_CLOSE
-
-#if defined (__ACE_INLINE__)
-#include "tao/POAS.i"
-#endif // defined INLINE
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include "ace/post.h"
-#endif /* TAO_IDL_POAS_H */
diff --git a/TAO/tao/POAS.i b/TAO/tao/POAS.i
deleted file mode 100644
index ba9c7e0c1ff..00000000000
--- a/TAO/tao/POAS.i
+++ /dev/null
@@ -1,226 +0,0 @@
-// $Id$
-//
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
-//
-// Information on TAO is available at
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::ThreadPolicy::~ThreadPolicy (void)
-{
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-ACE_INLINE void POA_PortableServer::ThreadPolicy::copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ThreadPolicy_ptr) obj;
- POA_CORBA::Policy::copy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::ThreadPolicy::destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ThreadPolicy_ptr) obj;
- POA_CORBA::Policy::destroy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::ThreadPolicy::_get_policy_type_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ThreadPolicy_ptr) obj;
- POA_CORBA::Policy::_get_policy_type_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::LifespanPolicy::~LifespanPolicy (void)
-{
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-ACE_INLINE void POA_PortableServer::LifespanPolicy::copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::LifespanPolicy_ptr) obj;
- POA_CORBA::Policy::copy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::LifespanPolicy::destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::LifespanPolicy_ptr) obj;
- POA_CORBA::Policy::destroy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::LifespanPolicy::_get_policy_type_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::LifespanPolicy_ptr) obj;
- POA_CORBA::Policy::_get_policy_type_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::IdUniquenessPolicy::~IdUniquenessPolicy (void)
-{
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-ACE_INLINE void POA_PortableServer::IdUniquenessPolicy::copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::IdUniquenessPolicy_ptr) obj;
- POA_CORBA::Policy::copy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::IdUniquenessPolicy::destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::IdUniquenessPolicy_ptr) obj;
- POA_CORBA::Policy::destroy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::IdUniquenessPolicy::_get_policy_type_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::IdUniquenessPolicy_ptr) obj;
- POA_CORBA::Policy::_get_policy_type_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::IdAssignmentPolicy::~IdAssignmentPolicy (void)
-{
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-ACE_INLINE void POA_PortableServer::IdAssignmentPolicy::copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::IdAssignmentPolicy_ptr) obj;
- POA_CORBA::Policy::copy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::IdAssignmentPolicy::destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::IdAssignmentPolicy_ptr) obj;
- POA_CORBA::Policy::destroy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::IdAssignmentPolicy::_get_policy_type_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::IdAssignmentPolicy_ptr) obj;
- POA_CORBA::Policy::_get_policy_type_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::ImplicitActivationPolicy::~ImplicitActivationPolicy (void)
-{
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-ACE_INLINE void POA_PortableServer::ImplicitActivationPolicy::copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ImplicitActivationPolicy_ptr) obj;
- POA_CORBA::Policy::copy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::ImplicitActivationPolicy::destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ImplicitActivationPolicy_ptr) obj;
- POA_CORBA::Policy::destroy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::ImplicitActivationPolicy::_get_policy_type_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ImplicitActivationPolicy_ptr) obj;
- POA_CORBA::Policy::_get_policy_type_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::ServantRetentionPolicy::~ServantRetentionPolicy (void)
-{
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-ACE_INLINE void POA_PortableServer::ServantRetentionPolicy::copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ServantRetentionPolicy_ptr) obj;
- POA_CORBA::Policy::copy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::ServantRetentionPolicy::destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ServantRetentionPolicy_ptr) obj;
- POA_CORBA::Policy::destroy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::ServantRetentionPolicy::_get_policy_type_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::ServantRetentionPolicy_ptr) obj;
- POA_CORBA::Policy::_get_policy_type_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::RequestProcessingPolicy::~RequestProcessingPolicy (void)
-{
-}
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-ACE_INLINE void POA_PortableServer::RequestProcessingPolicy::copy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::RequestProcessingPolicy_ptr) obj;
- POA_CORBA::Policy::copy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::RequestProcessingPolicy::destroy_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::RequestProcessingPolicy_ptr) obj;
- POA_CORBA::Policy::destroy_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-ACE_INLINE void POA_PortableServer::RequestProcessingPolicy::_get_policy_type_skel (CORBA::ServerRequest &req, void *obj, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- POA_CORBA::Policy_ptr impl = (POA_PortableServer::RequestProcessingPolicy_ptr) obj;
- POA_CORBA::Policy::_get_policy_type_skel (req, (POA_CORBA::Policy_ptr) impl, context, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::POAManager::~POAManager (void)
-{
-}
-
-#if (TAO_HAS_MINIMUM_POA == 0)
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::AdapterActivator::~AdapterActivator (void)
-{
-}
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::ServantManager::~ServantManager (void)
-{
-}
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::ServantActivator::~ServantActivator (void)
-{
-}
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::ServantLocator::~ServantLocator (void)
-{
-}
-
-#endif /* TAO_HAS_MINIMUM_POA == 0 */
-
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::POA::~POA (void)
-{
-}
-// skeleton destructor
-ACE_INLINE
-POA_PortableServer::Current::~Current (void)
-{
-}
diff --git a/TAO/tao/POA_CORBA.h b/TAO/tao/POA_CORBA.h
index e07948024f7..0eb5e560a69 100644
--- a/TAO/tao/POA_CORBA.h
+++ b/TAO/tao/POA_CORBA.h
@@ -9,7 +9,7 @@
// = FILENAME
// POA_CORBA.h
//
-// This file is created by merging the CurrentS.h, PolicyS.h,
+// This file is created by merging the PolicyS.h,
// DomainS.h, DynAnyS.h and InterfaceS.h files which
// have been removed.
//
@@ -31,8 +31,6 @@
#define TAO_IDL_POA_CORBA_H
#include "ace/pre.h"
-#include "tao/CurrentC.h"
-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
@@ -57,288 +55,152 @@ class IR_InterfaceDef;
class TAO_Export POA_CORBA
{
public:
- // ****************************************************************
-
- class Current;
- typedef Current *Current_ptr;
- class Current : public virtual TAO_Local_ServantBase
- {
- protected:
- Current (void);
- public:
- virtual ~Current (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual void* _downcast (
- const char* logical_type_id
- );
-
- ACE_CORBA_1(Current) *_this (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
-
-#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef Current_ptr _ptr_type;
-#endif /* __GNUC__ */
- // Useful for template programming.
-
- };
-
- class _tao_collocated_Current : public virtual CORBA_Current
- {
- public:
- _tao_collocated_Current (void) {} // Needed by the IBM VisualAge C++ compiler.
- _tao_collocated_Current (
- Current_ptr servant,
- TAO_Stub *stub
- );
- Current_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- private:
- Current_ptr servant_;
- };
// ****************************************************************
class Policy;
typedef Policy *Policy_ptr;
-
- class TAO_Export Policy
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- : public virtual TAO_Locality_Constrained_ServantBase
-#else
- : public virtual TAO_ServantBase
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
+ class TAO_Export Policy : public virtual PortableServer::ServantBase
{
protected:
Policy (void);
+
public:
Policy (const Policy& rhs);
virtual ~Policy (void);
+
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
-
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- ) = 0;
-
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- ) = 0;
-
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- ) = 0;
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- static void _get_policy_type_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- static void copy_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- static void destroy_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
+ const char* logical_type_id
+ );
static void _is_a_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
static void _non_existent_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void _dispatch (
- CORBA::ServerRequest &_tao_req,
- void *_tao_context,
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- CORBA_Policy_ptr _this (
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ());
- virtual const char* _interface_repository_id (void) const;
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
-#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef Policy_ptr _ptr_type;
-#endif /* __GNUC__ */
- // Useful for template programming.
+ ::CORBA_Policy *_this (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
- };
+ virtual const char* _interface_repository_id (void) const;
- class TAO_Export _tao_collocated_Policy : public virtual CORBA_Policy
- {
- public:
- _tao_collocated_Policy (
- Policy_ptr servant,
- TAO_Stub *stub
- );
- Policy_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual CORBA::Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
- private:
- Policy_ptr servant_;
- };
+ static void _get_policy_type_skel (
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+
+ virtual CORBA_Policy_ptr copy (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
- // ****************************************************************
+ static void copy_skel (
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
- class PolicyManager;
- typedef PolicyManager *PolicyManager_ptr;
- class TAO_Export PolicyManager : public virtual TAO_Local_ServantBase
- {
- protected:
- PolicyManager (void);
- public:
- PolicyManager (const PolicyManager& rhs);
- virtual ~PolicyManager (void);
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
- virtual void* _downcast (
- const char* logical_type_id
- );
- virtual CORBA::PolicyList * get_policy_overrides (
- const CORBA::PolicyTypeSeq & ts,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
- virtual void set_policy_overrides (
- const CORBA::PolicyList & policies,
- CORBA::SetOverrideType set_add,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
- CORBA::PolicyManager *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
- virtual const char* _interface_repository_id (void) const;
- };
+ virtual void destroy (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ static void destroy_skel (
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
- class TAO_Export _tao_collocated_PolicyManager : public virtual CORBA::PolicyManager
- {
- public:
- _tao_collocated_PolicyManager (
- PolicyManager_ptr servant,
- TAO_Stub *stub
- );
- PolicyManager_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
- virtual CORBA::PolicyList * get_policy_overrides (
- const CORBA::PolicyTypeSeq & ts,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
- virtual void set_policy_overrides (
- const CORBA::PolicyList & policies,
- CORBA::SetOverrideType set_add,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
- private:
- PolicyManager_ptr servant_;
};
- // ****************************************************************
- class PolicyCurrent;
- typedef PolicyCurrent *PolicyCurrent_ptr;
- class TAO_Export PolicyCurrent : public virtual PolicyManager,
- public virtual Current
+ class TAO_Export _tao_thru_poa_collocated_CORBA_Policy : public virtual ::CORBA_Policy
{
- protected:
- PolicyCurrent (void);
public:
- PolicyCurrent (const PolicyCurrent& rhs);
- virtual ~PolicyCurrent (void);
-
- virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ _tao_thru_poa_collocated_CORBA_Policy (
+ TAO_Stub *stub
+ );
+ virtual CORBA::Boolean _is_a(
+ const CORBA::Char *logical_type_id,
+ CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
+ );
- virtual void* _downcast (
- const char* logical_type_id
- );
+ virtual CORBA::Boolean _non_existent(
+ CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
+ );
- CORBA::PolicyCurrent *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ virtual CORBA::PolicyType policy_type (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
- virtual const char* _interface_repository_id (void) const;
- };
+ virtual CORBA_Policy_ptr copy (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
- class TAO_Export _tao_collocated_PolicyCurrent : public virtual CORBA::PolicyCurrent,
- public virtual _tao_collocated_PolicyManager,
- public virtual _tao_collocated_Current
- {
- public:
- _tao_collocated_PolicyCurrent (
- PolicyCurrent_ptr servant,
- TAO_Stub *stub
- );
- PolicyCurrent_ptr _get_servant (void) const;
- virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ virtual void destroy (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
- private:
- PolicyCurrent_ptr servant_;
};
// ****************************************************************
@@ -356,56 +218,56 @@ public:
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
static void _is_a_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
-
- static void _non_existent_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+
+ static void _non_existent_skel (
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void _dispatch (
- CORBA::ServerRequest &_tao_req,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
CORBA::DomainManager *_this (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
virtual CORBA::Policy_ptr get_domain_policy (
- CORBA::PolicyType policy_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- ) = 0;
+ CORBA::PolicyType policy_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ ) = 0;
static void get_domain_policy_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
};
@@ -413,15 +275,15 @@ public:
{
public:
_tao_collocated_DomainManager (
- DomainManager_ptr servant,
- TAO_Stub *stub
- );
+ DomainManager_ptr servant,
+ TAO_Stub *stub
+ );
DomainManager_ptr _get_servant (void) const;
- virtual CORBA::Policy_ptr get_domain_policy (
- CORBA::PolicyType policy_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ virtual CORBA::Policy_ptr get_domain_policy (
+ CORBA::PolicyType policy_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
private:
DomainManager_ptr servant_;
@@ -441,246 +303,246 @@ public:
DynAny (DynAny& rhs);
virtual ~DynAny (void);
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
virtual CORBA::TypeCode_ptr type (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void assign (
- CORBA_DynAny_ptr dyn_any,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA_DynAny_ptr dyn_any,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void from_any (
- const CORBA::Any & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const CORBA::Any & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Any * to_any (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void destroy (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA_DynAny_ptr copy (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_boolean (
- CORBA::Boolean value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Boolean value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_octet (
- CORBA::Octet value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Octet value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
- virtual void insert_char (
- CORBA::Char value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ virtual void insert_char (
+ CORBA::Char value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_short (
- CORBA::Short value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Short value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_ushort (
- CORBA::UShort value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::UShort value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_long (
- CORBA::Long value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Long value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_ulong (
- CORBA::ULong value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::ULong value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_float (
- CORBA::Float value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Float value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_double (
- CORBA::Double value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Double value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_string (
- const char * value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const char * value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_reference (
- CORBA::Object_ptr value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Object_ptr value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_typecode (
- CORBA::TypeCode_ptr value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::TypeCode_ptr value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_longlong (
- CORBA::LongLong value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::LongLong value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_ulonglong (
- CORBA::ULongLong value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::ULongLong value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_wchar (
- CORBA::WChar value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::WChar value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void insert_any (
- const CORBA::Any & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const CORBA::Any & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Boolean get_boolean (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Octet get_octet (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Char get_char (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Short get_short (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::UShort get_ushort (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Long get_long (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::ULong get_ulong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Float get_float (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Double get_double (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual char * get_string (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Object_ptr get_reference (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::TypeCode_ptr get_typecode (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::LongLong get_longlong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::ULongLong get_ulonglong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::WChar get_wchar (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Any * get_any (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA_DynAny_ptr current_component (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Boolean next (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::Boolean seek (
- CORBA::Long slot,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Long slot,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void rewind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
CORBA_DynAny *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
@@ -695,202 +557,202 @@ public:
{
public:
_tao_collocated_DynAny (
- DynAny_ptr servant,
- TAO_Stub *stub
- );
+ DynAny_ptr servant,
+ TAO_Stub *stub
+ );
DynAny_ptr _get_servant (void) const;
virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char *logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::TypeCode_ptr type (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void assign (
- CORBA_DynAny_ptr CORBA_Dyn_any,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA_DynAny_ptr CORBA_Dyn_any,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void from_any (
- const CORBA::Any & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const CORBA::Any & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Any * to_any (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void destroy (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA_DynAny_ptr copy (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_boolean (
- CORBA::Boolean value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Boolean value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_octet (
- CORBA::Octet value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Octet value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_char (
- CORBA::Char value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Char value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_short (
- CORBA::Short value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Short value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_ushort (
- CORBA::UShort value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::UShort value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_long (
- CORBA::Long value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Long value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_ulong (
- CORBA::ULong value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::ULong value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_float (
- CORBA::Float value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Float value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_double (
- CORBA::Double value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Double value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_string (
- const char * value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char * value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_reference (
- CORBA::Object_ptr value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Object_ptr value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_typecode (
- CORBA::TypeCode_ptr value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::TypeCode_ptr value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_longlong (
- CORBA::LongLong value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::LongLong value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_ulonglong (
- CORBA::ULongLong value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::ULongLong value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_wchar (
- CORBA::WChar value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::WChar value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void insert_any (
- const CORBA::Any & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const CORBA::Any & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Boolean get_boolean (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Octet get_octet (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Char get_char (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Short get_short (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::UShort get_ushort (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Long get_long (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::ULong get_ulong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Float get_float (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Double get_double (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual char * get_string (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Object_ptr get_reference (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::TypeCode_ptr get_typecode (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::LongLong get_longlong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::ULongLong get_ulonglong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::WChar get_wchar (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Any * get_any (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA_DynAny_ptr current_component (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Boolean next (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Boolean seek (
- CORBA::Long slot,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Long slot,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void rewind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
private:
DynAny_ptr servant_;
@@ -906,39 +768,39 @@ public:
DynEnum (DynEnum& rhs);
virtual ~DynEnum (void);
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
virtual char * value_as_string (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void value_as_string (
- const char * value_as_string,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const char * value_as_string,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::ULong value_as_ulong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void value_as_ulong (
- CORBA::ULong value_as_ulong,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::ULong value_as_ulong,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
CORBA_DynEnum *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
@@ -954,33 +816,33 @@ public:
{
public:
_tao_collocated_DynEnum (
- DynEnum_ptr servant,
- TAO_Stub *stub
- );
+ DynEnum_ptr servant,
+ TAO_Stub *stub
+ );
DynEnum_ptr _get_servant (void) const;
virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char *logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual char * value_as_string (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void value_as_string (
- const char * value_as_string,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char * value_as_string,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::ULong value_as_ulong (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void value_as_ulong (
- CORBA::ULong value_as_ulong,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::ULong value_as_ulong,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
private:
DynEnum_ptr servant_;
@@ -996,38 +858,38 @@ public:
DynStruct (DynStruct& rhs);
virtual ~DynStruct (void);
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
virtual char * current_member_name (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::TCKind current_member_kind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::NameValuePairSeq * get_members (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void set_members (
- const CORBA::NameValuePairSeq & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const CORBA::NameValuePairSeq & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
CORBA_DynStruct *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
@@ -1043,32 +905,32 @@ public:
{
public:
_tao_collocated_DynStruct (
- DynStruct_ptr servant,
- TAO_Stub *stub
- );
+ DynStruct_ptr servant,
+ TAO_Stub *stub
+ );
DynStruct_ptr _get_servant (void) const;
virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char *logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual char * current_member_name (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::TCKind current_member_kind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::NameValuePairSeq * get_members (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void set_members (
- const CORBA::NameValuePairSeq & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const CORBA::NameValuePairSeq & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
private:
DynStruct_ptr servant_;
@@ -1084,59 +946,59 @@ public:
DynUnion (DynUnion& rhs);
virtual ~DynUnion (void);
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
virtual CORBA::Boolean set_as_default (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void set_as_default (
- CORBA::Boolean set_as_default,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Boolean set_as_default,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA_DynAny_ptr discriminator (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::TCKind discriminator_kind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA_DynAny_ptr member (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual char * member_name (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void member_name (
- const char * member_name,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const char * member_name,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA::TCKind member_kind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
CORBA_DynUnion *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
@@ -1152,49 +1014,49 @@ public:
{
public:
_tao_collocated_DynUnion (
- DynUnion_ptr servant,
- TAO_Stub *stub
- );
+ DynUnion_ptr servant,
+ TAO_Stub *stub
+ );
DynUnion_ptr _get_servant (void) const;
virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char *logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::Boolean set_as_default (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void set_as_default (
- CORBA::Boolean set_as_default,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Boolean set_as_default,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA_DynAny_ptr discriminator (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::TCKind discriminator_kind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA_DynAny_ptr member (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual char * member_name (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void member_name (
- const char * member_name,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char * member_name,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::TCKind member_kind (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
private:
DynUnion_ptr servant_;
@@ -1210,47 +1072,47 @@ public:
DynSequence (DynSequence& rhs);
virtual ~DynSequence (void);
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
virtual CORBA::ULong length (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void length (
- CORBA::ULong length,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::ULong length,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual CORBA_AnySeq * get_elements (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void set_elements (
- const CORBA_AnySeq & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const CORBA_AnySeq & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
static void type_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
CORBA_DynSequence *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
@@ -1266,33 +1128,33 @@ public:
{
public:
_tao_collocated_DynSequence (
- DynSequence_ptr servant,
- TAO_Stub *stub
- );
+ DynSequence_ptr servant,
+ TAO_Stub *stub
+ );
DynSequence_ptr _get_servant (void) const;
virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char *logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA::ULong length (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void length (
- CORBA::ULong length,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::ULong length,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA_AnySeq * get_elements (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void set_elements (
- const CORBA_AnySeq & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const CORBA_AnySeq & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
private:
DynSequence_ptr servant_;
@@ -1308,28 +1170,28 @@ public:
DynArray (DynArray& rhs);
virtual ~DynArray (void);
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
- virtual CORBA_AnySeq * get_elements (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const char* logical_type_id
+ );
+ virtual CORBA_AnySeq * get_elements (
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
virtual void set_elements (
- const CORBA_AnySeq & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- ) = 0;
+ const CORBA_AnySeq & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ ) = 0;
CORBA_DynArray *_this (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
@@ -1345,24 +1207,24 @@ public:
{
public:
_tao_collocated_DynArray (
- DynArray_ptr servant,
- TAO_Stub *stub
- );
+ DynArray_ptr servant,
+ TAO_Stub *stub
+ );
DynArray_ptr _get_servant (void) const;
virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char *logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual CORBA_AnySeq * get_elements (
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
virtual void set_elements (
- const CORBA_AnySeq & value,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const CORBA_AnySeq & value,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
private:
DynArray_ptr servant_;
@@ -1383,80 +1245,80 @@ public:
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
static void _is_a_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
-
- static void _non_existent_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+
+ static void _non_existent_skel (
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void _dispatch (
- CORBA::ServerRequest &_tao_req,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
CORBA::ConstructionPolicy *_this (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
virtual void make_domain_manager (
- IR_InterfaceDef *object_type,
- CORBA::Boolean constr_policy,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- ) = 0;
- static void make_domain_manager_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ IR_InterfaceDef *object_type,
+ CORBA::Boolean constr_policy,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ ) = 0;
+ static void make_domain_manager_skel (
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
};
class _tao_collocated_ConstructionPolicy : public virtual CORBA::ConstructionPolicy,
- public virtual _tao_collocated_Policy
+ public virtual _tao_thru_poa_collocated_CORBA_Policy
{
public:
_tao_collocated_ConstructionPolicy (
- ConstructionPolicy_ptr servant,
- TAO_Stub *stub
- );
+ ConstructionPolicy_ptr servant,
+ TAO_Stub *stub
+ );
ConstructionPolicy_ptr _get_servant (void) const;
- virtual void make_domain_manager (
- IR_InterfaceDef *object_type,
- CORBA::Boolean constr_policy,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ virtual void make_domain_manager (
+ IR_InterfaceDef *object_type,
+ CORBA::Boolean constr_policy,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::Boolean _is_a (
- const char *logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- CORBA::Environment::default_environment ()
- );
+ const char *logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment::default_environment ()
+ );
private:
ConstructionPolicy_ptr servant_;
@@ -1480,108 +1342,108 @@ public:
virtual ~IRObject (void);
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
static void _is_a_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
static void _non_existent_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void _dispatch (
- CORBA::ServerRequest &_tao_req,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
::CORBA::IRObject *_this (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
virtual IR::DefinitionKind def_kind (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void _get_def_kind_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void destroy (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void destroy_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
};
class _tao_thru_poa_collocated_IRObject : public virtual CORBA::IRObject
{
public:
_tao_thru_poa_collocated_IRObject (
- TAO_Stub *stub
- );
+ TAO_Stub *stub
+ );
virtual CORBA::Boolean _is_a(
- const CORBA::Char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
+ const CORBA::Char *logical_type_id,
+ CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
+ );
virtual CORBA::Boolean _non_existent(
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
+ CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
+ );
- virtual IR::DefinitionKind def_kind (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ virtual IR::DefinitionKind def_kind (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual void destroy (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
};
class TypeCodeFactory;
@@ -1597,375 +1459,375 @@ public:
virtual CORBA::Boolean _is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ const char* logical_type_id,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void* _downcast (
- const char* logical_type_id
- );
+ const char* logical_type_id
+ );
static void _is_a_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
static void _non_existent_skel (
- CORBA::ServerRequest &req,
- void *obj,
- void *context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &req,
+ void *obj,
+ void *context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual void _dispatch (
- CORBA::ServerRequest &_tao_req,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
::CORBA::TypeCodeFactory *_this (
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
virtual CORBA::TypeCode_ptr create_struct_tc (
- const char * id,
- const char * name,
- const IR::StructMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ const IR::StructMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_struct_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_union_tc (
- const char * id,
- const char * name,
- CORBA::TypeCode_ptr discriminator_type,
- const IR::UnionMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::TypeCode_ptr discriminator_type,
+ const IR::UnionMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_union_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_enum_tc (
- const char * id,
- const char * name,
- const IR::EnumMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ const IR::EnumMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_enum_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_alias_tc (
- const char * id,
- const char * name,
- CORBA::TypeCode_ptr original_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::TypeCode_ptr original_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_alias_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_exception_tc (
- const char * id,
- const char * name,
- const IR::StructMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ const IR::StructMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_exception_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_interface_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_interface_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_string_tc (
- CORBA::ULong bound,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong bound,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_string_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_wstring_tc (
- CORBA::ULong bound,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong bound,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_wstring_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_fixed_tc (
- CORBA::UShort digits,
- CORBA::UShort scale,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::UShort digits,
+ CORBA::UShort scale,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_fixed_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_sequence_tc (
- CORBA::ULong bound,
- CORBA::TypeCode_ptr element_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong bound,
+ CORBA::TypeCode_ptr element_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_sequence_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_array_tc (
- CORBA::ULong length,
- CORBA::TypeCode_ptr element_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong length,
+ CORBA::TypeCode_ptr element_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_array_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_value_tc (
- const char * id,
- const char * name,
- CORBA::ValueModifier type_modifier,
- CORBA::TypeCode_ptr concrete_base,
- const IR::ValueMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::ValueModifier type_modifier,
+ CORBA::TypeCode_ptr concrete_base,
+ const IR::ValueMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_value_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_value_box_tc (
- const char * id,
- const char * name,
- CORBA::TypeCode_ptr boxed_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::TypeCode_ptr boxed_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_value_box_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_native_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_native_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_recursive_tc (
- const char * id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_recursive_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_abstract_interface_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_abstract_interface_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_component_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_component_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual CORBA::TypeCode_ptr create_home_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- )) = 0;
+ CORBA::SystemException
+ )) = 0;
static void create_home_tc_skel (
- CORBA::ServerRequest &_tao_req,
- void *_tao_obj,
- void *_tao_context,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ CORBA::ServerRequest &_tao_req,
+ void *_tao_obj,
+ void *_tao_context,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
};
@@ -1974,203 +1836,203 @@ public:
{
public:
_tao_thru_poa_collocated_TypeCodeFactory (
- TAO_Stub *stub
- );
+ TAO_Stub *stub
+ );
virtual CORBA::Boolean _is_a(
- const CORBA::Char *logical_type_id,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
+ const CORBA::Char *logical_type_id,
+ CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
+ );
virtual CORBA::Boolean _non_existent(
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
- );
-
- virtual CORBA::TypeCode_ptr create_struct_tc (
- const char * id,
- const char * name,
- const IR::StructMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
+ );
+
+ virtual CORBA::TypeCode_ptr create_struct_tc (
+ const char * id,
+ const char * name,
+ const IR::StructMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_union_tc (
- const char * id,
- const char * name,
- CORBA::TypeCode_ptr discriminator_type,
- const IR::UnionMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::TypeCode_ptr discriminator_type,
+ const IR::UnionMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_enum_tc (
- const char * id,
- const char * name,
- const IR::EnumMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ const IR::EnumMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_alias_tc (
- const char * id,
- const char * name,
- CORBA::TypeCode_ptr original_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::TypeCode_ptr original_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_exception_tc (
- const char * id,
- const char * name,
- const IR::StructMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ const IR::StructMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_interface_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_string_tc (
- CORBA::ULong bound,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong bound,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_wstring_tc (
- CORBA::ULong bound,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong bound,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_fixed_tc (
- CORBA::UShort digits,
- CORBA::UShort scale,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::UShort digits,
+ CORBA::UShort scale,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_sequence_tc (
- CORBA::ULong bound,
- CORBA::TypeCode_ptr element_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong bound,
+ CORBA::TypeCode_ptr element_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_array_tc (
- CORBA::ULong length,
- CORBA::TypeCode_ptr element_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ CORBA::ULong length,
+ CORBA::TypeCode_ptr element_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_value_tc (
- const char * id,
- const char * name,
- CORBA::ValueModifier type_modifier,
- CORBA::TypeCode_ptr concrete_base,
- const IR::ValueMemberSeq & members,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::ValueModifier type_modifier,
+ CORBA::TypeCode_ptr concrete_base,
+ const IR::ValueMemberSeq & members,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_value_box_tc (
- const char * id,
- const char * name,
- CORBA::TypeCode_ptr boxed_type,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::TypeCode_ptr boxed_type,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_native_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_recursive_tc (
- const char * id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_abstract_interface_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_component_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
virtual CORBA::TypeCode_ptr create_home_tc (
- const char * id,
- const char * name,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- )
+ const char * id,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
+ CORBA::SystemException
+ ));
};
diff --git a/TAO/tao/Policy.pidl b/TAO/tao/Policy.pidl
index a4a74195199..13276094b11 100644
--- a/TAO/tao/Policy.pidl
+++ b/TAO/tao/Policy.pidl
@@ -10,10 +10,63 @@
// Policy.pidl
//
// = DESCRIPTION
-// This file was used to generate the code in Policy{C,S,S_T}.{h,i,cpp}
-// The code is then hand-crafted to compile it inside the ORB, avoid
-// cyclic dependencies and enforce the locality constraints on
-// certain objects.
+//
+// This file was used to generate the code in PolicyC.{h,i,cpp}.
+// Also, skeleton code for the only non local Policy interface is
+// generated from this pidl file and then the declaration code is
+// moved to POA_CORBA.h and the definition is kept in PolicyS.cpp.
+//
+// The steps to regenerate the code are as follows:
+//
+// 1. Patch this pidl file to (a) remove the CORBA module bringing
+// the Policy interfaces to the global scope; and (b) rename the
+// Policy interfaces to CORBA_Policy.
+//
+// Apply patches using the following commands:
+//
+// patch < diffs\Policy.pidl.diff
+//
+// 2. Run the tao_idl compiler on the patched pidl file. The
+// command used for this is:
+//
+// tao_idl.exe \
+// -Ge 1 \
+// -Wb,export_macro=TAO_Export \
+// -Wb,export_include="tao/corbafwd.h" \
+// -Wb,pre_include="ace/pre.h" \
+// -Wb,post_include="ace/post.h" \
+// Policy.pidl
+//
+// 3. Then patch the generated code. This patch (a) fixes the
+// interface repository IDs; (b) eliminates cycles in the include
+// dependencies; (c) removes the extra CORBA module; (d) removes the
+// extra Current interface; (e) adds the TAO_Encodable methods to
+// the Policy class; (f) adds the PolicyErrorCode constants; (g)
+// fixes the Policy class skeleton code to fit into the POA_CORBA
+// namespace; and (h) removes the typecodes definitions.
+//
+// Apply patches using the following commands:
+//
+// patch < diffs\PolicyC.h.diff
+// patch < diffs\PolicyC.i.diff
+// patch < diffs\PolicyC.cpp.diff
+//
+// patch < diffs\PolicyS.cpp.diff
+//
+// 4. You'll have to move the Policy skeleton definition from
+// PolicyS.h to the POA_CORBA.h by hand.
+//
+// 5. Undo the patches to this pidl file.
+//
+// Note: The diffs were generated with these commands:
+//
+// diff -wbu Policy.pidl Policy.pidl.mod > diffs\Policy.pidl.diff
+//
+// diff -wbu PolicyC.h PolicyC.h.mod > diffs\PolicyC.h.diff
+// diff -wbu PolicyC.i PolicyC.i.mod > diffs\PolicyC.i.diff
+// diff -wbu PolicyC.cpp PolicyC.cpp.mod > diffs\PolicyC.cpp.diff
+//
+// diff -wbu PolicyS.cpp PolicyS.cpp.mod > diffs\PolicyS.cpp.diff
//
// ================================================================
@@ -59,7 +112,7 @@ module CORBA
ADD_OVERRIDE
};
- interface PolicyManager
+ local interface PolicyManager
{
PolicyList get_policy_overrides (in PolicyTypeSeq ts);
void set_policy_overrides (
@@ -68,11 +121,11 @@ module CORBA
raises (InvalidPolicies);
};
- interface Current
+ local interface Current
{
};
- interface PolicyCurrent : PolicyManager, Current
+ local interface PolicyCurrent : PolicyManager, Current
{
};
diff --git a/TAO/tao/PolicyC.cpp b/TAO/tao/PolicyC.cpp
index 6040b830d40..4afa053b78d 100644
--- a/TAO/tao/PolicyC.cpp
+++ b/TAO/tao/PolicyC.cpp
@@ -1,26 +1,21 @@
-// $Id$
-
-/* -*- C++ -*- */
+/* -*- C++ -*- $Id$ */
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
//
-// Information on TAO is available at
+// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
#include "tao/PolicyC.h"
#include "tao/Stub.h"
-#include "tao/Servant_Base.h"
-#include "tao/POA_CORBA.h"
#include "tao/Invocation.h"
+#include "tao/NVList.h"
#if !defined (__ACE_INLINE__)
-#include "PolicyC.i"
+#include "tao/PolicyC.i"
#endif /* !defined INLINE */
-ACE_RCSID(tao, PolicyC, "$Id$")
-
// ****************************************************************
TAO_NAMESPACE_TYPE (const CORBA::PolicyErrorCode)
@@ -48,7 +43,7 @@ TAO_NAMESPACE_END
// default constructor
CORBA_PolicyError::CORBA_PolicyError (void)
- : CORBA_UserException (CORBA::_tc_PolicyError)
+ : CORBA_UserException (::_tc_CORBA_PolicyError)
{
}
@@ -57,8 +52,14 @@ CORBA_PolicyError::~CORBA_PolicyError (void)
{
}
+void CORBA_PolicyError::_tao_any_destructor (void *x)
+{
+ CORBA_PolicyError *tmp = ACE_static_cast (CORBA_PolicyError*,x);
+ delete tmp;
+}
+
// copy constructor
-CORBA_PolicyError::CORBA_PolicyError (const CORBA_PolicyError &_tao_excp)
+CORBA_PolicyError::CORBA_PolicyError (const ::CORBA_PolicyError &_tao_excp)
: CORBA_UserException (_tao_excp._type ())
{
this->reason = _tao_excp.reason;
@@ -66,7 +67,7 @@ CORBA_PolicyError::CORBA_PolicyError (const CORBA_PolicyError &_tao_excp)
// assignment operator
CORBA_PolicyError&
-CORBA_PolicyError::operator= (const CORBA_PolicyError &_tao_excp)
+CORBA_PolicyError::operator= (const ::CORBA_PolicyError &_tao_excp)
{
this->CORBA_UserException::operator= (_tao_excp);
@@ -75,30 +76,35 @@ CORBA_PolicyError::operator= (const CORBA_PolicyError &_tao_excp)
}
// narrow
-CORBA_PolicyError_ptr
+CORBA_PolicyError *
CORBA_PolicyError::_downcast (CORBA::Exception *exc)
{
if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/PolicyError:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (CORBA_PolicyError_ptr, exc);
+ return ACE_dynamic_cast (CORBA_PolicyError *, exc);
else
return 0;
}
-void CORBA_PolicyError::_raise (void)
+
+void CORBA_PolicyError::_raise ()
{
TAO_RAISE(*this);
}
-void CORBA_PolicyError::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
+
+void CORBA_PolicyError::_tao_encode (
+ TAO_OutputCDR &cdr,
+ CORBA::Environment &ACE_TRY_ENV) const
{
if (cdr << *this)
return;
ACE_THROW (CORBA::MARSHAL ());
}
-void CORBA_PolicyError::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
+
+void CORBA_PolicyError::_tao_decode (
+ TAO_InputCDR &cdr,
+ CORBA::Environment &ACE_TRY_ENV)
{
if (cdr >> *this)
return;
@@ -109,26 +115,136 @@ void CORBA_PolicyError::_tao_decode (TAO_InputCDR &cdr,
CORBA::Exception *CORBA_PolicyError::_alloc (void)
{
CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- CORBA_PolicyError,
- 0);
+ ACE_NEW_RETURN (retval, ::CORBA_PolicyError, 0);
return retval;
}
-CORBA_PolicyError::CORBA_PolicyError(
- CORBA::PolicyErrorCode _tao_reason)
-
- : CORBA_UserException (CORBA::TypeCode::_duplicate (CORBA::_tc_PolicyError))
+CORBA_PolicyError::CORBA_PolicyError (
+ CORBA::PolicyErrorCode _tao_reason
+)
+ : CORBA_UserException (CORBA::TypeCode::_duplicate (_tc_CORBA_PolicyError))
{
this->reason = _tao_reason;
}
-// ****************************************************************
+static const CORBA::Long _oc_CORBA_PolicyError[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 34, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4572726f), ACE_NTOHL (0x723a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA_PolicyError:1.0
+ 18, ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4572726f), ACE_NTOHL (0x72000000), // name = CORBA_PolicyError
+ 1, // member count
+ 7, ACE_NTOHL (0x72656173), ACE_NTOHL (0x6f6e0000), // name = reason
+ CORBA::tk_alias, // typecode kind for typedefs
+ 72, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4572726f), ACE_NTOHL (0x72436f64), ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/PolicyErrorCode:1.0
+ 16, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63794572), ACE_NTOHL (0x726f7243), ACE_NTOHL (0x6f646500), // name = PolicyErrorCode
+ CORBA::tk_short,
+
+
+};
+static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyError (CORBA::tk_except, sizeof (_oc_CORBA_PolicyError), (char *) &_oc_CORBA_PolicyError, 0, sizeof (CORBA_PolicyError));
+CORBA::TypeCode_ptr _tc_CORBA_PolicyError = &_tc_TAO_tc_CORBA_PolicyError;
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_)
+#define __TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_
+
+ void
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_allocate_buffer (CORBA::ULong length)
+ {
+ CORBA::UShort* tmp = 0;
+ tmp = _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (length);
+
+ if (this->buffer_ != 0)
+ {
+ CORBA::UShort *old = ACE_reinterpret_cast (CORBA::UShort *,this->buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ tmp[i] = old[i];
+
+ if (this->release_)
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::freebuf (old);
+
+ }
+ this->buffer_ = tmp;
+ }
+
+ void
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_deallocate_buffer (void)
+ {
+ if (this->buffer_ == 0 || this->release_ == 0)
+ return;
+
+ CORBA::UShort *tmp = ACE_reinterpret_cast (CORBA::UShort *,this->buffer_);
+
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::freebuf (tmp);
+ this->buffer_ = 0;
+ }
+
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::~_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (void) // Dtor.
+ {
+ this->_deallocate_buffer ();
+ }
+
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_)
+#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_
+
+// *************************************************************
+// CORBA_InvalidPolicies::_tao_seq_UShort
+// *************************************************************
+
+CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (void)
+{}
+CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (CORBA::ULong max) // uses max size
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::UShort>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max)
+{}
+CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (CORBA::ULong max, CORBA::ULong length, CORBA::UShort *buffer, CORBA::Boolean release)
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::UShort>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max, length, buffer, release)
+{}
+CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (const _tao_seq_UShort &seq) // copy ctor
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::UShort>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (seq)
+{}
+CORBA_InvalidPolicies::_tao_seq_UShort::~_tao_seq_UShort (void) // dtor
+{}
+void CORBA_InvalidPolicies::_tao_seq_UShort::_tao_any_destructor (void *x)
+{
+ _tao_seq_UShort *tmp = ACE_static_cast (_tao_seq_UShort*,x);
+ delete tmp;
+}
+
+
+#endif /* end #if !defined */
// default constructor
CORBA_InvalidPolicies::CORBA_InvalidPolicies (void)
- : CORBA_UserException (CORBA::_tc_InvalidPolicies)
+ : CORBA_UserException (::_tc_CORBA_InvalidPolicies)
{
}
@@ -137,8 +253,14 @@ CORBA_InvalidPolicies::~CORBA_InvalidPolicies (void)
{
}
+void CORBA_InvalidPolicies::_tao_any_destructor (void *x)
+{
+ CORBA_InvalidPolicies *tmp = ACE_static_cast (CORBA_InvalidPolicies*,x);
+ delete tmp;
+}
+
// copy constructor
-CORBA_InvalidPolicies::CORBA_InvalidPolicies (const CORBA_InvalidPolicies &_tao_excp)
+CORBA_InvalidPolicies::CORBA_InvalidPolicies (const ::CORBA_InvalidPolicies &_tao_excp)
: CORBA_UserException (_tao_excp._type ())
{
this->indices = _tao_excp.indices;
@@ -146,7 +268,7 @@ CORBA_InvalidPolicies::CORBA_InvalidPolicies (const CORBA_InvalidPolicies &_tao_
// assignment operator
CORBA_InvalidPolicies&
-CORBA_InvalidPolicies::operator= (const CORBA_InvalidPolicies &_tao_excp)
+CORBA_InvalidPolicies::operator= (const ::CORBA_InvalidPolicies &_tao_excp)
{
this->CORBA_UserException::operator= (_tao_excp);
@@ -155,30 +277,35 @@ CORBA_InvalidPolicies::operator= (const CORBA_InvalidPolicies &_tao_excp)
}
// narrow
-CORBA_InvalidPolicies_ptr
+CORBA_InvalidPolicies *
CORBA_InvalidPolicies::_downcast (CORBA::Exception *exc)
{
if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/InvalidPolicies:1.0", exc->_id ())) // same type
- return ACE_dynamic_cast (CORBA_InvalidPolicies_ptr, exc);
+ return ACE_dynamic_cast (CORBA_InvalidPolicies *, exc);
else
return 0;
}
-void CORBA_InvalidPolicies::_raise (void)
+
+void CORBA_InvalidPolicies::_raise ()
{
TAO_RAISE(*this);
}
-void CORBA_InvalidPolicies::_tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV) const
+
+void CORBA_InvalidPolicies::_tao_encode (
+ TAO_OutputCDR &cdr,
+ CORBA::Environment &ACE_TRY_ENV) const
{
if (cdr << *this)
return;
ACE_THROW (CORBA::MARSHAL ());
}
-void CORBA_InvalidPolicies::_tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &ACE_TRY_ENV)
+
+void CORBA_InvalidPolicies::_tao_decode (
+ TAO_InputCDR &cdr,
+ CORBA::Environment &ACE_TRY_ENV)
{
if (cdr >> *this)
return;
@@ -189,23 +316,50 @@ void CORBA_InvalidPolicies::_tao_decode (TAO_InputCDR &cdr,
CORBA::Exception *CORBA_InvalidPolicies::_alloc (void)
{
CORBA::Exception *retval = 0;
-
- ACE_NEW_RETURN (retval,
- CORBA_InvalidPolicies,
- 0);
-
+ ACE_NEW_RETURN (retval, ::CORBA_InvalidPolicies, 0);
return retval;
}
-CORBA_InvalidPolicies::CORBA_InvalidPolicies(
- const CORBA_InvalidPolicies::_tao_seq_UShort & _tao_indices)
-
- : CORBA_UserException (CORBA::TypeCode::_duplicate (CORBA::_tc_InvalidPolicies))
+CORBA_InvalidPolicies::CORBA_InvalidPolicies (
+ const CORBA_InvalidPolicies::_tao_seq_UShort & _tao_indices
+)
+ : CORBA_UserException (CORBA::TypeCode::_duplicate (_tc_CORBA_InvalidPolicies))
{
this->indices = _tao_indices;
}
-// ****************************************************************
+static const CORBA::Long _oc_CORBA_InvalidPolicies[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f496e), ACE_NTOHL (0x76616c69), ACE_NTOHL (0x64506f6c), ACE_NTOHL (0x69636965), ACE_NTOHL (0x733a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA_InvalidPolicies:1.0
+ 22, ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f496e), ACE_NTOHL (0x76616c69), ACE_NTOHL (0x64506f6c), ACE_NTOHL (0x69636965), ACE_NTOHL (0x73000000), // name = CORBA_InvalidPolicies
+ 1, // member count
+ 8, ACE_NTOHL (0x696e6469), ACE_NTOHL (0x63657300), // name = indices
+ CORBA::tk_sequence, // typecode kind
+ 12, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ CORBA::tk_ushort,
+
+ 0U,
+
+};
+static CORBA::TypeCode _tc_TAO_tc_CORBA_InvalidPolicies (CORBA::tk_except, sizeof (_oc_CORBA_InvalidPolicies), (char *) &_oc_CORBA_InvalidPolicies, 0, sizeof (CORBA_InvalidPolicies));
+CORBA::TypeCode_ptr _tc_CORBA_InvalidPolicies = &_tc_TAO_tc_CORBA_InvalidPolicies;
+
+
+// default constructor
+CORBA_Policy::CORBA_Policy (void)
+{}
+
+// destructor
+CORBA_Policy::~CORBA_Policy (void)
+{}
+
+void CORBA_Policy::_tao_any_destructor (void *x)
+{
+ CORBA_Policy *tmp = ACE_static_cast (CORBA_Policy*,x);
+ CORBA::release (tmp);
+}
CORBA_Policy_ptr CORBA_Policy::_narrow (
CORBA::Object_ptr obj,
@@ -214,115 +368,199 @@ CORBA_Policy_ptr CORBA_Policy::_narrow (
{
if (CORBA::is_nil (obj))
return CORBA_Policy::_nil ();
- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/Policy:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA_Policy::_nil ());
- if (is_a == 0)
- return CORBA_Policy::_nil ();
- TAO_Stub* stub = obj->_stubobj ();
- void* servant = 0;
- if (obj->_is_collocated () && obj->_servant() != 0)
- servant = obj->_servant()->_downcast ("IDL:omg.org/CORBA/Policy:1.0");
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- if (servant == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), CORBA::Policy::_nil ());
-#else
- stub->_incr_refcnt ();
- if (servant == 0)
+ if (! obj->_is_local ())
{
- CORBA_Policy_ptr rval =
- CORBA_Policy::_nil ();
-
- ACE_NEW_RETURN (rval,
- CORBA_Policy (stub),
- CORBA_Policy::_nil ());
-
- return rval;
+ CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/Policy:1.0", ACE_TRY_ENV);
+ ACE_CHECK_RETURN (CORBA_Policy::_nil ());
+ if (is_a == 0)
+ return CORBA_Policy::_nil ();
}
+ return CORBA_Policy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
- CORBA_Policy_ptr retval =
- CORBA_Policy::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_CORBA::_tao_collocated_Policy (
- ACE_reinterpret_cast (POA_CORBA::Policy_ptr,
- servant),
- stub
- ),
- CORBA_Policy::_nil ()
- );
+CORBA_Policy_ptr CORBA_Policy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return CORBA_Policy::_nil ();
+ if (! obj->_is_local ())
+ {
+ TAO_Stub* stub = obj->_stubobj ();
+ if (stub)
+ stub->_incr_refcnt ();
+ CORBA_Policy_ptr default_proxy = CORBA_Policy::_nil ();
+
+ if (obj->_is_collocated () && _TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer != 0)
+ {
+ default_proxy = _TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer (obj);
+ }
+ if (CORBA::is_nil (default_proxy))
+ ACE_NEW_RETURN (default_proxy, CORBA_Policy (stub), CORBA_Policy::_nil ());
+ #if (TAO_HAS_SMART_PROXIES == 1)
+ return TAO_CORBA_Policy_PROXY_FACTORY_ADAPTER::instance ()->create_proxy (default_proxy);
+ #else
+ return default_proxy;
+ #endif /*TAO_HAS_SMART_PROXIES == 1*/
+ }
+ else
+ return
+ ACE_reinterpret_cast
+ (
+ CORBA_Policy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &CORBA_Policy::_narrow
+ )
+ )
+ );
+}
- return retval;
+CORBA_Policy_ptr
+CORBA_Policy::_duplicate (CORBA_Policy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
}
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
CORBA::PolicyType CORBA_Policy::policy_type (
CORBA::Environment &ACE_TRY_ENV
)
-{
- CORBA::PolicyType _tao_retval = 0;
-
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+
+ CORBA::PolicyType _tao_retval = 0;
+
+
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
+
TAO_GIOP_Twoway_Invocation _tao_call (
istub,
- "_get_""policy_type",
+ "_get_policy_type",
16,
istub->orb_core ()
);
+#if (TAO_HAS_INTERCEPTORS == 1)
+ TAO_ClientRequestInterceptor_Adapter
+ _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
+ ACE_CHECK_RETURN (_tao_retval);
+ PortableInterceptor::Cookies _tao_cookies;
+ CORBA::NVList_var _tao_interceptor_args;
+ if (_tao_vfr.valid ())
+ {
+ istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
+ ACE_CHECK_RETURN (_tao_retval);
+ }
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
+ ACE_TRY
+ {
+#endif /* TAO_HAS_INTERCEPTORS */
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
+ for (;;)
+ {
+ _tao_call.start (ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
+
+ TAO_INTERCEPTOR (
+ _tao_vfr.preinvoke (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "_get_policy_type",
+ _tao_call.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ )
+ );
+ TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
+ CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
+
+ _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
+
+ int _invoke_status =
+ _tao_call.invoke (0, 0, ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
+
+ if (_invoke_status == TAO_INVOKE_RESTART)
+ continue;
+ if (_invoke_status != TAO_INVOKE_OK)
+ {
+ TAO_INTERCEPTOR_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+
+ }
+ TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
+ if (!(
+ (_tao_in >> _tao_retval)
+ ))
+ TAO_INTERCEPTOR_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+
+ TAO_INTERCEPTOR (
+ _tao_vfr.postinvoke (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "_get_policy_type",
+ _tao_call.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ )
+ );
+ TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
+ break;
+
+ }
+#if (TAO_HAS_INTERCEPTORS == 1)
+
+ }
+ ACE_CATCHANY
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
+ _tao_vfr.exception_occurred (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "_get_policy_type",
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ ACE_RE_THROW;
}
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (_tao_retval);
+#endif /* TAO_HAS_INTERCEPTORS */
return _tao_retval;
}
CORBA_Policy_ptr CORBA_Policy::copy (
CORBA::Environment &ACE_TRY_ENV
)
-{
- CORBA_Policy_ptr _tao_retval = CORBA_Policy::_nil ();
-
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+
+ CORBA_Policy_ptr _tao_retval = CORBA_Policy::_nil ();
+ CORBA_Policy_var _tao_safe_retval (_tao_retval);
+
+
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
+ ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
+
TAO_GIOP_Twoway_Invocation _tao_call (
istub,
"copy",
@@ -330,52 +568,115 @@ CORBA_Policy_ptr CORBA_Policy::copy (
istub->orb_core ()
);
+#if (TAO_HAS_INTERCEPTORS == 1)
+ TAO_ClientRequestInterceptor_Adapter
+ _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
+ ACE_CHECK_RETURN (0);
+ PortableInterceptor::Cookies _tao_cookies;
+ CORBA::NVList_var _tao_interceptor_args;
+ if (_tao_vfr.valid ())
+ {
+ istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
+ ACE_CHECK_RETURN (0);
+ }
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
- ACE_CHECK_RETURN (_tao_retval);
+ ACE_TRY
+ {
+#endif /* TAO_HAS_INTERCEPTORS */
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
+ for (;;)
+ {
+ _tao_call.start (ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK_RETURN (0);
+
+ TAO_INTERCEPTOR (
+ _tao_vfr.preinvoke (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "copy",
+ _tao_call.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ )
+ );
+ TAO_INTERCEPTOR_CHECK_RETURN (0);
+ CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
+
+ _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK_RETURN (0);
+
+ int _invoke_status =
+ _tao_call.invoke (0, 0, ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK_RETURN (0);
+
+ if (_invoke_status == TAO_INVOKE_RESTART)
+ continue;
+ if (_invoke_status != TAO_INVOKE_OK)
+ {
+ TAO_INTERCEPTOR_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), 0);
+
+ }
+ TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
+ if (!(
+ (_tao_in >> _tao_safe_retval.inout ())
+ ))
+ TAO_INTERCEPTOR_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), 0);
+
+ TAO_INTERCEPTOR (
+ _tao_vfr.postinvoke (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "copy",
+ _tao_call.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ )
+ );
+ TAO_INTERCEPTOR_CHECK_RETURN (0);
+ break;
+
+ }
+#if (TAO_HAS_INTERCEPTORS == 1)
+
+ }
+ ACE_CATCHANY
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-
+ _tao_vfr.exception_occurred (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "copy",
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ ACE_RE_THROW;
}
- break;
-
- }
- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
- if (!(
- (_tao_in >> _tao_retval)
- ))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (0);
+#endif /* TAO_HAS_INTERCEPTORS */
+ return _tao_safe_retval._retn ();
}
void CORBA_Policy::destroy (
CORBA::Environment &ACE_TRY_ENV
)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
{
+
+
+
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
ACE_THROW (CORBA::INTERNAL ());
-
+
TAO_GIOP_Twoway_Invocation _tao_call (
istub,
"destroy",
@@ -383,37 +684,92 @@ void CORBA_Policy::destroy (
istub->orb_core ()
);
-
- for (;;)
- {
- _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK;
-
- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
+#if (TAO_HAS_INTERCEPTORS == 1)
+ TAO_ClientRequestInterceptor_Adapter
+ _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
ACE_CHECK;
-
- int _invoke_status =
- _tao_call.invoke (0, 0, ACE_TRY_ENV);
+ PortableInterceptor::Cookies _tao_cookies;
+ CORBA::NVList_var _tao_interceptor_args;
+ if (_tao_vfr.valid ())
+ {
+ istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
ACE_CHECK;
+ }
- if (_invoke_status == TAO_INVOKE_RESTART)
- continue;
- // if (_invoke_status == TAO_INVOKE_EXCEPTION)
- // cannot happen
- if (_invoke_status != TAO_INVOKE_OK)
- {
- ACE_THROW (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES));
+ ACE_TRY
+ {
+#endif /* TAO_HAS_INTERCEPTORS */
+ for (;;)
+ {
+ _tao_call.start (ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK;
+
+ TAO_INTERCEPTOR (
+ _tao_vfr.preinvoke (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "destroy",
+ _tao_call.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ )
+ );
+ TAO_INTERCEPTOR_CHECK;
+ CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
+
+ _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK;
+
+ int _invoke_status =
+ _tao_call.invoke (0, 0, ACE_TRY_ENV);
+ TAO_INTERCEPTOR_CHECK;
+
+ if (_invoke_status == TAO_INVOKE_RESTART)
+ continue;
+ if (_invoke_status != TAO_INVOKE_OK)
+ {
+ TAO_INTERCEPTOR_THROW (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES));
+ }
+
+ TAO_INTERCEPTOR (
+ _tao_vfr.postinvoke (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "destroy",
+ _tao_call.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ )
+ );
+ TAO_INTERCEPTOR_CHECK;
+ break;
+
+ }
+#if (TAO_HAS_INTERCEPTORS == 1)
+
}
- break;
-
- }
+ ACE_CATCHANY
+ {
+ _tao_vfr.exception_occurred (
+ _tao_call.request_id (),
+ 1,
+ this,
+ "destroy",
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK;
+#endif /* TAO_HAS_INTERCEPTORS */
}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
CORBA::Boolean CORBA_Policy::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
{
@@ -422,43 +778,136 @@ CORBA::Boolean CORBA_Policy::_is_a (const CORBA::Char *value, CORBA::Environment
(!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
return 1; // success using local knowledge
else
- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call
-}
-
-const char* CORBA_Policy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/CORBA/Policy:1.0";
+ return this->CORBA_Object::_is_a (value, ACE_TRY_ENV);
}
-CORBA_Policy_ptr
-CORBA_Policy::_duplicate (CORBA_Policy_ptr obj)
+void *CORBA_Policy::_tao_QueryInterface (ptr_arith_t type)
{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
- return obj;
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &CORBA_Policy::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
}
-CORBA_Policy_ptr
-CORBA_Policy::_nil (void)
+const char* CORBA_Policy::_interface_repository_id (void) const
{
- return (CORBA_Policy_ptr)0;
+ return "IDL:omg.org/CORBA/Policy:1.0";
}
-////////////////////////////////////////////////////////////////
-// Serialization Support Methods
-//
-CORBA::Boolean
+CORBA::Boolean
CORBA_Policy::_tao_encode (TAO_OutputCDR &)
{
- return 0;
+ return 0;
}
-CORBA::Boolean
+CORBA::Boolean
CORBA_Policy::_tao_decode (TAO_InputCDR &)
{
return 0;
}
+static const CORBA::Long _oc_CORBA_Policy[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 29, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA_Policy:1.0
+ 13, ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x0), // name = CORBA_Policy
+};
+static CORBA::TypeCode _tc_TAO_tc_CORBA_Policy (CORBA::tk_objref, sizeof (_oc_CORBA_Policy), (char *) &_oc_CORBA_Policy, 0, sizeof (CORBA_Policy));
+CORBA::TypeCode_ptr _tc_CORBA_Policy = &_tc_TAO_tc_CORBA_Policy;
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CS_)
+#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CS_
+
+ // The Base_Sequence functions, please see tao/Sequence.h
+ void
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_allocate_buffer (CORBA::ULong length)
+ {
+ CORBA_Policy **tmp = 0;
+ tmp = _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (length);
+
+ if (this->buffer_ != 0)
+ {
+ CORBA_Policy **old = ACE_reinterpret_cast (CORBA_Policy**, this->buffer_);
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ if (!this->release_)
+ tmp[i] = CORBA_Policy::_duplicate (old[i]);
+ else
+ tmp[i] = old[i];
+
+ if (this->release_)
+ delete[] old;
+
+ }
+ this->buffer_ = tmp;
+ }
+
+ void
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_deallocate_buffer (void)
+ {
+ if (this->buffer_ == 0 || this->release_ == 0)
+ return;
+ CORBA_Policy **tmp = ACE_reinterpret_cast (CORBA_Policy**, this->buffer_);
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ {
+ CORBA::release (tmp[i]);
+ tmp[i] = CORBA_Policy::_nil ();
+ }
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::freebuf (tmp);
+ this->buffer_ = 0;
+ }
+
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::~_TAO_Unbounded_Object_Sequence_CORBA_PolicyList (void)
+ {
+ this->_deallocate_buffer ();
+ }
+
+ void
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_shrink_buffer (CORBA::ULong nl, CORBA::ULong ol)
+ {
+ CORBA_Policy **tmp = ACE_reinterpret_cast (CORBA_Policy**, this->buffer_);
+
+ for (CORBA::ULong i = nl; i < ol; ++i)
+ {
+ CORBA::release (tmp[i]);
+ tmp[i] = CORBA_Policy::_nil ();
+ }
+ }
+ void
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_downcast (
+ void* target,
+ CORBA_Object *src,
+ CORBA_Environment &ACE_TRY_ENV
+ )
+ {
+ CORBA_Policy **tmp = ACE_static_cast (CORBA_Policy**, target);
+ *tmp = CORBA_Policy::_narrow (src, ACE_TRY_ENV);
+ }
+
+ CORBA_Object*
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_upcast (void *src) const
+ {
+ CORBA_Policy **tmp = ACE_static_cast (CORBA_Policy**, src);
+ return *tmp;
+ }
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_POLICYLIST_CS_)
+#define _CORBA_POLICYLIST_CS_
// *************************************************************
// CORBA_PolicyList
@@ -467,16 +916,114 @@ CORBA_Policy::_tao_decode (TAO_InputCDR &)
CORBA_PolicyList::CORBA_PolicyList (void)
{}
CORBA_PolicyList::CORBA_PolicyList (CORBA::ULong max) // uses max size
- : TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var> (max)
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max)
{}
CORBA_PolicyList::CORBA_PolicyList (CORBA::ULong max, CORBA::ULong length, CORBA_Policy_ptr *buffer, CORBA::Boolean release)
- : TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var> (max, length, buffer, release)
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max, length, buffer, release)
{}
CORBA_PolicyList::CORBA_PolicyList (const CORBA_PolicyList &seq) // copy ctor
- : TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var> (seq)
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (seq)
{}
CORBA_PolicyList::~CORBA_PolicyList (void) // dtor
{}
+void CORBA_PolicyList::_tao_any_destructor (void *x)
+{
+ CORBA_PolicyList *tmp = ACE_static_cast (CORBA_PolicyList*,x);
+ delete tmp;
+}
+
+
+#endif /* end #if !defined */
+
+static const CORBA::Long _oc_CORBA_PolicyList[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 33, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4c697374), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA_PolicyList:1.0
+ 17, ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4c697374), ACE_NTOHL (0x0), // name = CORBA_PolicyList
+ CORBA::tk_sequence, // typecode kind
+ 76, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ CORBA::tk_objref, // typecode kind
+ 60, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 29, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA_Policy:1.0
+ 13, ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x0), // name = CORBA_Policy
+
+ 0U,
+
+};
+static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyList (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyList), (char *) &_oc_CORBA_PolicyList, 0, sizeof (CORBA_PolicyList));
+CORBA::TypeCode_ptr _tc_CORBA_PolicyList = &_tc_TAO_tc_CORBA_PolicyList;
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CS_)
+#define __TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CS_
+
+ void
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_allocate_buffer (CORBA::ULong length)
+ {
+ CORBA::ULong* tmp = 0;
+ tmp = _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (length);
+
+ if (this->buffer_ != 0)
+ {
+ CORBA::ULong *old = ACE_reinterpret_cast (CORBA::ULong *,this->buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ tmp[i] = old[i];
+
+ if (this->release_)
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::freebuf (old);
+
+ }
+ this->buffer_ = tmp;
+ }
+
+ void
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_deallocate_buffer (void)
+ {
+ if (this->buffer_ == 0 || this->release_ == 0)
+ return;
+
+ CORBA::ULong *tmp = ACE_reinterpret_cast (CORBA::ULong *,this->buffer_);
+
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::freebuf (tmp);
+ this->buffer_ = 0;
+ }
+
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::~_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (void) // Dtor.
+ {
+ this->_deallocate_buffer ();
+ }
+
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_POLICYTYPESEQ_CS_)
+#define _CORBA_POLICYTYPESEQ_CS_
// *************************************************************
// CORBA_PolicyTypeSeq
@@ -485,83 +1032,126 @@ CORBA_PolicyList::~CORBA_PolicyList (void) // dtor
CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (void)
{}
CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (CORBA::ULong max) // uses max size
- : TAO_Unbounded_Sequence<CORBA::ULong>
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::ULong>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
(max)
{}
CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (CORBA::ULong max, CORBA::ULong length, CORBA::ULong *buffer, CORBA::Boolean release)
- : TAO_Unbounded_Sequence<CORBA::ULong> (max, length, buffer, release)
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::ULong>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max, length, buffer, release)
{}
-CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (const CORBA_PolicyTypeSeq &seq)
- : TAO_Unbounded_Sequence<CORBA::ULong> (seq)
+CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (const CORBA_PolicyTypeSeq &seq) // copy ctor
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::ULong>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (seq)
{}
-CORBA_PolicyTypeSeq::~CORBA_PolicyTypeSeq (void)
+CORBA_PolicyTypeSeq::~CORBA_PolicyTypeSeq (void) // dtor
{}
+void CORBA_PolicyTypeSeq::_tao_any_destructor (void *x)
+{
+ CORBA_PolicyTypeSeq *tmp = ACE_static_cast (CORBA_PolicyTypeSeq*,x);
+ delete tmp;
+}
-// ****************************************************************
-CORBA::PolicyManager_ptr CORBA_PolicyManager::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
+#endif /* end #if !defined */
+
+static const CORBA::Long _oc_CORBA_PolicyTypeSeq[] =
{
- if (CORBA::is_nil (obj))
- return CORBA_PolicyManager::_nil ();
- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/PolicyManager:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA_PolicyManager::_nil ());
- if (is_a == 0)
- return CORBA_PolicyManager::_nil ();
- void* servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant()->_downcast ("IDL:omg.org/CORBA/PolicyManager:1.0")) == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), CORBA_PolicyManager::_nil ());
-
- CORBA::PolicyManager_ptr retval =
- CORBA_PolicyManager::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_CORBA::_tao_collocated_PolicyManager (
- ACE_reinterpret_cast (POA_CORBA::PolicyManager_ptr,
- servant),
- 0
- ),
- CORBA_PolicyManager::_nil ()
- );
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 36, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x54797065), ACE_NTOHL (0x5365713a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA_PolicyTypeSeq:1.0
+ 20, ACE_NTOHL (0x434f5242), ACE_NTOHL (0x415f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x54797065), ACE_NTOHL (0x53657100), // name = CORBA_PolicyTypeSeq
+ CORBA::tk_sequence, // typecode kind
+ 80, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ CORBA::tk_alias, // typecode kind for typedefs
+ 64, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 33, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x54797065), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyType:1.0
+ 11, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795479), ACE_NTOHL (0x70650000), // name = PolicyType
+ CORBA::tk_ulong,
- return retval;
-}
-CORBA_PolicyList * CORBA_PolicyManager::get_policy_overrides (
- const CORBA_PolicyTypeSeq & ts,
+ 0U,
+
+};
+static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyTypeSeq (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyTypeSeq), (char *) &_oc_CORBA_PolicyTypeSeq, 0, sizeof (CORBA_PolicyTypeSeq));
+CORBA::TypeCode_ptr _tc_CORBA_PolicyTypeSeq = &_tc_TAO_tc_CORBA_PolicyTypeSeq;
+
+
+// default constructor
+CORBA_PolicyManager::CORBA_PolicyManager (void)
+{}
+
+// destructor
+CORBA_PolicyManager::~CORBA_PolicyManager (void)
+{}
+
+CORBA_PolicyManager_ptr CORBA_PolicyManager::_narrow (
+ CORBA::Object_ptr obj,
CORBA::Environment &ACE_TRY_ENV
)
{
- CORBA_PolicyList* _tao_retval = 0;
- ACE_UNUSED_ARG (_tao_retval);
- ACE_UNUSED_ARG (ts);
- ACE_THROW_RETURN (CORBA::MARSHAL (), _tao_retval);
+ return CORBA_PolicyManager::_unchecked_narrow (obj, ACE_TRY_ENV);
}
-void CORBA_PolicyManager::set_policy_overrides (
- const CORBA_PolicyList & policies,
- CORBA::SetOverrideType set_add,
- CORBA::Environment &ACE_TRY_ENV
+CORBA_PolicyManager_ptr CORBA_PolicyManager::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
)
{
- ACE_UNUSED_ARG (policies);
- ACE_UNUSED_ARG (set_add);
+ if (CORBA::is_nil (obj))
+ return CORBA_PolicyManager::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ CORBA_PolicyManager_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &CORBA_PolicyManager::_narrow
+ )
+ )
+ );
+}
- ACE_THROW (CORBA::MARSHAL ());
+CORBA_PolicyManager_ptr
+CORBA_PolicyManager::_duplicate (CORBA_PolicyManager_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
}
-CORBA::Boolean CORBA_PolicyManager::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
+void *CORBA_PolicyManager::_tao_QueryInterface (ptr_arith_t type)
{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &CORBA_PolicyManager::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
}
const char* CORBA_PolicyManager::_interface_repository_id (void) const
@@ -569,355 +1159,338 @@ const char* CORBA_PolicyManager::_interface_repository_id (void) const
return "IDL:omg.org/CORBA/PolicyManager:1.0";
}
-// ****************************************************************
+// default constructor
+CORBA_PolicyCurrent::CORBA_PolicyCurrent (void)
+{}
+
+// destructor
+CORBA_PolicyCurrent::~CORBA_PolicyCurrent (void)
+{}
CORBA_PolicyCurrent_ptr CORBA_PolicyCurrent::_narrow (
CORBA::Object_ptr obj,
CORBA::Environment &ACE_TRY_ENV
)
{
- if (CORBA::is_nil (obj))
- return CORBA_PolicyCurrent::_nil ();
- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/PolicyCurrent:1.0", ACE_TRY_ENV);
- ACE_CHECK_RETURN (CORBA_PolicyCurrent::_nil ());
- if (is_a == 0)
- return CORBA_PolicyCurrent::_nil ();
- void* servant = 0;
- if (!obj->_is_collocated () || !obj->_servant() ||
- (servant = obj->_servant()->_downcast ("IDL:omg.org/CORBA/PolicyCurrent:1.0")) == 0)
- ACE_THROW_RETURN (CORBA::MARSHAL (), CORBA_PolicyCurrent::_nil ());
-
- CORBA_PolicyCurrent_ptr retval =
- CORBA_PolicyCurrent::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- POA_CORBA::_tao_collocated_PolicyCurrent (
- ACE_reinterpret_cast (POA_CORBA::PolicyCurrent_ptr,
- servant),
- 0
- ),
- CORBA_PolicyCurrent::_nil ()
- );
-
- return retval;
+ return CORBA_PolicyCurrent::_unchecked_narrow (obj, ACE_TRY_ENV);
}
-CORBA::Boolean CORBA_PolicyCurrent::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
+CORBA_PolicyCurrent_ptr CORBA_PolicyCurrent::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyCurrent:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
- return 1; // success using local knowledge
- else
- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call
+ if (CORBA::is_nil (obj))
+ return CORBA_PolicyCurrent::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ CORBA_PolicyCurrent_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &CORBA_PolicyCurrent::_narrow
+ )
+ )
+ );
}
-const char* CORBA_PolicyCurrent::_interface_repository_id (void) const
+CORBA_PolicyCurrent_ptr
+CORBA_PolicyCurrent::_duplicate (CORBA_PolicyCurrent_ptr obj)
{
- return "IDL:omg.org/CORBA/PolicyCurrent:1.0";
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
}
-// ****************************************************************
-
-
-void operator<<= (CORBA::Any &_tao_any, const CORBA::PolicyError &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- CORBA::_tc_PolicyError,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
+void *CORBA_PolicyCurrent::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &CORBA_PolicyCurrent::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &CORBA_PolicyManager::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA_PolicyManager_ptr,
+ this
+ )
);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &CORBA_Current::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA_Current_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
}
-void CORBA::PolicyError::_tao_any_destructor (void *x)
+const char* CORBA_PolicyCurrent::_interface_repository_id (void) const
{
- CORBA::PolicyError *tmp = ACE_static_cast(CORBA::PolicyError*,x);
- delete tmp;
+ return "IDL:omg.org/CORBA/PolicyCurrent:1.0";
}
-void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyError *_tao_elem) // non copying
+void operator<<= (CORBA::Any &_tao_any, CORBA::SetOverrideType _tao_elem)
{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- CORBA::_tc_PolicyError,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- CORBA::PolicyError::_tao_any_destructor
- );
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ CORBA::_tc_SetOverrideType,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyError *&_tao_elem)
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::SetOverrideType &_tao_elem)
{
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyError, ACE_TRY_ENV)) // not equal
+ if (!type->equivalent (CORBA::_tc_SetOverrideType, ACE_TRY_ENV)) // not equal
{
- _tao_elem = 0;
return 0;
}
ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
{
- _tao_elem = (CORBA::PolicyError *)_tao_any.value ();
return 1;
}
- else
- {
- ACE_NEW_RETURN (_tao_elem, CORBA::PolicyError, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyError,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- CORBA::PolicyError::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
}
ACE_CATCHANY
{
- delete _tao_elem;
- _tao_elem = 0;
return 0;
}
ACE_ENDTRY;
return 0;
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyError *&_tao_elem)
+void operator<<= (CORBA::Any &_tao_any, const CORBA_PolicyError &_tao_elem) // copying
{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ _tc_CORBA_PolicyError,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+void operator<<= (CORBA::Any &_tao_any, CORBA_PolicyError *_tao_elem) // non copying
+{
+ TAO_OutputCDR stream;
+ stream << *_tao_elem;
+ _tao_any._tao_replace (
+ _tc_CORBA_PolicyError,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin (),
+ 1,
+ _tao_elem,
+ CORBA_PolicyError::_tao_any_destructor
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA_PolicyError *&_tao_elem)
+{
+ return _tao_any >>= ACE_const_cast(
+ const CORBA_PolicyError*&,
+ _tao_elem
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA_PolicyError *&_tao_elem)
+{
+ _tao_elem = 0;
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyError, ACE_TRY_ENV)) // not equal
+ if (!type->equivalent (_tc_CORBA_PolicyError, ACE_TRY_ENV)) // not equal
{
- _tao_elem = 0;
return 0;
}
ACE_TRY_CHECK;
if (_tao_any.any_owns_data ())
{
- _tao_elem = (CORBA::PolicyError *)_tao_any.value ();
+ _tao_elem = (CORBA_PolicyError *)_tao_any.value ();
return 1;
}
else
{
- ACE_NEW_RETURN (_tao_elem, CORBA::PolicyError, 0);
+ CORBA_PolicyError *tmp;
+ ACE_NEW_RETURN (tmp, CORBA_PolicyError, 0);
TAO_InputCDR stream (
_tao_any._tao_get_cdr (),
_tao_any._tao_byte_order ()
);
- if (stream >> *(CORBA::PolicyError *)_tao_elem)
+ CORBA::String_var interface_repository_id;
+ if (!(stream >> interface_repository_id.out ()))
+ return 0;
+ if (ACE_OS::strcmp (
+ interface_repository_id.in (),
+ "IDL:omg.org/CORBA/PolicyError:1.0"))
+ return 0;
+ if (stream >> *tmp)
{
((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyError,
+ _tc_CORBA_PolicyError,
1,
- ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::PolicyError *&, _tao_elem)),
- CORBA::PolicyError::_tao_any_destructor
+ tmp,
+ CORBA_PolicyError::_tao_any_destructor
);
+ _tao_elem = tmp;
return 1;
}
else
{
- delete ACE_const_cast (CORBA::PolicyError *&, _tao_elem);
- _tao_elem = 0;
+ delete tmp;
}
}
}
ACE_CATCHANY
{
- delete ACE_const_cast (CORBA::PolicyError *&, _tao_elem);
- _tao_elem = 0;
- return 0;
}
ACE_ENDTRY;
return 0;
}
-void operator<<= (CORBA::Any &_tao_any, const CORBA::InvalidPolicies &_tao_elem) // copying
+void operator<<= (CORBA::Any &_tao_any, const CORBA_InvalidPolicies &_tao_elem) // copying
{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- CORBA::_tc_InvalidPolicies,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ _tc_CORBA_InvalidPolicies,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
}
-void CORBA::InvalidPolicies::_tao_any_destructor (void *x)
+void operator<<= (CORBA::Any &_tao_any, CORBA_InvalidPolicies *_tao_elem) // non copying
{
- CORBA::InvalidPolicies *tmp = ACE_static_cast(CORBA::InvalidPolicies*,x);
- delete tmp;
+ TAO_OutputCDR stream;
+ stream << *_tao_elem;
+ _tao_any._tao_replace (
+ _tc_CORBA_InvalidPolicies,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin (),
+ 1,
+ _tao_elem,
+ CORBA_InvalidPolicies::_tao_any_destructor
+ );
}
-void operator<<= (CORBA::Any &_tao_any, CORBA::InvalidPolicies *_tao_elem) // non copying
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA_InvalidPolicies *&_tao_elem)
{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- CORBA::_tc_InvalidPolicies,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- CORBA::InvalidPolicies::_tao_any_destructor
- );
+ return _tao_any >>= ACE_const_cast(
+ const CORBA_InvalidPolicies*&,
+ _tao_elem
+ );
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::InvalidPolicies *&_tao_elem)
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA_InvalidPolicies *&_tao_elem)
{
+ _tao_elem = 0;
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_InvalidPolicies, ACE_TRY_ENV)) // not equal
+ if (!type->equivalent (_tc_CORBA_InvalidPolicies, ACE_TRY_ENV)) // not equal
{
- _tao_elem = 0;
return 0;
}
ACE_TRY_CHECK;
if (_tao_any.any_owns_data ())
{
- _tao_elem = (CORBA::InvalidPolicies *)_tao_any.value ();
+ _tao_elem = (CORBA_InvalidPolicies *)_tao_any.value ();
return 1;
}
else
{
- ACE_NEW_RETURN (_tao_elem, CORBA::InvalidPolicies, 0);
+ CORBA_InvalidPolicies *tmp;
+ ACE_NEW_RETURN (tmp, CORBA_InvalidPolicies, 0);
TAO_InputCDR stream (
_tao_any._tao_get_cdr (),
_tao_any._tao_byte_order ()
);
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_InvalidPolicies,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- CORBA::InvalidPolicies::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::InvalidPolicies *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_InvalidPolicies, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
+ CORBA::String_var interface_repository_id;
+ if (!(stream >> interface_repository_id.out ()))
return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (CORBA::InvalidPolicies *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, CORBA::InvalidPolicies, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *(CORBA::InvalidPolicies *)_tao_elem)
+ if (ACE_OS::strcmp (
+ interface_repository_id.in (),
+ "IDL:omg.org/CORBA/InvalidPolicies:1.0"))
+ return 0;
+ if (stream >> *tmp)
{
((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_InvalidPolicies,
+ _tc_CORBA_InvalidPolicies,
1,
- ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::InvalidPolicies *&, _tao_elem)),
- CORBA::InvalidPolicies::_tao_any_destructor
+ tmp,
+ CORBA_InvalidPolicies::_tao_any_destructor
);
+ _tao_elem = tmp;
return 1;
}
else
{
- delete ACE_const_cast (CORBA::InvalidPolicies *&, _tao_elem);
- _tao_elem = 0;
+ delete tmp;
}
}
}
ACE_CATCHANY
{
- delete ACE_const_cast (CORBA::InvalidPolicies *&, _tao_elem);
- _tao_elem = 0;
- return 0;
}
ACE_ENDTRY;
return 0;
}
-void CORBA::Policy::_tao_any_destructor (void *x)
-{
- CORBA::Policy *tmp = ACE_static_cast(CORBA::Policy*,x);
- CORBA::release (tmp);
-}
-
-CORBA::Policy_ptr (*_TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer) (
+CORBA_Policy_ptr (*_TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
-void operator<<= (CORBA::Any &_tao_any, CORBA::Policy_ptr _tao_elem)
+void operator<<= (CORBA::Any &_tao_any, CORBA_Policy_ptr _tao_elem)
{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- CORBA::_tc_Policy,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- CORBA::Policy::_tao_any_destructor
- );
- }
+ TAO_OutputCDR stream;
+ if (stream << _tao_elem)
+ {
+ _tao_any._tao_replace (
+ _tc_CORBA_Policy,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin (),
+ 1,
+ CORBA_Policy::_duplicate (_tao_elem),
+ CORBA_Policy::_tao_any_destructor
+ );
+ }
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::Policy_ptr &_tao_elem)
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA_Policy_ptr &_tao_elem)
{
ACE_TRY_NEW_ENV
{
- _tao_elem = CORBA::Policy::_nil ();
+ _tao_elem = CORBA_Policy::_nil ();
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_Policy, ACE_TRY_ENV)) // not equal
+ if (!type->equivalent (_tc_CORBA_Policy, ACE_TRY_ENV)) // not equal
{
return 0;
}
@@ -926,163 +1499,118 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::Policy_ptr &_tao_
_tao_any._tao_get_cdr (),
_tao_any._tao_byte_order ()
);
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
+ if (stream >> _tao_elem)
{
- _tao_elem = CORBA::Policy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_Policy,
+ _tc_CORBA_Policy,
1,
_tao_elem,
- CORBA::Policy::_tao_any_destructor
+ CORBA_Policy::_tao_any_destructor
);
return 1;
}
}
ACE_CATCHANY
{
- _tao_elem = CORBA::Policy::_nil ();
+ _tao_elem = CORBA_Policy::_nil ();
return 0;
}
ACE_ENDTRY;
- _tao_elem = CORBA::Policy::_nil ();
+ _tao_elem = CORBA_Policy::_nil ();
return 0;
}
-// ****************************************************************
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
void operator<<= (
CORBA::Any &_tao_any,
- const CORBA::PolicyList &_tao_elem
+ const CORBA_PolicyList &_tao_elem
) // copying
{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- CORBA::_tc_PolicyList,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
+ TAO_OutputCDR stream;
+ if (stream << _tao_elem)
+ {
+ _tao_any._tao_replace (
+ _tc_CORBA_PolicyList,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+ }
}
-void CORBA::PolicyList::_tao_any_destructor (void *x)
+void operator<<= (CORBA::Any &_tao_any, CORBA_PolicyList *_tao_elem) // non copying
{
- CORBA::PolicyList *tmp = ACE_static_cast(CORBA::PolicyList*,x);
- delete tmp;
+ TAO_OutputCDR stream;
+ stream << *_tao_elem;
+ _tao_any._tao_replace (
+ _tc_CORBA_PolicyList,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin (),
+ 1,
+ _tao_elem,
+ CORBA_PolicyList::_tao_any_destructor
+ );
}
-void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyList *_tao_elem) // non copying
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA_PolicyList *&_tao_elem)
{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- CORBA::_tc_PolicyList,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- CORBA::PolicyList::_tao_any_destructor
- );
+ return _tao_any >>= ACE_const_cast(
+ const CORBA_PolicyList*&,
+ _tao_elem
+ );
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyList *&_tao_elem)
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA_PolicyList *&_tao_elem)
{
+ _tao_elem = 0;
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyList, ACE_TRY_ENV)) // not equal
+ if (!type->equivalent (_tc_CORBA_PolicyList, ACE_TRY_ENV)) // not equal
{
- _tao_elem = 0;
return 0;
}
ACE_TRY_CHECK;
if (_tao_any.any_owns_data ())
{
- _tao_elem = (CORBA::PolicyList *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, CORBA::PolicyList, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
+ _tao_elem = ACE_static_cast(
+ const CORBA_PolicyList*,
+ _tao_any.value ()
);
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyList,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- CORBA::PolicyList::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyList *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyList, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (CORBA::PolicyList *)_tao_any.value ();
return 1;
}
else
{
- ACE_NEW_RETURN (_tao_elem, CORBA::PolicyList, 0);
+ CORBA_PolicyList *tmp;
+ ACE_NEW_RETURN (tmp, CORBA_PolicyList, 0);
TAO_InputCDR stream (
_tao_any._tao_get_cdr (),
_tao_any._tao_byte_order ()
);
- if (stream >> *(CORBA::PolicyList *)_tao_elem)
+ if (stream >> *tmp)
{
((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyList,
+ _tc_CORBA_PolicyList,
1,
- ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::PolicyList *&, _tao_elem)),
- CORBA::PolicyList::_tao_any_destructor
+ ACE_static_cast (void *, tmp),
+ CORBA_PolicyList::_tao_any_destructor
);
+ _tao_elem = tmp;
return 1;
}
else
{
- delete ACE_const_cast (CORBA::PolicyList *&, _tao_elem);
- _tao_elem = 0;
+ delete tmp;
}
}
}
ACE_CATCHANY
{
- delete ACE_const_cast (CORBA::PolicyList *&, _tao_elem);
- _tao_elem = 0;
- return 0;
}
ACE_ENDTRY;
return 0;
@@ -1090,354 +1618,215 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyList
void operator<<= (
CORBA::Any &_tao_any,
- const CORBA::PolicyTypeSeq &_tao_elem
+ const CORBA_PolicyTypeSeq &_tao_elem
) // copying
{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- CORBA::_tc_PolicyTypeSeq,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
+ TAO_OutputCDR stream;
+ if (stream << _tao_elem)
+ {
+ _tao_any._tao_replace (
+ _tc_CORBA_PolicyTypeSeq,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+ }
}
-void CORBA::PolicyTypeSeq::_tao_any_destructor (void *x)
+void operator<<= (CORBA::Any &_tao_any, CORBA_PolicyTypeSeq *_tao_elem) // non copying
{
- CORBA::PolicyTypeSeq *tmp = ACE_static_cast(CORBA::PolicyTypeSeq*,x);
- delete tmp;
+ TAO_OutputCDR stream;
+ stream << *_tao_elem;
+ _tao_any._tao_replace (
+ _tc_CORBA_PolicyTypeSeq,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin (),
+ 1,
+ _tao_elem,
+ CORBA_PolicyTypeSeq::_tao_any_destructor
+ );
}
-void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyTypeSeq *_tao_elem) // non copying
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA_PolicyTypeSeq *&_tao_elem)
{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- CORBA::_tc_PolicyTypeSeq,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- CORBA::PolicyTypeSeq::_tao_any_destructor
- );
+ return _tao_any >>= ACE_const_cast(
+ const CORBA_PolicyTypeSeq*&,
+ _tao_elem
+ );
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyTypeSeq *&_tao_elem)
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA_PolicyTypeSeq *&_tao_elem)
{
+ _tao_elem = 0;
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyTypeSeq, ACE_TRY_ENV)) // not equal
+ if (!type->equivalent (_tc_CORBA_PolicyTypeSeq, ACE_TRY_ENV)) // not equal
{
- _tao_elem = 0;
return 0;
}
ACE_TRY_CHECK;
if (_tao_any.any_owns_data ())
{
- _tao_elem = (CORBA::PolicyTypeSeq *)_tao_any.value ();
- return 1;
- }
- else
- {
- ACE_NEW_RETURN (_tao_elem, CORBA::PolicyTypeSeq, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
+ _tao_elem = ACE_static_cast(
+ const CORBA_PolicyTypeSeq*,
+ _tao_any.value ()
);
- if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyTypeSeq,
- 1,
- ACE_reinterpret_cast (void *, _tao_elem),
- CORBA::PolicyTypeSeq::_tao_any_destructor
- );
- return 1;
- }
- else
- {
- delete _tao_elem;
- _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
- delete _tao_elem;
- _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyTypeSeq *&_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyTypeSeq, ACE_TRY_ENV)) // not equal
- {
- _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = (CORBA::PolicyTypeSeq *)_tao_any.value ();
return 1;
}
else
{
- ACE_NEW_RETURN (_tao_elem, CORBA::PolicyTypeSeq, 0);
+ CORBA_PolicyTypeSeq *tmp;
+ ACE_NEW_RETURN (tmp, CORBA_PolicyTypeSeq, 0);
TAO_InputCDR stream (
_tao_any._tao_get_cdr (),
_tao_any._tao_byte_order ()
);
- if (stream >> *(CORBA::PolicyTypeSeq *)_tao_elem)
+ if (stream >> *tmp)
{
((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyTypeSeq,
+ _tc_CORBA_PolicyTypeSeq,
1,
- ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::PolicyTypeSeq *&, _tao_elem)),
- CORBA::PolicyTypeSeq::_tao_any_destructor
+ ACE_static_cast (void *, tmp),
+ CORBA_PolicyTypeSeq::_tao_any_destructor
);
+ _tao_elem = tmp;
return 1;
}
else
{
- delete ACE_const_cast (CORBA::PolicyTypeSeq *&, _tao_elem);
- _tao_elem = 0;
+ delete tmp;
}
}
}
ACE_CATCHANY
{
- delete ACE_const_cast (CORBA::PolicyTypeSeq *&, _tao_elem);
- _tao_elem = 0;
- return 0;
}
ACE_ENDTRY;
return 0;
}
-void operator<<= (CORBA::Any &_tao_any, CORBA::SetOverrideType _tao_elem)
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- CORBA::_tc_SetOverrideType,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<CORBA_PolicyManager,CORBA_PolicyManager_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<CORBA_PolicyManager,CORBA_PolicyManager_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::SetOverrideType &_tao_elem)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_SetOverrideType, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> _tao_elem)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<CORBA_PolicyCurrent,CORBA_PolicyCurrent_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<CORBA_PolicyCurrent,CORBA_PolicyCurrent_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-// ****************************************************************
-CORBA::Boolean
-operator<< (
+#if !defined _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_CPP_
+#define _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_CPP_
+
+CORBA::Boolean operator<< (
TAO_OutputCDR &strm,
- const CORBA_Policy_ptr _tao_objref
+ const CORBA_InvalidPolicies::_tao_seq_UShort &_tao_sequence
)
{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
+ if (strm << _tao_sequence.length ())
+ {
+ // encode all elements
+ return strm.write_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
+ }
+ return 0; // error
}
-CORBA::Boolean
-operator>> (
+CORBA::Boolean operator>> (
TAO_InputCDR &strm,
- CORBA_Policy_ptr &_tao_objref
+ CORBA_InvalidPolicies::_tao_seq_UShort &_tao_sequence
)
{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- CORBA_Policy::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
+ CORBA::ULong _tao_seq_len;
+ if (strm >> _tao_seq_len)
{
- // do nothing
+ // set the length of the sequence
+ _tao_sequence.length (_tao_seq_len);
+ // If length is 0 we return true.
+ if (0 >= _tao_seq_len)
+ return 1;
+ // retrieve all the elements
+ return strm.read_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
}
- ACE_ENDTRY;
- return 0;
+ return 0; // error
}
-void CORBA::PolicyManager::_tao_any_destructor (void *x)
-{
- CORBA::PolicyManager *tmp = ACE_static_cast(CORBA::PolicyManager*,x);
- CORBA::release (tmp);
-}
+#endif /* _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_CPP_ */
-void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyManager_ptr _tao_elem)
+CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const CORBA_PolicyList &_tao_sequence
+ )
{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
+ if (strm << _tao_sequence.length ())
+ {
+ // encode all elements
+ CORBA::Boolean _tao_marshal_flag = 1;
+ for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
{
- _tao_any._tao_replace (
- CORBA::_tc_PolicyManager,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- CORBA::PolicyManager::_tao_any_destructor
- );
+ _tao_marshal_flag = (strm << _tao_sequence[i].in ());
}
+ return _tao_marshal_flag;
+ }
+ return 0; // error
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyManager_ptr &_tao_elem)
+CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ CORBA_PolicyList &_tao_sequence
+ )
{
- ACE_TRY_NEW_ENV
+ CORBA::ULong _tao_seq_len;
+ if (strm >> _tao_seq_len)
{
- _tao_elem = CORBA::PolicyManager::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyManager, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = CORBA::PolicyManager::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyManager,
- 1,
- _tao_elem,
- CORBA::PolicyManager::_tao_any_destructor
- );
+ // set the length of the sequence
+ _tao_sequence.length (_tao_seq_len);
+ // If length is 0 we return true.
+ if (0 >= _tao_seq_len)
return 1;
+ // retrieve all the elements
+ CORBA::Boolean _tao_marshal_flag = 1;
+ for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
+ {
+ _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
}
+ return _tao_marshal_flag;
}
- ACE_CATCHANY
- {
- _tao_elem = CORBA::PolicyManager::_nil ();
- return 0;
- }
- ACE_ENDTRY;
- _tao_elem = CORBA::PolicyManager::_nil ();
- return 0;
-}
-
-void CORBA::PolicyCurrent::_tao_any_destructor (void *x)
-{
- CORBA::PolicyCurrent *tmp = ACE_static_cast(CORBA::PolicyCurrent*,x);
- CORBA::release (tmp);
+ return 0; // error
}
-void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyCurrent_ptr _tao_elem)
+CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const CORBA_PolicyTypeSeq &_tao_sequence
+ )
{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- CORBA::_tc_PolicyCurrent,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- CORBA::PolicyCurrent::_tao_any_destructor
- );
- }
+ if (strm << _tao_sequence.length ())
+ {
+ // encode all elements
+ return strm.write_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
+ }
+ return 0; // error
}
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyCurrent_ptr &_tao_elem)
+CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ CORBA_PolicyTypeSeq &_tao_sequence
+ )
{
- ACE_TRY_NEW_ENV
+ CORBA::ULong _tao_seq_len;
+ if (strm >> _tao_seq_len)
{
- _tao_elem = CORBA::PolicyCurrent::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyCurrent, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- CORBA::Object_var _tao_obj_var;
- if (stream >> _tao_obj_var.out ())
- {
- _tao_elem = CORBA::PolicyCurrent::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyCurrent,
- 1,
- _tao_elem,
- CORBA::PolicyCurrent::_tao_any_destructor
- );
+ // set the length of the sequence
+ _tao_sequence.length (_tao_seq_len);
+ // If length is 0 we return true.
+ if (0 >= _tao_seq_len)
return 1;
- }
- }
- ACE_CATCHANY
- {
- _tao_elem = CORBA::PolicyCurrent::_nil ();
- return 0;
+ // retrieve all the elements
+ return strm.read_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
}
- ACE_ENDTRY;
- _tao_elem = CORBA::PolicyCurrent::_nil ();
- return 0;
+ return 0; // error
}
-
-// ****************************************************************
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-template class TAO_Unbounded_Sequence<CORBA::UShort>;
-template class TAO_Unbounded_Sequence<CORBA::ULong>;
-template class TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>;
-template class TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var>;
-
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-#pragma instantiate TAO_Unbounded_Sequence<CORBA::UShort>
-#pragma instantiate TAO_Unbounded_Sequence<CORBA::ULong>
-#pragma instantiate TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
-#pragma instantiate TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var>
-
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tao/PolicyC.h b/TAO/tao/PolicyC.h
index ef78d9a2632..b068af1cdfb 100644
--- a/TAO/tao/PolicyC.h
+++ b/TAO/tao/PolicyC.h
@@ -1,126 +1,316 @@
-/* -*- C++ -*- */
-// $Id$
+/* -*- C++ -*- $Id$ */
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
+// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
//
-// Information on TAO is available at
+// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#ifndef TAO_IDL_POLICYC_H
-#define TAO_IDL_POLICYC_H
-#include "ace/pre.h"
+#ifndef _TAO_IDL_POLICYC_H_
+#define _TAO_IDL_POLICYC_H_
+#include "ace/pre.h"
#include "tao/CurrentC.h"
+#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
+#include "ace/streams.h"
+#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/CDR.h"
-#include "tao/Environment.h"
+#include "tao/Encodable.h"
#include "tao/Exception.h"
#include "tao/Sequence.h"
+#include "tao/CDR.h"
+#include "tao/Typecode.h"
+#include "tao/Environment.h"
-#include "tao/Encodable.h"
+#if defined (TAO_EXPORT_MACRO)
+#undef TAO_EXPORT_MACRO
+#endif
+#define TAO_EXPORT_MACRO TAO_Export
+
+#if defined (TAO_EXPORT_NESTED_CLASSES)
+# if defined (TAO_EXPORT_NESTED_MACRO)
+# undef TAO_EXPORT_NESTED_MACRO
+# endif /* defined (TAO_EXPORT_NESTED_MACRO) */
+# define TAO_EXPORT_NESTED_MACRO TAO_Export
+#endif /* TAO_EXPORT_NESTED_CLASSES */
+
+#if defined(_MSC_VER)
+#if (_MSC_VER >= 1200)
+#pragma warning(push)
+#endif /* _MSC_VER >= 1200 */
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if !defined (_CORBA_POLICYERROR_CH_)
+#define _CORBA_POLICYERROR_CH_
class TAO_Export CORBA_PolicyError : public CORBA::UserException
{
public:
- CORBA::PolicyErrorCode reason;
- CORBA_PolicyError (void); // default ctor
- CORBA_PolicyError (const CORBA::PolicyError &); // copy ctor
- ~CORBA_PolicyError (void); // dtor
- CORBA_PolicyError &operator= (const CORBA_PolicyError &);
+CORBA::PolicyErrorCode reason;
- virtual void _raise (void);
+CORBA_PolicyError (void); // default ctor
+CORBA_PolicyError (const CORBA_PolicyError &); // copy ctor
+~CORBA_PolicyError (void);
+static void _tao_any_destructor (void*);
+CORBA_PolicyError &operator= (const CORBA_PolicyError &);
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
- static CORBA_PolicyError *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
+virtual void _raise (void);
- CORBA_PolicyError(
- CORBA::PolicyErrorCode _tao_reason);
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
- // = TAO extension
- static CORBA::Exception *_alloc (void);
-}; // exception CORBA::PolicyError
+static CORBA_PolicyError *_downcast (CORBA::Exception *);
+
+CORBA_PolicyError (
+ CORBA::PolicyErrorCode _tao_reason
+);
-// ****************************************************************
+// = TAO extension
+static CORBA::Exception *_alloc (void);
-class CORBA_InvalidPolicies;
-typedef CORBA_InvalidPolicies *CORBA_InvalidPolicies_ptr;
+}; // exception CORBA_PolicyError
+
+extern TAO_Export CORBA::TypeCode_ptr _tc_CORBA_PolicyError;
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_INVALIDPOLICIES_CH_)
+#define _CORBA_INVALIDPOLICIES_CH_
class TAO_Export CORBA_InvalidPolicies : public CORBA::UserException
{
public:
- class TAO_Export _tao_seq_UShort : public TAO_Unbounded_Sequence<CORBA::UShort>
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_)
+#define __TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_
+
+ class TAO_EXPORT_NESTED_MACRO _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort : public TAO_Unbounded_Base_Sequence
{
public:
- _tao_seq_UShort (void); // default ctor
- _tao_seq_UShort (CORBA::ULong max); // uses max size
- _tao_seq_UShort (
- CORBA::ULong max,
- CORBA::ULong length,
- CORBA::UShort *buffer,
- CORBA::Boolean release=0
- );
- _tao_seq_UShort (const _tao_seq_UShort &); // copy ctor
- ~_tao_seq_UShort (void); // dtor
+ // = Initialization and termination methods.
+
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (void); // Default constructor.
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (CORBA::ULong maximum);
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (CORBA::ULong maximum,
+ CORBA::ULong length,
+ CORBA::UShort *data,
+ CORBA::Boolean release = 0);
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (const _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &rhs);
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &operator= (const _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &rhs);
+ virtual ~_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (void); // Dtor.
+ // = Accessors.
+ CORBA::UShort &operator[] (CORBA::ULong i);
+ const CORBA::UShort &operator[] (CORBA::ULong i) const;
+ // = Static operations.
+ static CORBA::UShort *allocbuf (CORBA::ULong size);
+ static void freebuf (CORBA::UShort *buffer);
+ virtual void _allocate_buffer (CORBA::ULong length);
+ virtual void _deallocate_buffer (void);
+ // Implement the TAO_Base_Sequence methods (see Sequence.h)
+
+ CORBA::UShort *get_buffer (CORBA::Boolean orphan = 0);
+ const CORBA::UShort *get_buffer (void) const;
+ void replace (CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA::UShort *data,
+ CORBA::Boolean release);
};
- typedef _tao_seq_UShort *_tao_seq_UShort_ptr;
- static CORBA::TypeCode_ptr _tc__tao_seq_UShort;
- _tao_seq_UShort indices;
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_)
+#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_
+
+class _tao_seq_UShort;
+class _tao_seq_UShort_var;
+
+// *************************************************************
+// _tao_seq_UShort
+// *************************************************************
+
+class TAO_Export _tao_seq_UShort : public
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::UShort>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+{
+public:
+ _tao_seq_UShort (void); // default ctor
+ _tao_seq_UShort (CORBA::ULong max); // uses max size
+ _tao_seq_UShort (
+ CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA::UShort *buffer,
+ CORBA::Boolean release=0
+ );
+ _tao_seq_UShort (const _tao_seq_UShort &); // copy ctor
+ ~_tao_seq_UShort (void);
+ static void _tao_any_destructor (void*);
+
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef _tao_seq_UShort_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+};
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___VAR_CH_)
+#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___VAR_CH_
+
+// *************************************************************
+// class CORBA_InvalidPolicies::_tao_seq_UShort_var
+// *************************************************************
+
+class TAO_Export _tao_seq_UShort_var
+{
+public:
+ _tao_seq_UShort_var (void); // default constructor
+ _tao_seq_UShort_var (_tao_seq_UShort *);
+ _tao_seq_UShort_var (const _tao_seq_UShort_var &); // copy constructor
+ _tao_seq_UShort_var (const _tao_seq_UShort &); // fixed-size base types only
+ ~_tao_seq_UShort_var (void); // destructor
+
+ _tao_seq_UShort_var &operator= (_tao_seq_UShort *);
+ _tao_seq_UShort_var &operator= (const _tao_seq_UShort_var &);
+ _tao_seq_UShort_var &operator= (const _tao_seq_UShort &); // fixed-size base types only
+ _tao_seq_UShort *operator-> (void);
+ const _tao_seq_UShort *operator-> (void) const;
+
+ operator const _tao_seq_UShort &() const;
+ operator _tao_seq_UShort &();
+ operator _tao_seq_UShort &() const;
+
+ CORBA::UShort &operator[] (CORBA::ULong index);
+ // in, inout, out, _retn
+ const _tao_seq_UShort &in (void) const;
+ _tao_seq_UShort &inout (void);
+ _tao_seq_UShort *&out (void);
+ _tao_seq_UShort *_retn (void);
+ _tao_seq_UShort *ptr (void) const;
+
+private:
+ _tao_seq_UShort *ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___OUT_CH_)
+#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___OUT_CH_
+
+class TAO_Export _tao_seq_UShort_out
+{
+public:
+ _tao_seq_UShort_out (_tao_seq_UShort *&);
+ _tao_seq_UShort_out (_tao_seq_UShort_var &);
+ _tao_seq_UShort_out (const _tao_seq_UShort_out &);
+ _tao_seq_UShort_out &operator= (const _tao_seq_UShort_out &);
+ _tao_seq_UShort_out &operator= (_tao_seq_UShort *);
+ operator _tao_seq_UShort *&();
+ _tao_seq_UShort *&ptr (void);
+ _tao_seq_UShort *operator-> (void);
+ CORBA::UShort &operator[] (CORBA::ULong index);
+
+private:
+ _tao_seq_UShort *&ptr_;
+ // assignment from T_var not allowed
+ void operator= (const _tao_seq_UShort_var &);
+};
+
+
+#endif /* end #if !defined */
+
+#if !defined (__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef _tao_seq_UShort _indices_seq;
+#endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */
+
+ _tao_seq_UShort indices;
CORBA_InvalidPolicies (void); // default ctor
CORBA_InvalidPolicies (const CORBA_InvalidPolicies &); // copy ctor
- ~CORBA_InvalidPolicies (void); // dtor
+ ~CORBA_InvalidPolicies (void);
+ static void _tao_any_destructor (void*);
CORBA_InvalidPolicies &operator= (const CORBA_InvalidPolicies &);
+
virtual void _raise (void);
- virtual void _tao_encode (TAO_OutputCDR &cdr,
- CORBA::Environment &) const;
- virtual void _tao_decode (TAO_InputCDR &cdr,
- CORBA::Environment &);
+ virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+ virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
static CORBA_InvalidPolicies *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
- CORBA_InvalidPolicies(
- const _tao_seq_UShort & _tao_indices);
+ CORBA_InvalidPolicies (
+ const _tao_seq_UShort & _tao_indices
+ );
// = TAO extension
static CORBA::Exception *_alloc (void);
-}; // exception CORBA::InvalidPolicies
-// ****************************************************************
+}; // exception CORBA_InvalidPolicies
+
+extern TAO_Export CORBA::TypeCode_ptr _tc_CORBA_InvalidPolicies;
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICY___PTR_CH_)
+#define _CORBA_POLICY___PTR_CH_
class CORBA_Policy;
typedef CORBA_Policy *CORBA_Policy_ptr;
-class TAO_Export CORBA_Policy_var : public TAO_Base_var
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICY___VAR_CH_)
+#define _CORBA_POLICY___VAR_CH_
+
+class TAO_Export CORBA_Policy_var : public TAO_Base_var
{
public:
CORBA_Policy_var (void); // default constructor
- CORBA_Policy_var (CORBA_Policy_ptr p) : ptr_ (p) {}
+ CORBA_Policy_var (CORBA_Policy_ptr p) : ptr_ (p) {}
CORBA_Policy_var (const CORBA_Policy_var &); // copy constructor
~CORBA_Policy_var (void); // destructor
-
+
CORBA_Policy_var &operator= (CORBA_Policy_ptr);
CORBA_Policy_var &operator= (const CORBA_Policy_var &);
CORBA_Policy_ptr operator-> (void) const;
-
+
operator const CORBA_Policy_ptr &() const;
operator CORBA_Policy_ptr &();
- // in, inout, out, _retn
+ // in, inout, out, _retn
CORBA_Policy_ptr in (void) const;
CORBA_Policy_ptr &inout (void);
CORBA_Policy_ptr &out (void);
@@ -134,148 +324,232 @@ private:
CORBA_Policy_var &operator= (const TAO_Base_var &rhs);
};
-class TAO_Export CORBA_Policy_out
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICY___OUT_CH_)
+#define _CORBA_POLICY___OUT_CH_
+
+class TAO_Export CORBA_Policy_out
{
public:
CORBA_Policy_out (CORBA_Policy_ptr &);
CORBA_Policy_out (CORBA_Policy_var &);
- CORBA_Policy_out (CORBA_Policy_out &);
- CORBA_Policy_out &operator= (CORBA_Policy_out &);
+ CORBA_Policy_out (const CORBA_Policy_out &);
+ CORBA_Policy_out &operator= (const CORBA_Policy_out &);
CORBA_Policy_out &operator= (const CORBA_Policy_var &);
CORBA_Policy_out &operator= (CORBA_Policy_ptr);
operator CORBA_Policy_ptr &();
CORBA_Policy_ptr &ptr (void);
CORBA_Policy_ptr operator-> (void);
-
+
private:
CORBA_Policy_ptr &ptr_;
};
-class TAO_Export CORBA_Policy : public virtual CORBA_Object,
- public TAO_Encodable
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICY_CH_)
+#define _CORBA_POLICY_CH_
+
+class TAO_Export CORBA_Policy : public virtual CORBA_Object
{
public:
-#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
typedef CORBA_Policy_ptr _ptr_type;
typedef CORBA_Policy_var _var_type;
-#endif /* __GNUC__ */
+#endif /* ! __GNUC__ || g++ >= 2.8 */
// the static operations
static CORBA_Policy_ptr _duplicate (CORBA_Policy_ptr obj);
static CORBA_Policy_ptr _narrow (
CORBA::Object_ptr obj,
- CORBA_Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
- static CORBA_Policy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- virtual CORBA_Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV =
+ static CORBA_Policy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
-#else
+ static CORBA_Policy_ptr _nil (void)
+ {
+ return (CORBA_Policy_ptr)0;
+ }
+
+ static void _tao_any_destructor (void*);
+
virtual CORBA::PolicyType policy_type (
- CORBA_Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
- ) = 0;
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+
virtual CORBA_Policy_ptr copy (
- CORBA_Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
- ) = 0;
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+
virtual void destroy (
- CORBA_Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
- ) = 0;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
virtual CORBA::Boolean _is_a (
- const CORBA::Char *type_id,
- CORBA_Environment &ACE_TRY_ENV =
+ const CORBA::Char *type_id,
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
virtual const char* _interface_repository_id (void) const;
- // The following methods are used for embedding client-exposed
- // policies into an IOR. These methods are not part of the idl
- // compiler generated code: they were added by hand.
-
virtual CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr);
- // Encode the Policy into a CDR representation. Returns true
+ // Encode the Policy into a CDR representation. Returns true
// on success and false on failure.
virtual CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr);
- // Decode the Policy from a CDR representation. Returns true
+ // Decode the Policy from a CDR representation. Returns true
// on success and false on failure.
protected:
- CORBA_Policy (void); // default constructor
- CORBA_Policy (TAO_Stub *objref,
- TAO_ServantBase *_tao_servant = 0,
- CORBA::Boolean _tao_collocated = 0
- );
+ CORBA_Policy (void);
+ CORBA_Policy (TAO_Stub *objref,
+ TAO_ServantBase *_tao_servant = 0,
+ CORBA::Boolean _tao_collocated = 0
+ );
virtual ~CORBA_Policy (void);
private:
CORBA_Policy (const CORBA_Policy &);
void operator= (const CORBA_Policy &);
};
+
+#endif /* end #if !defined */
+
+extern TAO_Export CORBA::TypeCode_ptr _tc_CORBA_Policy;
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CH_)
+#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CH_
+
+ class _TAO_Unbounded_Object_Sequence_CORBA_PolicyList : public TAO_Unbounded_Base_Sequence
+ {
+ public:
+ // = Initialization and termination methods.
+
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList (void);
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList (CORBA::ULong maximum);
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList (CORBA::ULong maximum,
+ CORBA::ULong length,
+ CORBA_Policy* *value,
+ CORBA::Boolean release = 0);
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList(const _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &rhs);
+ virtual ~_TAO_Unbounded_Object_Sequence_CORBA_PolicyList (void);
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &operator= (const _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &rhs);
+ TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var> operator[] (CORBA::ULong index) const;
+ static CORBA_Policy **allocbuf (CORBA::ULong nelems);
+ static void freebuf (CORBA_Policy **buffer);
+ // The Base_Sequence functions, please see tao/Sequence.h
+ virtual void _allocate_buffer (CORBA::ULong length);
+ virtual void _deallocate_buffer (void);
+ CORBA_Policy* *get_buffer (CORBA::Boolean orphan = 0);
+ const CORBA_Policy* *get_buffer (void) const;
+ virtual void _shrink_buffer (CORBA::ULong nl, CORBA::ULong ol);
+ virtual void _downcast (
+ void* target,
+ CORBA_Object *src,
+ CORBA_Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ virtual CORBA_Object* _upcast (void *src) const;
+
+ };
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_POLICYLIST_CH_)
+#define _CORBA_POLICYLIST_CH_
+
+class CORBA_PolicyList;
+class CORBA_PolicyList_var;
+
// *************************************************************
// CORBA_PolicyList
// *************************************************************
-class TAO_Export CORBA_PolicyList : public TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
+class TAO_Export CORBA_PolicyList : public
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
{
public:
-#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
- typedef CORBA_PolicyList_var _var_type;
-#endif /* __GNUC__ */
-
CORBA_PolicyList (void); // default ctor
CORBA_PolicyList (CORBA::ULong max); // uses max size
CORBA_PolicyList (
- CORBA::ULong max,
- CORBA::ULong length,
- CORBA_Policy_ptr *buffer,
- CORBA::Boolean release=0
- );
+ CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA_Policy_ptr *buffer,
+ CORBA::Boolean release=0
+ );
CORBA_PolicyList (const CORBA_PolicyList &); // copy ctor
- ~CORBA_PolicyList (void); // dtor
-
+ ~CORBA_PolicyList (void);
static void _tao_any_destructor (void*);
+
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef CORBA_PolicyList_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
};
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYLIST___VAR_CH_)
+#define _CORBA_POLICYLIST___VAR_CH_
+
// *************************************************************
-// class CORBA::PolicyList_var
+// class CORBA_PolicyList_var
// *************************************************************
-class TAO_Export CORBA_PolicyList_var
+class TAO_Export CORBA_PolicyList_var
{
public:
CORBA_PolicyList_var (void); // default constructor
CORBA_PolicyList_var (CORBA_PolicyList *);
CORBA_PolicyList_var (const CORBA_PolicyList_var &); // copy constructor
~CORBA_PolicyList_var (void); // destructor
-
+
CORBA_PolicyList_var &operator= (CORBA_PolicyList *);
CORBA_PolicyList_var &operator= (const CORBA_PolicyList_var &);
CORBA_PolicyList *operator-> (void);
const CORBA_PolicyList *operator-> (void) const;
-
+
operator const CORBA_PolicyList &() const;
operator CORBA_PolicyList &();
operator CORBA_PolicyList &() const;
- TAO_Object_Manager <CORBA_Policy,CORBA_Policy_var > operator[] (CORBA::ULong index);
- // in, inout, out, _retn
+ operator CORBA_PolicyList *&(); // variable-size base types only
+
+ TAO_Object_Manager<CORBA_Policy, CORBA_Policy_var> operator[] (CORBA::ULong index);
+ // in, inout, out, _retn
const CORBA_PolicyList &in (void) const;
CORBA_PolicyList &inout (void);
CORBA_PolicyList *&out (void);
@@ -286,49 +560,124 @@ private:
CORBA_PolicyList *ptr_;
};
-class TAO_Export CORBA_PolicyList_out
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYLIST___OUT_CH_)
+#define _CORBA_POLICYLIST___OUT_CH_
+
+class TAO_Export CORBA_PolicyList_out
{
public:
CORBA_PolicyList_out (CORBA_PolicyList *&);
CORBA_PolicyList_out (CORBA_PolicyList_var &);
CORBA_PolicyList_out (const CORBA_PolicyList_out &);
- CORBA_PolicyList_out &operator= (CORBA_PolicyList_out &);
+ CORBA_PolicyList_out &operator= (const CORBA_PolicyList_out &);
CORBA_PolicyList_out &operator= (CORBA_PolicyList *);
operator CORBA_PolicyList *&();
CORBA_PolicyList *&ptr (void);
CORBA_PolicyList *operator-> (void);
- TAO_Object_Manager <CORBA_Policy,CORBA_Policy_var> operator[] (CORBA::ULong index);
-
+ TAO_Object_Manager<CORBA_Policy, CORBA_Policy_var> operator[] (CORBA::ULong index);
+
private:
CORBA_PolicyList *&ptr_;
// assignment from T_var not allowed
void operator= (const CORBA_PolicyList_var &);
};
+
+#endif /* end #if !defined */
+
+extern TAO_Export CORBA::TypeCode_ptr _tc_CORBA_PolicyList;
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CH_)
+#define __TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CH_
+
+ class TAO_EXPORT_NESTED_MACRO _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq : public TAO_Unbounded_Base_Sequence
+ {
+ public:
+ // = Initialization and termination methods.
+
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (void); // Default constructor.
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (CORBA::ULong maximum);
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (CORBA::ULong maximum,
+ CORBA::ULong length,
+ CORBA::ULong *data,
+ CORBA::Boolean release = 0);
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (const _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &rhs);
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &operator= (const _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &rhs);
+ virtual ~_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (void); // Dtor.
+ // = Accessors.
+ CORBA::ULong &operator[] (CORBA::ULong i);
+ const CORBA::ULong &operator[] (CORBA::ULong i) const;
+ // = Static operations.
+ static CORBA::ULong *allocbuf (CORBA::ULong size);
+ static void freebuf (CORBA::ULong *buffer);
+ virtual void _allocate_buffer (CORBA::ULong length);
+ virtual void _deallocate_buffer (void);
+ // Implement the TAO_Base_Sequence methods (see Sequence.h)
+
+ CORBA::ULong *get_buffer (CORBA::Boolean orphan = 0);
+ const CORBA::ULong *get_buffer (void) const;
+ void replace (CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA::ULong *data,
+ CORBA::Boolean release);
+ };
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_POLICYTYPESEQ_CH_)
+#define _CORBA_POLICYTYPESEQ_CH_
+
+class CORBA_PolicyTypeSeq;
+class CORBA_PolicyTypeSeq_var;
+
// *************************************************************
-// PolicyTypeSeq
+// CORBA_PolicyTypeSeq
// *************************************************************
-class TAO_Export CORBA_PolicyTypeSeq : public TAO_Unbounded_Sequence<CORBA::ULong>
+class TAO_Export CORBA_PolicyTypeSeq : public
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::ULong>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
{
public:
CORBA_PolicyTypeSeq (void); // default ctor
CORBA_PolicyTypeSeq (CORBA::ULong max); // uses max size
CORBA_PolicyTypeSeq (
- CORBA::ULong max,
- CORBA::ULong length,
- CORBA::ULong *buffer,
- CORBA::Boolean release=0
- );
+ CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA::ULong *buffer,
+ CORBA::Boolean release=0
+ );
CORBA_PolicyTypeSeq (const CORBA_PolicyTypeSeq &); // copy ctor
- ~CORBA_PolicyTypeSeq (void); // dtor
-
+ ~CORBA_PolicyTypeSeq (void);
static void _tao_any_destructor (void*);
+
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef CORBA_PolicyTypeSeq_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
};
-typedef CORBA_PolicyTypeSeq *CORBA_PolicyTypeSeq_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYTYPESEQ___VAR_CH_)
+#define _CORBA_POLICYTYPESEQ___VAR_CH_
// *************************************************************
-// class CORBA::PolicyTypeSeq_var
+// class CORBA_PolicyTypeSeq_var
// *************************************************************
class TAO_Export CORBA_PolicyTypeSeq_var
@@ -336,19 +685,22 @@ class TAO_Export CORBA_PolicyTypeSeq_var
public:
CORBA_PolicyTypeSeq_var (void); // default constructor
CORBA_PolicyTypeSeq_var (CORBA_PolicyTypeSeq *);
- CORBA_PolicyTypeSeq_var (const CORBA_PolicyTypeSeq_var &);
+ CORBA_PolicyTypeSeq_var (const CORBA_PolicyTypeSeq_var &); // copy constructor
+ CORBA_PolicyTypeSeq_var (const CORBA_PolicyTypeSeq &); // fixed-size base types only
~CORBA_PolicyTypeSeq_var (void); // destructor
-
+
CORBA_PolicyTypeSeq_var &operator= (CORBA_PolicyTypeSeq *);
CORBA_PolicyTypeSeq_var &operator= (const CORBA_PolicyTypeSeq_var &);
+ CORBA_PolicyTypeSeq_var &operator= (const CORBA_PolicyTypeSeq &); // fixed-size base types only
CORBA_PolicyTypeSeq *operator-> (void);
const CORBA_PolicyTypeSeq *operator-> (void) const;
-
+
operator const CORBA_PolicyTypeSeq &() const;
operator CORBA_PolicyTypeSeq &();
operator CORBA_PolicyTypeSeq &() const;
- CORBA::PolicyType &operator[] (CORBA::ULong slot);
- // in, inout, out, _retn
+
+ CORBA::PolicyType &operator[] (CORBA::ULong index);
+ // in, inout, out, _retn
const CORBA_PolicyTypeSeq &in (void) const;
CORBA_PolicyTypeSeq &inout (void);
CORBA_PolicyTypeSeq *&out (void);
@@ -359,6 +711,13 @@ private:
CORBA_PolicyTypeSeq *ptr_;
};
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYTYPESEQ___OUT_CH_)
+#define _CORBA_POLICYTYPESEQ___OUT_CH_
+
class TAO_Export CORBA_PolicyTypeSeq_out
{
public:
@@ -370,29 +729,47 @@ public:
operator CORBA_PolicyTypeSeq *&();
CORBA_PolicyTypeSeq *&ptr (void);
CORBA_PolicyTypeSeq *operator-> (void);
- CORBA::PolicyType &operator[] (CORBA::ULong slot);
-
+ CORBA::PolicyType &operator[] (CORBA::ULong index);
+
private:
CORBA_PolicyTypeSeq *&ptr_;
// assignment from T_var not allowed
void operator= (const CORBA_PolicyTypeSeq_var &);
};
+
+#endif /* end #if !defined */
+
+extern TAO_Export CORBA::TypeCode_ptr _tc_CORBA_PolicyTypeSeq;
+
+
+#if !defined (_CORBA_POLICYMANAGER___PTR_CH_)
+#define _CORBA_POLICYMANAGER___PTR_CH_
+
+class CORBA_PolicyManager;
+typedef CORBA_PolicyManager *CORBA_PolicyManager_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYMANAGER___VAR_CH_)
+#define _CORBA_POLICYMANAGER___VAR_CH_
+
class TAO_Export CORBA_PolicyManager_var : public TAO_Base_var
{
public:
CORBA_PolicyManager_var (void); // default constructor
- CORBA_PolicyManager_var (CORBA_PolicyManager_ptr);
- CORBA_PolicyManager_var (const CORBA_PolicyManager_var &);
+ CORBA_PolicyManager_var (CORBA_PolicyManager_ptr p) : ptr_ (p) {}
+ CORBA_PolicyManager_var (const CORBA_PolicyManager_var &); // copy constructor
~CORBA_PolicyManager_var (void); // destructor
-
+
CORBA_PolicyManager_var &operator= (CORBA_PolicyManager_ptr);
CORBA_PolicyManager_var &operator= (const CORBA_PolicyManager_var &);
CORBA_PolicyManager_ptr operator-> (void) const;
-
+
operator const CORBA_PolicyManager_ptr &() const;
operator CORBA_PolicyManager_ptr &();
- // in, inout, out, _retn
+ // in, inout, out, _retn
CORBA_PolicyManager_ptr in (void) const;
CORBA_PolicyManager_ptr &inout (void);
CORBA_PolicyManager_ptr &out (void);
@@ -406,6 +783,13 @@ private:
CORBA_PolicyManager_var &operator= (const TAO_Base_var &rhs);
};
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYMANAGER___OUT_CH_)
+#define _CORBA_POLICYMANAGER___OUT_CH_
+
class TAO_Export CORBA_PolicyManager_out
{
public:
@@ -418,75 +802,106 @@ public:
operator CORBA_PolicyManager_ptr &();
CORBA_PolicyManager_ptr &ptr (void);
CORBA_PolicyManager_ptr operator-> (void);
-
+
private:
CORBA_PolicyManager_ptr &ptr_;
};
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYMANAGER_CH_)
+#define _CORBA_POLICYMANAGER_CH_
+
class TAO_Export CORBA_PolicyManager : public virtual CORBA_Object
{
public:
-#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
typedef CORBA_PolicyManager_ptr _ptr_type;
typedef CORBA_PolicyManager_var _var_type;
-#endif /* __GNUC__ */
+#endif /* ! __GNUC__ || g++ >= 2.8 */
// the static operations
static CORBA_PolicyManager_ptr _duplicate (CORBA_PolicyManager_ptr obj);
static CORBA_PolicyManager_ptr _narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- static CORBA_PolicyManager_ptr _nil (void);
- static void _tao_any_destructor (void*);
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static CORBA_PolicyManager_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static CORBA_PolicyManager_ptr _nil (void)
+ {
+ return (CORBA_PolicyManager_ptr)0;
+ }
virtual CORBA_PolicyList * get_policy_overrides (
- const CORBA_PolicyTypeSeq & ts,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ const CORBA_PolicyTypeSeq & ts,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
virtual void set_policy_overrides (
- const CORBA_PolicyList & policies,
- CORBA::SetOverrideType set_add,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- virtual CORBA::Boolean _is_a (
- const CORBA::Char *type_id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ const CORBA_PolicyList & policies,
+ CORBA::SetOverrideType set_add,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ CORBA_InvalidPolicies
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
virtual const char* _interface_repository_id (void) const;
+
protected:
- CORBA_PolicyManager (void); // default constructor
- CORBA_PolicyManager (TAO_Stub *objref,
- TAO_ServantBase *_tao_servant = 0,
- CORBA::Boolean _tao_collocated = 0
- );
+ CORBA_PolicyManager (void);
virtual ~CORBA_PolicyManager (void);
private:
CORBA_PolicyManager (const CORBA_PolicyManager &);
void operator= (const CORBA_PolicyManager &);
};
-// ****************************************************************
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYCURRENT___PTR_CH_)
+#define _CORBA_POLICYCURRENT___PTR_CH_
+
+class CORBA_PolicyCurrent;
+typedef CORBA_PolicyCurrent *CORBA_PolicyCurrent_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYCURRENT___VAR_CH_)
+#define _CORBA_POLICYCURRENT___VAR_CH_
class TAO_Export CORBA_PolicyCurrent_var : public TAO_Base_var
{
public:
CORBA_PolicyCurrent_var (void); // default constructor
- CORBA_PolicyCurrent_var (CORBA_PolicyCurrent_ptr);
- CORBA_PolicyCurrent_var (const CORBA_PolicyCurrent_var &);
+ CORBA_PolicyCurrent_var (CORBA_PolicyCurrent_ptr p) : ptr_ (p) {}
+ CORBA_PolicyCurrent_var (const CORBA_PolicyCurrent_var &); // copy constructor
~CORBA_PolicyCurrent_var (void); // destructor
-
+
CORBA_PolicyCurrent_var &operator= (CORBA_PolicyCurrent_ptr);
CORBA_PolicyCurrent_var &operator= (const CORBA_PolicyCurrent_var &);
CORBA_PolicyCurrent_ptr operator-> (void) const;
-
+
operator const CORBA_PolicyCurrent_ptr &() const;
operator CORBA_PolicyCurrent_ptr &();
- // in, inout, out, _retn
+ // in, inout, out, _retn
CORBA_PolicyCurrent_ptr in (void) const;
CORBA_PolicyCurrent_ptr &inout (void);
CORBA_PolicyCurrent_ptr &out (void);
@@ -500,6 +915,13 @@ private:
CORBA_PolicyCurrent_var &operator= (const TAO_Base_var &rhs);
};
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYCURRENT___OUT_CH_)
+#define _CORBA_POLICYCURRENT___OUT_CH_
+
class TAO_Export CORBA_PolicyCurrent_out
{
public:
@@ -512,127 +934,161 @@ public:
operator CORBA_PolicyCurrent_ptr &();
CORBA_PolicyCurrent_ptr &ptr (void);
CORBA_PolicyCurrent_ptr operator-> (void);
-
+
private:
CORBA_PolicyCurrent_ptr &ptr_;
};
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYCURRENT_CH_)
+#define _CORBA_POLICYCURRENT_CH_
+
class TAO_Export CORBA_PolicyCurrent: public virtual CORBA_PolicyManager, public virtual CORBA_Current
{
public:
-#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
typedef CORBA_PolicyCurrent_ptr _ptr_type;
typedef CORBA_PolicyCurrent_var _var_type;
-#endif /* __GNUC__ */
+#endif /* ! __GNUC__ || g++ >= 2.8 */
// the static operations
static CORBA_PolicyCurrent_ptr _duplicate (CORBA_PolicyCurrent_ptr obj);
static CORBA_PolicyCurrent_ptr _narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- static CORBA_PolicyCurrent_ptr _nil (void);
- static void _tao_any_destructor (void*);
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static CORBA_PolicyCurrent_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static CORBA_PolicyCurrent_ptr _nil (void)
+ {
+ return (CORBA_PolicyCurrent_ptr)0;
+ }
- virtual CORBA::Boolean _is_a (
- const CORBA::Char *type_id,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
virtual const char* _interface_repository_id (void) const;
+
protected:
- CORBA_PolicyCurrent (void); // default constructor
- CORBA_PolicyCurrent (TAO_Stub *objref,
- TAO_ServantBase *_tao_servant = 0,
- CORBA::Boolean _tao_collocated = 0
- );
+ CORBA_PolicyCurrent (void);
virtual ~CORBA_PolicyCurrent (void);
private:
CORBA_PolicyCurrent (const CORBA_PolicyCurrent &);
void operator= (const CORBA_PolicyCurrent &);
};
-// ****************************************************************
-
-TAO_Export void operator<<= (CORBA::Any &,
- const CORBA::PolicyError &);
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::PolicyError*);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::PolicyError *&);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- const CORBA::PolicyError *&);
-TAO_Export void operator<<= (CORBA::Any &,
- const CORBA::InvalidPolicies &);
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::InvalidPolicies*);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::InvalidPolicies *&);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- const CORBA::InvalidPolicies *&);
-
-// Any operators for interface CORBA::Policy
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::Policy_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::Policy *&);
-TAO_Export void operator<<= (CORBA::Any &,
- const CORBA::PolicyList &);
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::PolicyList*);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::PolicyList *&);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- const CORBA::PolicyList *&);
-TAO_Export void operator<<= (CORBA::Any &,
- const CORBA::PolicyTypeSeq &);
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::PolicyTypeSeq*);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::PolicyTypeSeq *&);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- const CORBA::PolicyTypeSeq *&);
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::SetOverrideType);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::SetOverrideType &);
-
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::PolicyManager_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::PolicyManager *&);
-TAO_Export void operator<<= (CORBA::Any &,
- CORBA::PolicyCurrent_ptr);
-TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
- CORBA::PolicyCurrent *&);
-
-// ****************************************************************
-#if defined (__ACE_INLINE__)
-#include "tao/PolicyC.i"
-#else
-
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyError &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyError &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::InvalidPolicies &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::InvalidPolicies &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::InvalidPolicies::_tao_seq_UShort &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::InvalidPolicies::_tao_seq_UShort &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::Policy_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Policy_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyList &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyList &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyTypeSeq &);
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyTypeSeq &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::SetOverrideType &);
+#endif /* end #if !defined */
+
+TAO_Export void operator<<= (CORBA::Any &, CORBA::SetOverrideType);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::SetOverrideType &);
+TAO_Export void operator<<= (CORBA::Any &, const CORBA_PolicyError &); // copying version
+TAO_Export void operator<<= (CORBA::Any &, CORBA_PolicyError*); // noncopying version
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA_PolicyError *&); // deprecated
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA_PolicyError *&);
+TAO_Export void operator<<= (CORBA::Any &, const CORBA_InvalidPolicies &); // copying version
+TAO_Export void operator<<= (CORBA::Any &, CORBA_InvalidPolicies*); // noncopying version
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA_InvalidPolicies *&); // deprecated
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA_InvalidPolicies *&);
+extern TAO_Export CORBA_Policy_ptr (*_TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer) (
+ CORBA::Object_ptr obj
+ );
+// Any operators for interface CORBA_Policy
+TAO_Export void operator<<= (CORBA::Any &, CORBA_Policy_ptr);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA_Policy *&);
+TAO_Export void operator<<= (CORBA::Any &, const CORBA_PolicyList &); // copying version
+TAO_Export void operator<<= (CORBA::Any &, CORBA_PolicyList*); // noncopying version
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA_PolicyList *&); // deprecated
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA_PolicyList *&);
+TAO_Export void operator<<= (CORBA::Any &, const CORBA_PolicyTypeSeq &); // copying version
+TAO_Export void operator<<= (CORBA::Any &, CORBA_PolicyTypeSeq*); // noncopying version
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA_PolicyTypeSeq *&); // deprecated
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA_PolicyTypeSeq *&);
+
+#ifndef __ACE_INLINE__
+
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::SetOverrideType &); //
TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::SetOverrideType &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyManager_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyManager_ptr &);
-TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyCurrent_ptr );
-TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyCurrent_ptr &);
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA_PolicyError &);
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA_PolicyError &);
+
+# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
+
+TAO_Export ostream& operator<< (ostream &, const CORBA_PolicyError &);
+
+# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA_InvalidPolicies &);
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA_InvalidPolicies &);
+
+#if !defined _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_H_
+#define _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_H_
+
+TAO_Export CORBA::Boolean operator<< (
+ TAO_OutputCDR &,
+ const CORBA_InvalidPolicies::_tao_seq_UShort &
+ );
+TAO_Export CORBA::Boolean operator>> (
+ TAO_InputCDR &,
+ CORBA_InvalidPolicies::_tao_seq_UShort &
+ );
+
+#endif /* _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_H_ */
+
+# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
+
+TAO_Export ostream& operator<< (ostream &, const CORBA_InvalidPolicies &);
+
+# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA_Policy_ptr );
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA_Policy_ptr &);
+
+#if !defined _TAO_CDR_OP_CORBA_PolicyList_H_
+#define _TAO_CDR_OP_CORBA_PolicyList_H_
+
+TAO_Export CORBA::Boolean operator<< (
+ TAO_OutputCDR &,
+ const CORBA_PolicyList &
+ );
+TAO_Export CORBA::Boolean operator>> (
+ TAO_InputCDR &,
+ CORBA_PolicyList &
+ );
+
+#endif /* _TAO_CDR_OP_CORBA_PolicyList_H_ */
+
+
+#if !defined _TAO_CDR_OP_CORBA_PolicyTypeSeq_H_
+#define _TAO_CDR_OP_CORBA_PolicyTypeSeq_H_
+
+TAO_Export CORBA::Boolean operator<< (
+ TAO_OutputCDR &,
+ const CORBA_PolicyTypeSeq &
+ );
+TAO_Export CORBA::Boolean operator>> (
+ TAO_InputCDR &,
+ CORBA_PolicyTypeSeq &
+ );
+
+#endif /* _TAO_CDR_OP_CORBA_PolicyTypeSeq_H_ */
+
+
+#endif /* __ACE_INLINE__ */
+
+
+#if defined (__ACE_INLINE__)
+#include "tao/PolicyC.i"
#endif /* defined INLINE */
+#if defined(_MSC_VER) && (_MSC_VER >= 1200)
+#pragma warning(pop)
+#endif /* _MSC_VER */
+
#include "ace/post.h"
-#endif /* TAO_IDL_POLICYC_H */
+#endif /* ifndef */
diff --git a/TAO/tao/PolicyC.i b/TAO/tao/PolicyC.i
index 40e2e079bbf..b40cb72efe7 100644
--- a/TAO/tao/PolicyC.i
+++ b/TAO/tao/PolicyC.i
@@ -1,91 +1,434 @@
-// $Id$
-
-/* -*- C++ -*- */
+/* -*- C++ -*- $Id$ */
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
//
-// Information on TAO is available at
+// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
// *************************************************************
-// Inline operations for class CORBA::InvalidPolicies::_tao_seq_UShort
+// Inline operations for exception CORBA_PolicyError
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception CORBA_InvalidPolicies
// *************************************************************
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CI_)
+#define __TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CI_
+
+ // = Static operations.
+ ACE_INLINE CORBA::UShort *
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (CORBA::ULong size)
+ // Allocate storage for the sequence.
+ {
+ CORBA::UShort *retval = 0;
+ ACE_NEW_RETURN (retval, CORBA::UShort[size], 0);
+ return retval;
+ }
+
+ ACE_INLINE void CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::freebuf (CORBA::UShort *buffer)
+ // Free the sequence.
+ {
+ delete [] buffer;
+ }
+
+ ACE_INLINE
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (void) // Default constructor.
+ {
+ }
+
+ ACE_INLINE
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (CORBA::ULong maximum) // Constructor using a maximum length value.
+ : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (maximum))
+ {
+ }
+
+ ACE_INLINE
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (CORBA::ULong maximum,
+ CORBA::ULong length,
+ CORBA::UShort *data,
+ CORBA::Boolean release)
+ : TAO_Unbounded_Base_Sequence (maximum, length, data, release)
+ {
+ }
+
+ ACE_INLINE
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (const _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &rhs)
+ // Copy constructor.
+ : TAO_Unbounded_Base_Sequence (rhs)
+ {
+ if (rhs.buffer_ != 0)
+ {
+ CORBA::UShort *tmp1 = _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (this->maximum_);
+ CORBA::UShort * const tmp2 = ACE_reinterpret_cast (CORBA::UShort * ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ tmp1[i] = tmp2[i];
+
+ this->buffer_ = tmp1;
+ }
+ else
+ {
+ this->buffer_ = 0;
+ }
+ }
+
+ ACE_INLINE CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::operator= (const _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &rhs)
+ // Assignment operator.
+ {
+ if (this == &rhs)
+ return *this;
+
+ if (this->release_)
+ {
+ if (this->maximum_ < rhs.maximum_)
+ {
+ // free the old buffer
+ CORBA::UShort *tmp = ACE_reinterpret_cast (CORBA::UShort *, this->buffer_);
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::freebuf (tmp);
+ this->buffer_ = _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (rhs.maximum_);
+ }
+ }
+ else
+ this->buffer_ = _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (rhs.maximum_);
+
+ TAO_Unbounded_Base_Sequence::operator= (rhs);
+
+ CORBA::UShort *tmp1 = ACE_reinterpret_cast (CORBA::UShort *, this->buffer_);
+ CORBA::UShort * const tmp2 = ACE_reinterpret_cast (CORBA::UShort * ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ tmp1[i] = tmp2[i];
+
+ return *this;
+ }
+
+ // = Accessors.
+ ACE_INLINE CORBA::UShort &
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::operator[] (CORBA::ULong i)
+ // operator []
+ {
+ ACE_ASSERT (i < this->maximum_);
+ CORBA::UShort* tmp = ACE_reinterpret_cast(CORBA::UShort*,this->buffer_);
+ return tmp[i];
+ }
+
+ ACE_INLINE const CORBA::UShort &
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::operator[] (CORBA::ULong i) const
+ // operator []
+ {
+ ACE_ASSERT (i < this->maximum_);
+ CORBA::UShort * const tmp = ACE_reinterpret_cast (CORBA::UShort* ACE_CAST_CONST, this->buffer_);
+ return tmp[i];
+ }
+
+ // Implement the TAO_Base_Sequence methods (see Sequence.h)
+
+ ACE_INLINE CORBA::UShort *
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::get_buffer (CORBA::Boolean orphan)
+ {
+ CORBA::UShort *result = 0;
+ if (orphan == 0)
+ {
+ // We retain ownership.
+ if (this->buffer_ == 0)
+ {
+ result = _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (this->length_);
+ this->buffer_ = result;
+ }
+ else
+ {
+ result = ACE_reinterpret_cast (CORBA::UShort*, this->buffer_);
+ }
+ }
+ else // if (orphan == 1)
+ {
+ if (this->release_ != 0)
+ {
+ // We set the state back to default and relinquish
+ // ownership.
+ result = ACE_reinterpret_cast(CORBA::UShort*,this->buffer_);
+ this->maximum_ = 0;
+ this->length_ = 0;
+ this->buffer_ = 0;
+ this->release_ = 0;
+ }
+ }
+ return result;
+ }
+
+ ACE_INLINE const CORBA::UShort *
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::get_buffer (void) const
+ {
+ return ACE_reinterpret_cast(const CORBA::UShort * ACE_CAST_CONST, this->buffer_);
+ }
+
+ ACE_INLINE void
+ CORBA_InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::replace (CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA::UShort *data,
+ CORBA::Boolean release)
+ {
+ this->maximum_ = max;
+ this->length_ = length;
+ if (this->buffer_ && this->release_ == 1)
+ {
+ CORBA::UShort *tmp = ACE_reinterpret_cast(CORBA::UShort*,this->buffer_);
+ _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::freebuf (tmp);
+ }
+ this->buffer_ = data;
+ this->release_ = release;
+ }
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CI_)
+#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CI_
+
+// *************************************************************
+// Inline operations for class CORBA_InvalidPolicies::_tao_seq_UShort_var
+// *************************************************************
+
+ACE_INLINE
+CORBA_InvalidPolicies::_tao_seq_UShort_var::_tao_seq_UShort_var (void) // default constructor
+ : ptr_ (0)
+{}
+
ACE_INLINE
-CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (void)
+CORBA_InvalidPolicies::_tao_seq_UShort_var::_tao_seq_UShort_var (_tao_seq_UShort *p)
+ : ptr_ (p)
+{}
+
+ACE_INLINE
+CORBA_InvalidPolicies::_tao_seq_UShort_var::_tao_seq_UShort_var (const ::CORBA_InvalidPolicies::_tao_seq_UShort_var &p) // copy constructor
{
+ if (p.ptr_)
+ ACE_NEW (this->ptr_, ::CORBA_InvalidPolicies::_tao_seq_UShort (*p.ptr_));
+ else
+ this->ptr_ = 0;
}
+// fixed-size base types only
ACE_INLINE
-CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (CORBA::ULong max)
- : TAO_Unbounded_Sequence<CORBA::UShort> (max)
+CORBA_InvalidPolicies::_tao_seq_UShort_var::_tao_seq_UShort_var (const ::CORBA_InvalidPolicies::_tao_seq_UShort &p)
{
+ ACE_NEW (this->ptr_, ::CORBA_InvalidPolicies::_tao_seq_UShort (p));
}
ACE_INLINE
-CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (
- CORBA::ULong max,
- CORBA::ULong length,
- CORBA::UShort *buffer,
- CORBA::Boolean release)
- : TAO_Unbounded_Sequence<CORBA::UShort> (max,
- length,
- buffer,
- release)
+CORBA_InvalidPolicies::_tao_seq_UShort_var::~_tao_seq_UShort_var (void) // destructor
{
+ delete this->ptr_;
}
-ACE_INLINE
-CORBA_InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (
- const CORBA_InvalidPolicies::_tao_seq_UShort &rhs)
- : TAO_Unbounded_Sequence<CORBA::UShort> (rhs)
+ACE_INLINE CORBA_InvalidPolicies::_tao_seq_UShort_var &
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator= (_tao_seq_UShort *p)
+{
+ delete this->ptr_;
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE CORBA_InvalidPolicies::_tao_seq_UShort_var &
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator= (const ::CORBA_InvalidPolicies::_tao_seq_UShort_var &p) // deep copy
+{
+ if (this != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_, ::CORBA_InvalidPolicies::_tao_seq_UShort (*p.ptr_), *this);
+ }
+ return *this;
+}
+
+// fixed-size types only
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort_var &
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator= (const ::CORBA_InvalidPolicies::_tao_seq_UShort &p)
+{
+ if (this->ptr_ != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_, ::CORBA_InvalidPolicies::_tao_seq_UShort (p), *this);
+ }
+ return *this;
+}
+
+ACE_INLINE const ::CORBA_InvalidPolicies::_tao_seq_UShort *
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort *
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator-> (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator const ::CORBA_InvalidPolicies::_tao_seq_UShort &() const // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator ::CORBA_InvalidPolicies::_tao_seq_UShort &() // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator ::CORBA_InvalidPolicies::_tao_seq_UShort &() const // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE CORBA::UShort &
+CORBA_InvalidPolicies::_tao_seq_UShort_var::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+ACE_INLINE const ::CORBA_InvalidPolicies::_tao_seq_UShort &
+CORBA_InvalidPolicies::_tao_seq_UShort_var::in (void) const
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort &
+CORBA_InvalidPolicies::_tao_seq_UShort_var::inout (void)
+{
+ return *this->ptr_;
+}
+
+// mapping for variable size
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort *&
+CORBA_InvalidPolicies::_tao_seq_UShort_var::out (void)
+{
+ delete this->ptr_;
+ this->ptr_ = 0;
+ return this->ptr_;
+}
+
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort *
+CORBA_InvalidPolicies::_tao_seq_UShort_var::_retn (void)
{
+ ::CORBA_InvalidPolicies::_tao_seq_UShort *tmp = this->ptr_;
+ this->ptr_ = 0;
+ return tmp;
+}
+
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort *
+CORBA_InvalidPolicies::_tao_seq_UShort_var::ptr (void) const
+{
+ return this->ptr_;
}
+// *************************************************************
+// Inline operations for class CORBA_InvalidPolicies::_tao_seq_UShort_out
+// *************************************************************
+
ACE_INLINE
-CORBA_InvalidPolicies::_tao_seq_UShort::~_tao_seq_UShort (void)
+CORBA_InvalidPolicies::_tao_seq_UShort_out::_tao_seq_UShort_out (_tao_seq_UShort *&p)
+ : ptr_ (p)
{
+ this->ptr_ = 0;
}
-// ****************************************************************
+ACE_INLINE
+CORBA_InvalidPolicies::_tao_seq_UShort_out::_tao_seq_UShort_out (_tao_seq_UShort_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ delete this->ptr_;
+ this->ptr_ = 0;
+}
ACE_INLINE
-CORBA_Policy::CORBA_Policy (void) // default constructor
+CORBA_InvalidPolicies::_tao_seq_UShort_out::_tao_seq_UShort_out (const ::CORBA_InvalidPolicies::_tao_seq_UShort_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (_tao_seq_UShort_out&, p).ptr_)
{}
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort_out &
+CORBA_InvalidPolicies::_tao_seq_UShort_out::operator= (const ::CORBA_InvalidPolicies::_tao_seq_UShort_out &p)
+{
+ this->ptr_ = ACE_const_cast (_tao_seq_UShort_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort_out &
+CORBA_InvalidPolicies::_tao_seq_UShort_out::operator= (_tao_seq_UShort *p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+CORBA_InvalidPolicies::_tao_seq_UShort_out::operator ::CORBA_InvalidPolicies::_tao_seq_UShort *&() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort *&
+CORBA_InvalidPolicies::_tao_seq_UShort_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::CORBA_InvalidPolicies::_tao_seq_UShort *
+CORBA_InvalidPolicies::_tao_seq_UShort_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE CORBA::UShort &
+CORBA_InvalidPolicies::_tao_seq_UShort_out::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+
+#endif /* end #if !defined */
+
ACE_INLINE
-CORBA_Policy::CORBA_Policy (TAO_Stub *objref,
- TAO_ServantBase *_tao_servant,
- CORBA::Boolean _tao_collocated)
+CORBA_Policy::CORBA_Policy (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor
: CORBA_Object (objref, _tao_servant, _tao_collocated)
{}
-ACE_INLINE
-CORBA_Policy::~CORBA_Policy (void) // destructor
-{}
+
+#if !defined (_CORBA_POLICY___VAR_CI_)
+#define _CORBA_POLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class CORBA_Policy_var
+// *************************************************************
ACE_INLINE
CORBA_Policy_var::CORBA_Policy_var (void) // default constructor
: ptr_ (CORBA_Policy::_nil ())
{}
-ACE_INLINE CORBA_Policy_ptr
+ACE_INLINE ::CORBA_Policy_ptr
CORBA_Policy_var::ptr (void) const
{
return this->ptr_;
}
-// copy constructor
ACE_INLINE
-CORBA_Policy_var::CORBA_Policy_var (const CORBA_Policy_var &p)
+CORBA_Policy_var::CORBA_Policy_var (const ::CORBA_Policy_var &p) // copy constructor
: TAO_Base_var (),
ptr_ (CORBA_Policy::_duplicate (p.ptr ()))
{}
ACE_INLINE
-CORBA_Policy_var::~CORBA_Policy_var (void)
+CORBA_Policy_var::~CORBA_Policy_var (void) // destructor
{
CORBA::release (this->ptr_);
}
@@ -99,63 +442,70 @@ CORBA_Policy_var::operator= (CORBA_Policy_ptr p)
}
ACE_INLINE CORBA_Policy_var &
-CORBA_Policy_var::operator= (const CORBA_Policy_var &p)
+CORBA_Policy_var::operator= (const ::CORBA_Policy_var &p)
{
if (this != &p)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_Policy::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_Policy::_duplicate (p.ptr ());
}
return *this;
}
-ACE_INLINE
-CORBA_Policy_var::operator const CORBA_Policy_ptr &() const // cast
+ACE_INLINE
+CORBA_Policy_var::operator const ::CORBA_Policy_ptr &() const // cast
{
return this->ptr_;
}
-ACE_INLINE
-CORBA_Policy_var::operator CORBA_Policy_ptr &() // cast
+ACE_INLINE
+CORBA_Policy_var::operator ::CORBA_Policy_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_Policy_ptr
+ACE_INLINE ::CORBA_Policy_ptr
CORBA_Policy_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_Policy_ptr
+ACE_INLINE ::CORBA_Policy_ptr
CORBA_Policy_var::in (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_Policy_ptr &
+ACE_INLINE ::CORBA_Policy_ptr &
CORBA_Policy_var::inout (void)
{
return this->ptr_;
}
-ACE_INLINE CORBA_Policy_ptr &
+ACE_INLINE ::CORBA_Policy_ptr &
CORBA_Policy_var::out (void)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_Policy::_nil ();
+ this->ptr_ = ::CORBA_Policy::_nil ();
return this->ptr_;
}
-ACE_INLINE CORBA_Policy_ptr
+ACE_INLINE ::CORBA_Policy_ptr
CORBA_Policy_var::_retn (void)
{
// yield ownership of managed obj reference
- CORBA_Policy_ptr val = this->ptr_;
- this->ptr_ = CORBA_Policy::_nil ();
+ ::CORBA_Policy_ptr val = this->ptr_;
+ this->ptr_ = ::CORBA_Policy::_nil ();
return val;
}
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICY___OUT_CI_)
+#define _CORBA_POLICY___OUT_CI_
+
// *************************************************************
// Inline operations for class CORBA_Policy_out
// *************************************************************
@@ -164,7 +514,7 @@ ACE_INLINE
CORBA_Policy_out::CORBA_Policy_out (CORBA_Policy_ptr &p)
: ptr_ (p)
{
- this->ptr_ = CORBA_Policy::_nil ();
+ this->ptr_ = ::CORBA_Policy::_nil ();
}
ACE_INLINE
@@ -172,25 +522,25 @@ CORBA_Policy_out::CORBA_Policy_out (CORBA_Policy_var &p) // constructor from _va
: ptr_ (p.out ())
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_Policy::_nil ();
+ this->ptr_ = ::CORBA_Policy::_nil ();
}
ACE_INLINE
-CORBA_Policy_out::CORBA_Policy_out (CORBA_Policy_out &p) // copy constructor
- : ptr_ (p.ptr_)
+CORBA_Policy_out::CORBA_Policy_out (const ::CORBA_Policy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_Policy_out &, p).ptr_)
{}
-ACE_INLINE CORBA_Policy_out &
-CORBA_Policy_out::operator= (CORBA_Policy_out &p)
+ACE_INLINE ::CORBA_Policy_out &
+CORBA_Policy_out::operator= (const ::CORBA_Policy_out &p)
{
- this->ptr_ = p.ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_Policy_out&, p).ptr_;
return *this;
}
ACE_INLINE CORBA_Policy_out &
-CORBA_Policy_out::operator= (const CORBA_Policy_var &p)
+CORBA_Policy_out::operator= (const ::CORBA_Policy_var &p)
{
- this->ptr_ = CORBA_Policy::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_Policy::_duplicate (p.ptr ());
return *this;
}
@@ -201,24 +551,186 @@ CORBA_Policy_out::operator= (CORBA_Policy_ptr p)
return *this;
}
-ACE_INLINE
-CORBA_Policy_out::operator CORBA_Policy_ptr &() // cast
+ACE_INLINE
+CORBA_Policy_out::operator ::CORBA_Policy_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_Policy_ptr &
+ACE_INLINE ::CORBA_Policy_ptr &
CORBA_Policy_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_Policy_ptr
+ACE_INLINE ::CORBA_Policy_ptr
CORBA_Policy_out::operator-> (void)
{
return this->ptr_;
}
+
+#endif /* end #if !defined */
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CI_)
+#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CI_
+
+ ACE_INLINE CORBA_Policy **
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (CORBA::ULong nelems)
+ {
+ CORBA_Policy **buf = 0;
+
+ ACE_NEW_RETURN (buf, CORBA_Policy*[nelems], 0);
+
+ for (CORBA::ULong i = 0; i < nelems; i++)
+ buf[i] = CORBA_Policy::_nil ();
+
+ return buf;
+ }
+
+ ACE_INLINE void
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::freebuf (CORBA_Policy **buffer)
+ {
+ if (buffer == 0)
+ return;
+ delete[] buffer;
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList (void)
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList (CORBA::ULong maximum)
+ : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (maximum))
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList (CORBA::ULong maximum,
+ CORBA::ULong length,
+ CORBA_Policy* *value,
+ CORBA::Boolean release)
+ : TAO_Unbounded_Base_Sequence (maximum, length, value, release)
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList(const _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &rhs)
+ : TAO_Unbounded_Base_Sequence (rhs)
+ {
+ if (rhs.buffer_ != 0)
+ {
+ CORBA_Policy **tmp1 = _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (this->maximum_);
+ CORBA_Policy ** const tmp2 = ACE_reinterpret_cast (CORBA_Policy ** ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < rhs.length_; ++i)
+ tmp1[i] = CORBA_Policy::_duplicate (tmp2[i]);
+
+ this->buffer_ = tmp1;
+ }
+ else
+ {
+ this->buffer_ = 0;
+ }
+ }
+
+ ACE_INLINE _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::operator= (const _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &rhs)
+ {
+ if (this == &rhs)
+ return *this;
+
+ if (this->release_)
+ {
+ CORBA_Policy **tmp = ACE_reinterpret_cast (CORBA_Policy **, this->buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ {
+ CORBA::release (tmp[i]);
+ tmp[i] = CORBA_Policy::_nil ();
+ }
+ if (this->maximum_ < rhs.maximum_)
+ {
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::freebuf (tmp);
+ this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (rhs.maximum_);
+ }
+ }
+ else
+ this->buffer_ = _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (rhs.maximum_);
+
+ TAO_Unbounded_Base_Sequence::operator= (rhs);
+
+ CORBA_Policy **tmp1 = ACE_reinterpret_cast (CORBA_Policy **, this->buffer_);
+ CORBA_Policy ** const tmp2 = ACE_reinterpret_cast (CORBA_Policy ** ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < rhs.length_; ++i)
+ tmp1[i] = CORBA_Policy::_duplicate (tmp2[i]);
+
+ return *this;
+ }
+
+ ACE_INLINE TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var>
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::operator[] (CORBA::ULong index) const
+ // read-write accessor
+ {
+ ACE_ASSERT (index < this->maximum_);
+ CORBA_Policy ** const tmp = ACE_reinterpret_cast (CORBA_Policy ** ACE_CAST_CONST, this->buffer_);
+ return TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var> (tmp + index, this->release_);
+ }
+
+ ACE_INLINE CORBA_Policy* *
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::get_buffer (CORBA::Boolean orphan)
+ {
+ CORBA_Policy **result = 0;
+ if (orphan == 0)
+ {
+ // We retain ownership.
+ if (this->buffer_ == 0)
+ {
+ result = _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (this->maximum_);
+ this->buffer_ = result;
+ }
+ else
+ {
+ result = ACE_reinterpret_cast (CORBA_Policy**, this->buffer_);
+ }
+ }
+ else // if (orphan == 1)
+ {
+ if (this->release_ != 0)
+ {
+ // We set the state back to default and relinquish
+ // ownership.
+ result = ACE_reinterpret_cast(CORBA_Policy**,this->buffer_);
+ this->maximum_ = 0;
+ this->length_ = 0;
+ this->buffer_ = 0;
+ this->release_ = 0;
+ }
+ }
+ return result;
+ }
+
+ ACE_INLINE const CORBA_Policy* *
+ _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::get_buffer (void) const
+ {
+ return ACE_reinterpret_cast(const CORBA_Policy ** ACE_CAST_CONST, this->buffer_);
+ }
+
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_POLICYLIST_CI_)
+#define _CORBA_POLICYLIST_CI_
+
// *************************************************************
// Inline operations for class CORBA_PolicyList_var
// *************************************************************
@@ -234,11 +746,10 @@ CORBA_PolicyList_var::CORBA_PolicyList_var (CORBA_PolicyList *p)
{}
ACE_INLINE
-CORBA_PolicyList_var::CORBA_PolicyList_var (const CORBA_PolicyList_var &p) // copy constructor
+CORBA_PolicyList_var::CORBA_PolicyList_var (const ::CORBA_PolicyList_var &p) // copy constructor
{
if (p.ptr_)
- ACE_NEW (this->ptr_,
- CORBA_PolicyList (*p.ptr_));
+ ACE_NEW (this->ptr_, ::CORBA_PolicyList (*p.ptr_));
else
this->ptr_ = 0;
}
@@ -258,68 +769,73 @@ CORBA_PolicyList_var::operator= (CORBA_PolicyList *p)
}
ACE_INLINE CORBA_PolicyList_var &
-CORBA_PolicyList_var::operator= (const CORBA_PolicyList_var &p) // deep copy
+CORBA_PolicyList_var::operator= (const ::CORBA_PolicyList_var &p) // deep copy
{
if (this != &p)
{
delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_,
- CORBA_PolicyList (*p.ptr_),
- *this);
+ ACE_NEW_RETURN (this->ptr_, ::CORBA_PolicyList (*p.ptr_), *this);
}
return *this;
}
-ACE_INLINE const CORBA_PolicyList *
+ACE_INLINE const ::CORBA_PolicyList *
CORBA_PolicyList_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyList *
+ACE_INLINE ::CORBA_PolicyList *
CORBA_PolicyList_var::operator-> (void)
{
return this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyList_var::operator const CORBA_PolicyList &() const // cast
+ACE_INLINE
+CORBA_PolicyList_var::operator const ::CORBA_PolicyList &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyList_var::operator CORBA_PolicyList &() // cast
+ACE_INLINE
+CORBA_PolicyList_var::operator ::CORBA_PolicyList &() // cast
{
return *this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyList_var::operator CORBA_PolicyList &() const// cast
+ACE_INLINE
+CORBA_PolicyList_var::operator ::CORBA_PolicyList &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE TAO_Object_Manager <CORBA_Policy,CORBA_Policy_var >
-CORBA_PolicyList_var::operator[] (CORBA::ULong slot)
+// variable-size types only
+ACE_INLINE
+CORBA_PolicyList_var::operator ::CORBA_PolicyList *&() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE TAO_Object_Manager<CORBA_Policy, CORBA_Policy_var>
+CORBA_PolicyList_var::operator[] (CORBA::ULong index)
{
- return this->ptr_->operator[] (slot);
+ return this->ptr_->operator[] (index);
}
-ACE_INLINE const CORBA_PolicyList &
+ACE_INLINE const ::CORBA_PolicyList &
CORBA_PolicyList_var::in (void) const
{
return *this->ptr_;
}
-ACE_INLINE CORBA_PolicyList &
+ACE_INLINE ::CORBA_PolicyList &
CORBA_PolicyList_var::inout (void)
{
return *this->ptr_;
}
-// mapping for variable size
-ACE_INLINE CORBA_PolicyList *&
+// mapping for variable size
+ACE_INLINE ::CORBA_PolicyList *&
CORBA_PolicyList_var::out (void)
{
delete this->ptr_;
@@ -327,15 +843,15 @@ CORBA_PolicyList_var::out (void)
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyList *
+ACE_INLINE ::CORBA_PolicyList *
CORBA_PolicyList_var::_retn (void)
{
- CORBA_PolicyList *tmp = this->ptr_;
+ ::CORBA_PolicyList *tmp = this->ptr_;
this->ptr_ = 0;
return tmp;
}
-ACE_INLINE CORBA_PolicyList *
+ACE_INLINE ::CORBA_PolicyList *
CORBA_PolicyList_var::ptr (void) const
{
return this->ptr_;
@@ -361,48 +877,230 @@ CORBA_PolicyList_out::CORBA_PolicyList_out (CORBA_PolicyList_var &p) // construc
}
ACE_INLINE
-CORBA_PolicyList_out::CORBA_PolicyList_out (const CORBA_PolicyList_out &p) // copy constructor
- : ptr_ (p.ptr_)
+CORBA_PolicyList_out::CORBA_PolicyList_out (const ::CORBA_PolicyList_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_PolicyList_out&, p).ptr_)
{}
-ACE_INLINE CORBA_PolicyList_out &
-CORBA_PolicyList_out::operator= (CORBA_PolicyList_out &p)
+ACE_INLINE ::CORBA_PolicyList_out &
+CORBA_PolicyList_out::operator= (const ::CORBA_PolicyList_out &p)
{
- this->ptr_ = p.ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_PolicyList_out&, p).ptr_;
return *this;
}
-ACE_INLINE CORBA_PolicyList_out &
+ACE_INLINE ::CORBA_PolicyList_out &
CORBA_PolicyList_out::operator= (CORBA_PolicyList *p)
{
this->ptr_ = p;
return *this;
}
-ACE_INLINE
-CORBA_PolicyList_out::operator CORBA_PolicyList *&() // cast
+ACE_INLINE
+CORBA_PolicyList_out::operator ::CORBA_PolicyList *&() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyList *&
+ACE_INLINE ::CORBA_PolicyList *&
CORBA_PolicyList_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyList *
+ACE_INLINE ::CORBA_PolicyList *
CORBA_PolicyList_out::operator-> (void)
{
return this->ptr_;
}
-ACE_INLINE TAO_Object_Manager <CORBA_Policy,CORBA_Policy_var >
-CORBA_PolicyList_out::operator[] (CORBA::ULong slot)
+ACE_INLINE TAO_Object_Manager<CORBA_Policy, CORBA_Policy_var>
+CORBA_PolicyList_out::operator[] (CORBA::ULong index)
{
- return this->ptr_->operator[] (slot);
+ return this->ptr_->operator[] (index);
}
+
+#endif /* end #if !defined */
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CI_)
+#define __TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CI_
+
+ // = Static operations.
+ ACE_INLINE CORBA::ULong *
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (CORBA::ULong size)
+ // Allocate storage for the sequence.
+ {
+ CORBA::ULong *retval = 0;
+ ACE_NEW_RETURN (retval, CORBA::ULong[size], 0);
+ return retval;
+ }
+
+ ACE_INLINE void _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::freebuf (CORBA::ULong *buffer)
+ // Free the sequence.
+ {
+ delete [] buffer;
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (void) // Default constructor.
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (CORBA::ULong maximum) // Constructor using a maximum length value.
+ : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (maximum))
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (CORBA::ULong maximum,
+ CORBA::ULong length,
+ CORBA::ULong *data,
+ CORBA::Boolean release)
+ : TAO_Unbounded_Base_Sequence (maximum, length, data, release)
+ {
+ }
+
+ ACE_INLINE
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (const _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &rhs)
+ // Copy constructor.
+ : TAO_Unbounded_Base_Sequence (rhs)
+ {
+ if (rhs.buffer_ != 0)
+ {
+ CORBA::ULong *tmp1 = _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (this->maximum_);
+ CORBA::ULong * const tmp2 = ACE_reinterpret_cast (CORBA::ULong * ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ tmp1[i] = tmp2[i];
+
+ this->buffer_ = tmp1;
+ }
+ else
+ {
+ this->buffer_ = 0;
+ }
+ }
+
+ ACE_INLINE _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::operator= (const _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &rhs)
+ // Assignment operator.
+ {
+ if (this == &rhs)
+ return *this;
+
+ if (this->release_)
+ {
+ if (this->maximum_ < rhs.maximum_)
+ {
+ // free the old buffer
+ CORBA::ULong *tmp = ACE_reinterpret_cast (CORBA::ULong *, this->buffer_);
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::freebuf (tmp);
+ this->buffer_ = _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (rhs.maximum_);
+ }
+ }
+ else
+ this->buffer_ = _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (rhs.maximum_);
+
+ TAO_Unbounded_Base_Sequence::operator= (rhs);
+
+ CORBA::ULong *tmp1 = ACE_reinterpret_cast (CORBA::ULong *, this->buffer_);
+ CORBA::ULong * const tmp2 = ACE_reinterpret_cast (CORBA::ULong * ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ tmp1[i] = tmp2[i];
+
+ return *this;
+ }
+
+ // = Accessors.
+ ACE_INLINE CORBA::ULong &
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::operator[] (CORBA::ULong i)
+ // operator []
+ {
+ ACE_ASSERT (i < this->maximum_);
+ CORBA::ULong* tmp = ACE_reinterpret_cast(CORBA::ULong*,this->buffer_);
+ return tmp[i];
+ }
+
+ ACE_INLINE const CORBA::ULong &
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::operator[] (CORBA::ULong i) const
+ // operator []
+ {
+ ACE_ASSERT (i < this->maximum_);
+ CORBA::ULong * const tmp = ACE_reinterpret_cast (CORBA::ULong* ACE_CAST_CONST, this->buffer_);
+ return tmp[i];
+ }
+
+ // Implement the TAO_Base_Sequence methods (see Sequence.h)
+
+ ACE_INLINE CORBA::ULong *
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::get_buffer (CORBA::Boolean orphan)
+ {
+ CORBA::ULong *result = 0;
+ if (orphan == 0)
+ {
+ // We retain ownership.
+ if (this->buffer_ == 0)
+ {
+ result = _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (this->length_);
+ this->buffer_ = result;
+ }
+ else
+ {
+ result = ACE_reinterpret_cast (CORBA::ULong*, this->buffer_);
+ }
+ }
+ else // if (orphan == 1)
+ {
+ if (this->release_ != 0)
+ {
+ // We set the state back to default and relinquish
+ // ownership.
+ result = ACE_reinterpret_cast(CORBA::ULong*,this->buffer_);
+ this->maximum_ = 0;
+ this->length_ = 0;
+ this->buffer_ = 0;
+ this->release_ = 0;
+ }
+ }
+ return result;
+ }
+
+ ACE_INLINE const CORBA::ULong *
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::get_buffer (void) const
+ {
+ return ACE_reinterpret_cast(const CORBA::ULong * ACE_CAST_CONST, this->buffer_);
+ }
+
+ ACE_INLINE void
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::replace (CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA::ULong *data,
+ CORBA::Boolean release)
+ {
+ this->maximum_ = max;
+ this->length_ = length;
+ if (this->buffer_ && this->release_ == 1)
+ {
+ CORBA::ULong *tmp = ACE_reinterpret_cast(CORBA::ULong*,this->buffer_);
+ _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::freebuf (tmp);
+ }
+ this->buffer_ = data;
+ this->release_ = release;
+ }
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_CORBA_POLICYTYPESEQ_CI_)
+#define _CORBA_POLICYTYPESEQ_CI_
+
// *************************************************************
// Inline operations for class CORBA_PolicyTypeSeq_var
// *************************************************************
@@ -418,15 +1116,21 @@ CORBA_PolicyTypeSeq_var::CORBA_PolicyTypeSeq_var (CORBA_PolicyTypeSeq *p)
{}
ACE_INLINE
-CORBA_PolicyTypeSeq_var::CORBA_PolicyTypeSeq_var (const CORBA_PolicyTypeSeq_var &p)
+CORBA_PolicyTypeSeq_var::CORBA_PolicyTypeSeq_var (const ::CORBA_PolicyTypeSeq_var &p) // copy constructor
{
if (p.ptr_)
- ACE_NEW (this->ptr_,
- CORBA_PolicyTypeSeq (*p.ptr_));
+ ACE_NEW (this->ptr_, ::CORBA_PolicyTypeSeq (*p.ptr_));
else
this->ptr_ = 0;
}
+// fixed-size base types only
+ACE_INLINE
+CORBA_PolicyTypeSeq_var::CORBA_PolicyTypeSeq_var (const ::CORBA_PolicyTypeSeq &p)
+{
+ ACE_NEW (this->ptr_, ::CORBA_PolicyTypeSeq (p));
+}
+
ACE_INLINE
CORBA_PolicyTypeSeq_var::~CORBA_PolicyTypeSeq_var (void) // destructor
{
@@ -442,68 +1146,78 @@ CORBA_PolicyTypeSeq_var::operator= (CORBA_PolicyTypeSeq *p)
}
ACE_INLINE CORBA_PolicyTypeSeq_var &
-CORBA_PolicyTypeSeq_var::operator= (const CORBA_PolicyTypeSeq_var &p) // deep copy
+CORBA_PolicyTypeSeq_var::operator= (const ::CORBA_PolicyTypeSeq_var &p) // deep copy
{
if (this != &p)
{
delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_,
- CORBA_PolicyTypeSeq (*p.ptr_),
- *this);
+ ACE_NEW_RETURN (this->ptr_, ::CORBA_PolicyTypeSeq (*p.ptr_), *this);
}
return *this;
}
-ACE_INLINE const CORBA_PolicyTypeSeq *
+// fixed-size types only
+ACE_INLINE ::CORBA_PolicyTypeSeq_var &
+CORBA_PolicyTypeSeq_var::operator= (const ::CORBA_PolicyTypeSeq &p)
+{
+ if (this->ptr_ != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_, ::CORBA_PolicyTypeSeq (p), *this);
+ }
+ return *this;
+}
+
+ACE_INLINE const ::CORBA_PolicyTypeSeq *
CORBA_PolicyTypeSeq_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyTypeSeq *
+ACE_INLINE ::CORBA_PolicyTypeSeq *
CORBA_PolicyTypeSeq_var::operator-> (void)
{
return this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyTypeSeq_var::operator const CORBA_PolicyTypeSeq &() const // cast
+ACE_INLINE
+CORBA_PolicyTypeSeq_var::operator const ::CORBA_PolicyTypeSeq &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyTypeSeq_var::operator CORBA_PolicyTypeSeq &() // cast
+ACE_INLINE
+CORBA_PolicyTypeSeq_var::operator ::CORBA_PolicyTypeSeq &() // cast
{
return *this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyTypeSeq_var::operator CORBA_PolicyTypeSeq &() const// cast
+ACE_INLINE
+CORBA_PolicyTypeSeq_var::operator ::CORBA_PolicyTypeSeq &() const // cast
{
return *this->ptr_;
}
ACE_INLINE CORBA::PolicyType &
-CORBA_PolicyTypeSeq_var::operator[] (CORBA::ULong slot)
+CORBA_PolicyTypeSeq_var::operator[] (CORBA::ULong index)
{
- return this->ptr_->operator[] (slot);
+ return this->ptr_->operator[] (index);
}
-ACE_INLINE const CORBA_PolicyTypeSeq &
+ACE_INLINE const ::CORBA_PolicyTypeSeq &
CORBA_PolicyTypeSeq_var::in (void) const
{
return *this->ptr_;
}
-ACE_INLINE CORBA_PolicyTypeSeq &
+ACE_INLINE ::CORBA_PolicyTypeSeq &
CORBA_PolicyTypeSeq_var::inout (void)
{
return *this->ptr_;
}
-// mapping for variable size
-ACE_INLINE CORBA_PolicyTypeSeq *&
+// mapping for variable size
+ACE_INLINE ::CORBA_PolicyTypeSeq *&
CORBA_PolicyTypeSeq_var::out (void)
{
delete this->ptr_;
@@ -511,15 +1225,15 @@ CORBA_PolicyTypeSeq_var::out (void)
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyTypeSeq *
+ACE_INLINE ::CORBA_PolicyTypeSeq *
CORBA_PolicyTypeSeq_var::_retn (void)
{
- CORBA_PolicyTypeSeq *tmp = this->ptr_;
+ ::CORBA_PolicyTypeSeq *tmp = this->ptr_;
this->ptr_ = 0;
return tmp;
}
-ACE_INLINE CORBA_PolicyTypeSeq *
+ACE_INLINE ::CORBA_PolicyTypeSeq *
CORBA_PolicyTypeSeq_var::ptr (void) const
{
return this->ptr_;
@@ -545,76 +1259,54 @@ CORBA_PolicyTypeSeq_out::CORBA_PolicyTypeSeq_out (CORBA_PolicyTypeSeq_var &p) //
}
ACE_INLINE
-CORBA_PolicyTypeSeq_out::CORBA_PolicyTypeSeq_out (const CORBA_PolicyTypeSeq_out &p) // copy constructor
- : ptr_ (ACE_const_cast (CORBA_PolicyTypeSeq_out&,p).ptr_)
+CORBA_PolicyTypeSeq_out::CORBA_PolicyTypeSeq_out (const ::CORBA_PolicyTypeSeq_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_PolicyTypeSeq_out&, p).ptr_)
{}
-ACE_INLINE CORBA_PolicyTypeSeq_out &
-CORBA_PolicyTypeSeq_out::operator= (const CORBA_PolicyTypeSeq_out &p)
+ACE_INLINE ::CORBA_PolicyTypeSeq_out &
+CORBA_PolicyTypeSeq_out::operator= (const ::CORBA_PolicyTypeSeq_out &p)
{
- this->ptr_ = ACE_const_cast (CORBA_PolicyTypeSeq_out&,p).ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_PolicyTypeSeq_out&, p).ptr_;
return *this;
}
-ACE_INLINE CORBA_PolicyTypeSeq_out &
+ACE_INLINE ::CORBA_PolicyTypeSeq_out &
CORBA_PolicyTypeSeq_out::operator= (CORBA_PolicyTypeSeq *p)
{
this->ptr_ = p;
return *this;
}
-ACE_INLINE
-CORBA_PolicyTypeSeq_out::operator CORBA_PolicyTypeSeq *&() // cast
+ACE_INLINE
+CORBA_PolicyTypeSeq_out::operator ::CORBA_PolicyTypeSeq *&() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyTypeSeq *&
+ACE_INLINE ::CORBA_PolicyTypeSeq *&
CORBA_PolicyTypeSeq_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyTypeSeq *
+ACE_INLINE ::CORBA_PolicyTypeSeq *
CORBA_PolicyTypeSeq_out::operator-> (void)
{
return this->ptr_;
}
ACE_INLINE CORBA::PolicyType &
-CORBA_PolicyTypeSeq_out::operator[] (CORBA::ULong slot)
+CORBA_PolicyTypeSeq_out::operator[] (CORBA::ULong index)
{
- return this->ptr_->operator[] (slot);
+ return this->ptr_->operator[] (index);
}
-// ****************************************************************
-
-ACE_INLINE
-CORBA_PolicyManager::CORBA_PolicyManager (void) // default constructor
-{}
-ACE_INLINE
-CORBA_PolicyManager::CORBA_PolicyManager (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor
- : CORBA_Object (objref, _tao_servant, _tao_collocated)
-{}
-
-ACE_INLINE
-CORBA_PolicyManager::~CORBA_PolicyManager (void) // destructor
-{}
+#endif /* end #if !defined */
-ACE_INLINE CORBA_PolicyManager_ptr
-CORBA_PolicyManager::_duplicate (CORBA_PolicyManager_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
- return obj;
-}
-ACE_INLINE CORBA_PolicyManager_ptr
-CORBA_PolicyManager::_nil (void)
-{
- return (CORBA_PolicyManager_ptr)0;
-}
+#if !defined (_CORBA_POLICYMANAGER___VAR_CI_)
+#define _CORBA_POLICYMANAGER___VAR_CI_
// *************************************************************
// Inline operations for class CORBA_PolicyManager_var
@@ -625,19 +1317,14 @@ CORBA_PolicyManager_var::CORBA_PolicyManager_var (void) // default constructor
: ptr_ (CORBA_PolicyManager::_nil ())
{}
-ACE_INLINE
-CORBA_PolicyManager_var::CORBA_PolicyManager_var (CORBA_PolicyManager_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE CORBA_PolicyManager_ptr
+ACE_INLINE ::CORBA_PolicyManager_ptr
CORBA_PolicyManager_var::ptr (void) const
{
return this->ptr_;
}
ACE_INLINE
-CORBA_PolicyManager_var::CORBA_PolicyManager_var (const CORBA_PolicyManager_var &p) // copy constructor
+CORBA_PolicyManager_var::CORBA_PolicyManager_var (const ::CORBA_PolicyManager_var &p) // copy constructor
: TAO_Base_var (),
ptr_ (CORBA_PolicyManager::_duplicate (p.ptr ()))
{}
@@ -657,63 +1344,70 @@ CORBA_PolicyManager_var::operator= (CORBA_PolicyManager_ptr p)
}
ACE_INLINE CORBA_PolicyManager_var &
-CORBA_PolicyManager_var::operator= (const CORBA_PolicyManager_var &p)
+CORBA_PolicyManager_var::operator= (const ::CORBA_PolicyManager_var &p)
{
if (this != &p)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_PolicyManager::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_PolicyManager::_duplicate (p.ptr ());
}
return *this;
}
-ACE_INLINE
-CORBA_PolicyManager_var::operator const CORBA_PolicyManager_ptr &() const // cast
+ACE_INLINE
+CORBA_PolicyManager_var::operator const ::CORBA_PolicyManager_ptr &() const // cast
{
return this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyManager_var::operator CORBA_PolicyManager_ptr &() // cast
+ACE_INLINE
+CORBA_PolicyManager_var::operator ::CORBA_PolicyManager_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyManager_ptr
+ACE_INLINE ::CORBA_PolicyManager_ptr
CORBA_PolicyManager_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyManager_ptr
+ACE_INLINE ::CORBA_PolicyManager_ptr
CORBA_PolicyManager_var::in (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyManager_ptr &
+ACE_INLINE ::CORBA_PolicyManager_ptr &
CORBA_PolicyManager_var::inout (void)
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyManager_ptr &
+ACE_INLINE ::CORBA_PolicyManager_ptr &
CORBA_PolicyManager_var::out (void)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_PolicyManager::_nil ();
+ this->ptr_ = ::CORBA_PolicyManager::_nil ();
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyManager_ptr
+ACE_INLINE ::CORBA_PolicyManager_ptr
CORBA_PolicyManager_var::_retn (void)
{
// yield ownership of managed obj reference
- CORBA_PolicyManager_ptr val = this->ptr_;
- this->ptr_ = CORBA_PolicyManager::_nil ();
+ ::CORBA_PolicyManager_ptr val = this->ptr_;
+ this->ptr_ = ::CORBA_PolicyManager::_nil ();
return val;
}
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYMANAGER___OUT_CI_)
+#define _CORBA_POLICYMANAGER___OUT_CI_
+
// *************************************************************
// Inline operations for class CORBA_PolicyManager_out
// *************************************************************
@@ -722,7 +1416,7 @@ ACE_INLINE
CORBA_PolicyManager_out::CORBA_PolicyManager_out (CORBA_PolicyManager_ptr &p)
: ptr_ (p)
{
- this->ptr_ = CORBA_PolicyManager::_nil ();
+ this->ptr_ = ::CORBA_PolicyManager::_nil ();
}
ACE_INLINE
@@ -730,25 +1424,25 @@ CORBA_PolicyManager_out::CORBA_PolicyManager_out (CORBA_PolicyManager_var &p) //
: ptr_ (p.out ())
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_PolicyManager::_nil ();
+ this->ptr_ = ::CORBA_PolicyManager::_nil ();
}
ACE_INLINE
-CORBA_PolicyManager_out::CORBA_PolicyManager_out (const CORBA_PolicyManager_out &p) // copy constructor
- : ptr_ (ACE_const_cast (CORBA_PolicyManager_out&,p).ptr_)
+CORBA_PolicyManager_out::CORBA_PolicyManager_out (const ::CORBA_PolicyManager_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_PolicyManager_out &, p).ptr_)
{}
-ACE_INLINE CORBA_PolicyManager_out &
-CORBA_PolicyManager_out::operator= (const CORBA_PolicyManager_out &p)
+ACE_INLINE ::CORBA_PolicyManager_out &
+CORBA_PolicyManager_out::operator= (const ::CORBA_PolicyManager_out &p)
{
- this->ptr_ = ACE_const_cast (CORBA_PolicyManager_out&,p).ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_PolicyManager_out&, p).ptr_;
return *this;
}
ACE_INLINE CORBA_PolicyManager_out &
-CORBA_PolicyManager_out::operator= (const CORBA_PolicyManager_var &p)
+CORBA_PolicyManager_out::operator= (const ::CORBA_PolicyManager_var &p)
{
- this->ptr_ = CORBA_PolicyManager::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_PolicyManager::_duplicate (p.ptr ());
return *this;
}
@@ -759,52 +1453,30 @@ CORBA_PolicyManager_out::operator= (CORBA_PolicyManager_ptr p)
return *this;
}
-ACE_INLINE
-CORBA_PolicyManager_out::operator CORBA_PolicyManager_ptr &() // cast
+ACE_INLINE
+CORBA_PolicyManager_out::operator ::CORBA_PolicyManager_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyManager_ptr &
+ACE_INLINE ::CORBA_PolicyManager_ptr &
CORBA_PolicyManager_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyManager_ptr
+ACE_INLINE ::CORBA_PolicyManager_ptr
CORBA_PolicyManager_out::operator-> (void)
{
return this->ptr_;
}
-// ****************************************************************
-ACE_INLINE
-CORBA_PolicyCurrent::CORBA_PolicyCurrent (void) // default constructor
-{}
+#endif /* end #if !defined */
-ACE_INLINE
-CORBA_PolicyCurrent::CORBA_PolicyCurrent (TAO_Stub *objref, TAO_ServantBase *_tao_servant, CORBA::Boolean _tao_collocated) // constructor
- : CORBA_Object (objref, _tao_servant, _tao_collocated)
-{}
-ACE_INLINE
-CORBA_PolicyCurrent::~CORBA_PolicyCurrent (void) // destructor
-{}
-
-ACE_INLINE CORBA_PolicyCurrent_ptr
-CORBA_PolicyCurrent::_duplicate (CORBA_PolicyCurrent_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
- return obj;
-}
-
-ACE_INLINE CORBA_PolicyCurrent_ptr
-CORBA_PolicyCurrent::_nil (void)
-{
- return (CORBA_PolicyCurrent_ptr)0;
-}
+#if !defined (_CORBA_POLICYCURRENT___VAR_CI_)
+#define _CORBA_POLICYCURRENT___VAR_CI_
// *************************************************************
// Inline operations for class CORBA_PolicyCurrent_var
@@ -815,19 +1487,14 @@ CORBA_PolicyCurrent_var::CORBA_PolicyCurrent_var (void) // default constructor
: ptr_ (CORBA_PolicyCurrent::_nil ())
{}
-ACE_INLINE
-CORBA_PolicyCurrent_var::CORBA_PolicyCurrent_var (CORBA_PolicyCurrent_ptr p)
- : ptr_ (p)
-{}
-
-ACE_INLINE CORBA_PolicyCurrent_ptr
+ACE_INLINE ::CORBA_PolicyCurrent_ptr
CORBA_PolicyCurrent_var::ptr (void) const
{
return this->ptr_;
}
ACE_INLINE
-CORBA_PolicyCurrent_var::CORBA_PolicyCurrent_var (const CORBA_PolicyCurrent_var &p) // copy constructor
+CORBA_PolicyCurrent_var::CORBA_PolicyCurrent_var (const ::CORBA_PolicyCurrent_var &p) // copy constructor
: TAO_Base_var (),
ptr_ (CORBA_PolicyCurrent::_duplicate (p.ptr ()))
{}
@@ -847,63 +1514,70 @@ CORBA_PolicyCurrent_var::operator= (CORBA_PolicyCurrent_ptr p)
}
ACE_INLINE CORBA_PolicyCurrent_var &
-CORBA_PolicyCurrent_var::operator= (const CORBA_PolicyCurrent_var &p)
+CORBA_PolicyCurrent_var::operator= (const ::CORBA_PolicyCurrent_var &p)
{
if (this != &p)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_PolicyCurrent::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_PolicyCurrent::_duplicate (p.ptr ());
}
return *this;
}
-ACE_INLINE
-CORBA_PolicyCurrent_var::operator const CORBA_PolicyCurrent_ptr &() const // cast
+ACE_INLINE
+CORBA_PolicyCurrent_var::operator const ::CORBA_PolicyCurrent_ptr &() const // cast
{
return this->ptr_;
}
-ACE_INLINE
-CORBA_PolicyCurrent_var::operator CORBA_PolicyCurrent_ptr &() // cast
+ACE_INLINE
+CORBA_PolicyCurrent_var::operator ::CORBA_PolicyCurrent_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyCurrent_ptr
+ACE_INLINE ::CORBA_PolicyCurrent_ptr
CORBA_PolicyCurrent_var::operator-> (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyCurrent_ptr
+ACE_INLINE ::CORBA_PolicyCurrent_ptr
CORBA_PolicyCurrent_var::in (void) const
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyCurrent_ptr &
+ACE_INLINE ::CORBA_PolicyCurrent_ptr &
CORBA_PolicyCurrent_var::inout (void)
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyCurrent_ptr &
+ACE_INLINE ::CORBA_PolicyCurrent_ptr &
CORBA_PolicyCurrent_var::out (void)
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_PolicyCurrent::_nil ();
+ this->ptr_ = ::CORBA_PolicyCurrent::_nil ();
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyCurrent_ptr
+ACE_INLINE ::CORBA_PolicyCurrent_ptr
CORBA_PolicyCurrent_var::_retn (void)
{
// yield ownership of managed obj reference
- CORBA_PolicyCurrent_ptr val = this->ptr_;
- this->ptr_ = CORBA_PolicyCurrent::_nil ();
+ ::CORBA_PolicyCurrent_ptr val = this->ptr_;
+ this->ptr_ = ::CORBA_PolicyCurrent::_nil ();
return val;
}
+
+#endif /* end #if !defined */
+
+
+#if !defined (_CORBA_POLICYCURRENT___OUT_CI_)
+#define _CORBA_POLICYCURRENT___OUT_CI_
+
// *************************************************************
// Inline operations for class CORBA_PolicyCurrent_out
// *************************************************************
@@ -912,7 +1586,7 @@ ACE_INLINE
CORBA_PolicyCurrent_out::CORBA_PolicyCurrent_out (CORBA_PolicyCurrent_ptr &p)
: ptr_ (p)
{
- this->ptr_ = CORBA_PolicyCurrent::_nil ();
+ this->ptr_ = ::CORBA_PolicyCurrent::_nil ();
}
ACE_INLINE
@@ -920,25 +1594,25 @@ CORBA_PolicyCurrent_out::CORBA_PolicyCurrent_out (CORBA_PolicyCurrent_var &p) //
: ptr_ (p.out ())
{
CORBA::release (this->ptr_);
- this->ptr_ = CORBA_PolicyCurrent::_nil ();
+ this->ptr_ = ::CORBA_PolicyCurrent::_nil ();
}
ACE_INLINE
-CORBA_PolicyCurrent_out::CORBA_PolicyCurrent_out (const CORBA_PolicyCurrent_out &p) // copy constructor
- : ptr_ (ACE_const_cast (CORBA_PolicyCurrent_out&,p).ptr_)
+CORBA_PolicyCurrent_out::CORBA_PolicyCurrent_out (const ::CORBA_PolicyCurrent_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (CORBA_PolicyCurrent_out &, p).ptr_)
{}
-ACE_INLINE CORBA_PolicyCurrent_out &
-CORBA_PolicyCurrent_out::operator= (const CORBA_PolicyCurrent_out &p)
+ACE_INLINE ::CORBA_PolicyCurrent_out &
+CORBA_PolicyCurrent_out::operator= (const ::CORBA_PolicyCurrent_out &p)
{
- this->ptr_ = ACE_const_cast (CORBA_PolicyCurrent_out&,p).ptr_;
+ this->ptr_ = ACE_const_cast (CORBA_PolicyCurrent_out&, p).ptr_;
return *this;
}
ACE_INLINE CORBA_PolicyCurrent_out &
-CORBA_PolicyCurrent_out::operator= (const CORBA_PolicyCurrent_var &p)
+CORBA_PolicyCurrent_out::operator= (const ::CORBA_PolicyCurrent_var &p)
{
- this->ptr_ = CORBA_PolicyCurrent::_duplicate (p.ptr ());
+ this->ptr_ = ::CORBA_PolicyCurrent::_duplicate (p.ptr ());
return *this;
}
@@ -949,25 +1623,43 @@ CORBA_PolicyCurrent_out::operator= (CORBA_PolicyCurrent_ptr p)
return *this;
}
-ACE_INLINE
-CORBA_PolicyCurrent_out::operator CORBA_PolicyCurrent_ptr &() // cast
+ACE_INLINE
+CORBA_PolicyCurrent_out::operator ::CORBA_PolicyCurrent_ptr &() // cast
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyCurrent_ptr &
+ACE_INLINE ::CORBA_PolicyCurrent_ptr &
CORBA_PolicyCurrent_out::ptr (void) // ptr
{
return this->ptr_;
}
-ACE_INLINE CORBA_PolicyCurrent_ptr
+ACE_INLINE ::CORBA_PolicyCurrent_ptr
CORBA_PolicyCurrent_out::operator-> (void)
{
return this->ptr_;
}
-// ****************************************************************
+
+#endif /* end #if !defined */
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA::SetOverrideType &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::SetOverrideType &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA_PolicyError &_tao_aggregate)
{
@@ -986,42 +1678,52 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA_PolicyErr
return 0;
}
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA_PolicyError &_tao_aggregate)
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm,CORBA_PolicyError &_tao_aggregate)
{
// now marshal the members
if (
- (strm >> _tao_aggregate.reason)
- )
+ (strm >> _tao_aggregate.reason)
+ )
return 1;
- return 0;
+ else
+ return 0;
}
-ACE_INLINE CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
- const CORBA_InvalidPolicies::_tao_seq_UShort &_tao_sequence
- )
-{
- if (strm << _tao_sequence.length ())
- {
- // encode all elements
- return strm.write_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
- }
- return 0; // error
-}
+#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA_InvalidPolicies::_tao_seq_UShort &_tao_sequence)
+ACE_INLINE
+ostream & operator<< (ostream &os, const CORBA_PolicyError &_tao_aggregate)
{
- CORBA::ULong _tao_seq_len;
- if (strm >> _tao_seq_len)
- {
- // set the length of the sequence
- _tao_sequence.length (_tao_seq_len);
- // retrieve all the elements
- return strm.read_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
- }
- return 0; // error
+ CORBA::TypeCode_ptr tc = _tao_aggregate._type ();
+ if (tc)
+ {
+ os << tc->name () << " (";
+ }
+ os << _tao_aggregate._id ();
+ if (tc)
+ {
+ os << ")";
+ }
+ return os;
}
+#endif /* ACE_LACKS_IOSTREAM_TOTALLY */
+
+
+#if !defined _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_I_
+#define _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_I_
+
+CORBA::Boolean TAO_Export operator<< (
+ TAO_OutputCDR &,
+ const CORBA_InvalidPolicies::_tao_seq_UShort &
+ );
+CORBA::Boolean TAO_Export operator>> (
+ TAO_InputCDR &,
+ CORBA_InvalidPolicies::_tao_seq_UShort &
+ );
+
+#endif /* _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_I_ */
+
ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA_InvalidPolicies &_tao_aggregate)
{
// first marshal the repository ID
@@ -1039,107 +1741,52 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA_InvalidPo
return 0;
}
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA_InvalidPolicies &_tao_aggregate)
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm,CORBA_InvalidPolicies &_tao_aggregate)
{
// now marshal the members
if (
- (strm >> _tao_aggregate.indices)
- )
+ (strm >> _tao_aggregate.indices)
+ )
return 1;
- return 0;
+ else
+ return 0;
}
-CORBA::Boolean TAO_Export
+#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
+
+ACE_INLINE
+ostream & operator<< (ostream &os, const CORBA_InvalidPolicies &_tao_aggregate)
+{
+ CORBA::TypeCode_ptr tc = _tao_aggregate._type ();
+ if (tc)
+ {
+ os << tc->name () << " (";
+ }
+ os << _tao_aggregate._id ();
+ if (tc)
+ {
+ os << ")";
+ }
+ return os;
+}
+
+#endif /* ACE_LACKS_IOSTREAM_TOTALLY */
+
+ACE_INLINE CORBA::Boolean
operator<< (
TAO_OutputCDR &,
const CORBA_Policy_ptr
);
-CORBA::Boolean TAO_Export
+ACE_INLINE CORBA::Boolean
operator>> (
TAO_InputCDR &,
CORBA_Policy_ptr &
);
-
-ACE_INLINE CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
- const CORBA_PolicyList &_tao_sequence
- )
-{
- if (strm << _tao_sequence.length ())
- {
- // encode all elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- _tao_marshal_flag = (strm << _tao_sequence[i].in ());
- return _tao_marshal_flag;
- }
- return 0; // error
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA_PolicyList &_tao_sequence)
-{
- CORBA::ULong _tao_seq_len;
- if (strm >> _tao_seq_len)
- {
- // set the length of the sequence
- _tao_sequence.length (_tao_seq_len);
- // retrieve all the elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
- return _tao_marshal_flag;
- }
- return 0; // error
-}
-
-ACE_INLINE CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
- const CORBA_PolicyTypeSeq &_tao_sequence
- )
-{
- if (strm << _tao_sequence.length ())
- {
- // encode all elements
- return strm.write_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
- }
- return 0; // error
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA_PolicyTypeSeq &_tao_sequence)
-{
- CORBA::ULong _tao_seq_len;
- if (strm >> _tao_seq_len)
- {
- // set the length of the sequence
- _tao_sequence.length (_tao_seq_len);
- // retrieve all the elements
- return strm.read_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
- }
- return 0; // error
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA::SetOverrideType &_tao_enumval)
-{
- return strm.write_ulong ((CORBA::ULong) _tao_enumval);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::SetOverrideType &_tao_enumval)
-{
- CORBA::ULong _tao_temp;
- if (strm.read_ulong (_tao_temp))
- {
- ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
- return 1;
- }
- else
- return 0;
-}
-
ACE_INLINE CORBA::Boolean
operator<< (
TAO_OutputCDR &strm,
- const CORBA::PolicyManager_ptr _tao_objref
+ const CORBA_Policy_ptr _tao_objref
)
{
CORBA::Object_ptr _tao_corba_obj = _tao_objref;
@@ -1149,7 +1796,7 @@ operator<< (
ACE_INLINE CORBA::Boolean
operator>> (
TAO_InputCDR &strm,
- CORBA::PolicyManager_ptr &_tao_objref
+ CORBA_Policy_ptr &_tao_objref
)
{
ACE_TRY_NEW_ENV
@@ -1159,7 +1806,7 @@ operator>> (
return 0;
// narrow to the right type
_tao_objref =
- CORBA::PolicyManager::_narrow (
+ CORBA_Policy::_unchecked_narrow (
obj.in (),
ACE_TRY_ENV
);
@@ -1174,40 +1821,33 @@ operator>> (
return 0;
}
-ACE_INLINE CORBA::Boolean
-operator<< (
- TAO_OutputCDR &strm,
- const CORBA::PolicyCurrent_ptr _tao_objref
- )
-{
- CORBA::Object_ptr _tao_corba_obj = _tao_objref;
- return (strm << _tao_corba_obj);
-}
-ACE_INLINE CORBA::Boolean
-operator>> (
- TAO_InputCDR &strm,
- CORBA::PolicyCurrent_ptr &_tao_objref
- )
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj;
- if ((strm >> obj.inout ()) == 0)
- return 0;
- // narrow to the right type
- _tao_objref =
- CORBA::PolicyCurrent::_narrow (
- obj.in (),
- ACE_TRY_ENV
- );
- ACE_TRY_CHECK;
- return 1;
- }
- ACE_CATCHANY
- {
- // do nothing
- }
- ACE_ENDTRY;
- return 0;
-}
+#if !defined _TAO_CDR_OP_CORBA_PolicyList_I_
+#define _TAO_CDR_OP_CORBA_PolicyList_I_
+
+CORBA::Boolean TAO_Export operator<< (
+ TAO_OutputCDR &,
+ const CORBA_PolicyList &
+ );
+CORBA::Boolean TAO_Export operator>> (
+ TAO_InputCDR &,
+ CORBA_PolicyList &
+ );
+
+#endif /* _TAO_CDR_OP_CORBA_PolicyList_I_ */
+
+
+#if !defined _TAO_CDR_OP_CORBA_PolicyTypeSeq_I_
+#define _TAO_CDR_OP_CORBA_PolicyTypeSeq_I_
+
+CORBA::Boolean TAO_Export operator<< (
+ TAO_OutputCDR &,
+ const CORBA_PolicyTypeSeq &
+ );
+CORBA::Boolean TAO_Export operator>> (
+ TAO_InputCDR &,
+ CORBA_PolicyTypeSeq &
+ );
+
+#endif /* _TAO_CDR_OP_CORBA_PolicyTypeSeq_I_ */
+
diff --git a/TAO/tao/PolicyS.cpp b/TAO/tao/PolicyS.cpp
index e9139a09287..3313e9d2a81 100644
--- a/TAO/tao/PolicyS.cpp
+++ b/TAO/tao/PolicyS.cpp
@@ -1,24 +1,22 @@
-/* -*- C++ -*- */
-// $Id$
+/* -*- C++ -*- $Id$ */
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO ORB and the TAO IDL Compiler have been developed by Washington
-// University Computer Science's Distributed Object Computing Group.
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
//
-// Information on TAO is available at
+// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
#include "tao/PolicyC.h"
#include "tao/Operation_Table.h"
#include "tao/Server_Request.h"
+#include "tao/NVList.h"
+#include "tao/Stub.h"
#include "tao/POA_CORBA.h"
-#include "tao/Environment.h"
#include "tao/Typecode.h"
-#include "tao/ORB.h"
+#include "tao/Object_Adapter.h"
+#include "tao/ORB_Core.h"
-ACE_RCSID(tao, PolicyS, "$Id$")
-
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
class TAO_CORBA_Policy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
{
private:
@@ -26,14 +24,42 @@ private:
public:
const TAO_operation_db_entry * lookup (const char *str, unsigned int len);
};
-/* starting time is 17:16:21 */
-/* C++ code produced by gperf version 2.7 (GNU C++ version) */
-/* Command-line: /project/macarena/coryan/head/ACE_wrappers/bin/gperf -m -M -J -c -C -D -E -T -f 0 -a -o -t -p -K opname_ -L C++ -Z TAO_CORBA_Policy_Perfect_Hash_OpTable -N lookup */
+/* starting time is 0:40:21 */
+/* C++ code produced by gperf version 2.8 (ACE version) */
+/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -F 0 -a -o -t -p -K opname_ -L C++ -Z TAO_CORBA_Policy_Perfect_Hash_OpTable -N lookup */
unsigned int
TAO_CORBA_Policy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
{
static const unsigned char asso_values[] =
{
+#if defined (ACE_MVS)
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 0,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 0,
+ 17, 0, 0, 0, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 0, 17, 17, 17, 17, 0, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17,
+#else
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
@@ -47,6 +73,7 @@ TAO_CORBA_Policy_Perfect_Hash_OpTable::hash (const char *str, unsigned int len)
0, 0, 17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 17, 17, 0, 17, 17, 17,
17, 0, 17, 17, 17, 17, 17, 17,
+#endif /* ACE_MVS */
};
return len + asso_values[str[len - 1]] + asso_values[str[0]];
}
@@ -67,14 +94,14 @@ TAO_CORBA_Policy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len
static const class TAO_operation_db_entry wordlist[] =
{
- {"",0}, {"",0}, {"",0}, {"",0},
+ {"",0},{"",0},{"",0},{"",0},
{"copy", &POA_CORBA::Policy::copy_skel},
{"_is_a", &POA_CORBA::Policy::_is_a_skel},
{"",0},
{"destroy", &POA_CORBA::Policy::destroy_skel},
- {"",0}, {"",0}, {"",0}, {"",0}, {"",0},
+ {"",0},{"",0},{"",0},{"",0},{"",0},
{"_non_existent", &POA_CORBA::Policy::_non_existent_skel},
- {"",0}, {"",0},
+ {"",0},{"",0},
{"_get_policy_type", &POA_CORBA::Policy::_get_policy_type_skel},
};
@@ -92,41 +119,140 @@ TAO_CORBA_Policy_Perfect_Hash_OpTable::lookup (const char *str, unsigned int len
}
return 0;
}
-/* ending time is 17:16:21 */
-TAO_CORBA_Policy_Perfect_Hash_OpTable tao_CORBA_Policy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
+/* ending time is 0:40:21 */
+static TAO_CORBA_Policy_Perfect_Hash_OpTable tao_CORBA_Policy_optable;
+
+CORBA_Policy_ptr _TAO_collocation_POA_CORBA_Policy_Stub_Factory (
+ CORBA::Object_ptr obj
+ )
+{
+ TAO_Stub *stub = obj->_stubobj ();
+
+ switch (stub->servant_orb_var ()->orb_core ()->get_collocation_strategy ())
+ {
+ case TAO_ORB_Core::THRU_POA:
+ {
+ CORBA_Policy_ptr retval = 0;
+ ACE_NEW_RETURN (
+ retval,
+ POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy (stub),
+ 0
+ );
+ return retval;
+ }
+ case TAO_ORB_Core::DIRECT:
+ break;
+ default:
+ break;
+ }
+ return 0;
+}
+
+int _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer (long dummy)
+{
+ ACE_UNUSED_ARG (dummy);
+
+ _TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer =
+ _TAO_collocation_POA_CORBA_Policy_Stub_Factory;
+
+ return 0;
+}
+
+static int _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer_Scarecrow =
+ _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer (ACE_reinterpret_cast (long, _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer));
// skeleton constructor
POA_CORBA::Policy::Policy (void)
{
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
this->optable_ = &tao_CORBA_Policy_optable;
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
}
// copy ctor
-POA_CORBA::Policy::Policy (const Policy& rhs)
+POA_CORBA::Policy::Policy (const POA_CORBA::Policy& rhs)
: TAO_ServantBase (rhs)
{}
+
// skeleton destructor
POA_CORBA::Policy::~Policy (void)
{
}
-#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
void POA_CORBA::Policy::_get_policy_type_skel (
CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
+ void *_tao_object_reference,
+ void * /* context */,
CORBA::Environment &ACE_TRY_ENV
)
{
POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
+
CORBA::PolicyType _tao_retval = 0;
- _tao_retval = _tao_impl->policy_type (
- ACE_TRY_ENV
- );
+#if (TAO_HAS_INTERCEPTORS == 1)
+ TAO_ServerRequestInterceptor_Adapter
+ _tao_vfr (_tao_server_request.orb ()->_get_server_interceptor (ACE_TRY_ENV));
ACE_CHECK;
+ PortableInterceptor::Cookies _tao_cookies;
+ CORBA::NVList_var _tao_interceptor_args;
+ CORBA::Object_var _tao_objref;
+ if (_tao_vfr.valid ())
+ {
+ _tao_server_request.orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
+ ACE_CHECK;
+
+ _tao_objref = _tao_server_request.objref (ACE_TRY_ENV);
+ ACE_CHECK;
+ }
+
+ ACE_TRY
+ {
+ _tao_vfr.preinvoke (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "_get_policy_type",
+ _tao_server_request.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ TAO_INTERCEPTOR_CHECK;
+#endif /* TAO_HAS_INTERCEPTORS */
+
+ _tao_retval = _tao_impl->policy_type (
+ ACE_TRY_ENV
+ );
+
+ TAO_INTERCEPTOR_CHECK;
+
+#if (TAO_HAS_INTERCEPTORS == 1)
+ _tao_vfr.postinvoke (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "_get_policy_type",
+ _tao_server_request.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ TAO_INTERCEPTOR_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ _tao_vfr.exception_occurred (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "_get_policy_type",
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK;
+#endif /* TAO_HAS_INTERCEPTORS */
+
_tao_server_request.init_reply (ACE_TRY_ENV);
ACE_CHECK;
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
@@ -139,17 +265,80 @@ void POA_CORBA::Policy::_get_policy_type_skel (
void POA_CORBA::Policy::copy_skel (
CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
+ void *_tao_object_reference,
+ void * /* context */,
CORBA::Environment &ACE_TRY_ENV
)
{
POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
- CORBA::Policy_var _tao_retval;
- _tao_retval = _tao_impl->copy (
- ACE_TRY_ENV
- );
+
+ CORBA_Policy_var _tao_retval;
+#if (TAO_HAS_INTERCEPTORS == 1)
+ TAO_ServerRequestInterceptor_Adapter
+ _tao_vfr (_tao_server_request.orb ()->_get_server_interceptor (ACE_TRY_ENV));
ACE_CHECK;
+ PortableInterceptor::Cookies _tao_cookies;
+ CORBA::NVList_var _tao_interceptor_args;
+ CORBA::Object_var _tao_objref;
+ if (_tao_vfr.valid ())
+ {
+ _tao_server_request.orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
+ ACE_CHECK;
+
+ _tao_objref = _tao_server_request.objref (ACE_TRY_ENV);
+ ACE_CHECK;
+ }
+
+ ACE_TRY
+ {
+ _tao_vfr.preinvoke (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "copy",
+ _tao_server_request.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ TAO_INTERCEPTOR_CHECK;
+#endif /* TAO_HAS_INTERCEPTORS */
+
+ _tao_retval = _tao_impl->copy (
+ ACE_TRY_ENV
+ );
+
+ TAO_INTERCEPTOR_CHECK;
+
+#if (TAO_HAS_INTERCEPTORS == 1)
+ _tao_vfr.postinvoke (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "copy",
+ _tao_server_request.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ TAO_INTERCEPTOR_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ _tao_vfr.exception_occurred (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "copy",
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK;
+#endif /* TAO_HAS_INTERCEPTORS */
+
_tao_server_request.init_reply (ACE_TRY_ENV);
ACE_CHECK;
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
@@ -162,23 +351,87 @@ void POA_CORBA::Policy::copy_skel (
void POA_CORBA::Policy::destroy_skel (
CORBA::ServerRequest &_tao_server_request,
- void *_tao_object_reference,
- void * /* context */,
+ void *_tao_object_reference,
+ void * /* context */,
CORBA::Environment &ACE_TRY_ENV
)
{
POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
- _tao_impl->destroy (
- ACE_TRY_ENV
- );
+
+#if (TAO_HAS_INTERCEPTORS == 1)
+ TAO_ServerRequestInterceptor_Adapter
+ _tao_vfr (_tao_server_request.orb ()->_get_server_interceptor (ACE_TRY_ENV));
ACE_CHECK;
+ PortableInterceptor::Cookies _tao_cookies;
+ CORBA::NVList_var _tao_interceptor_args;
+ CORBA::Object_var _tao_objref;
+ if (_tao_vfr.valid ())
+ {
+ _tao_server_request.orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
+ ACE_CHECK;
+
+ _tao_objref = _tao_server_request.objref (ACE_TRY_ENV);
+ ACE_CHECK;
+ }
+
+ ACE_TRY
+ {
+ _tao_vfr.preinvoke (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "destroy",
+ _tao_server_request.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ TAO_INTERCEPTOR_CHECK;
+#endif /* TAO_HAS_INTERCEPTORS */
+
+ _tao_impl->destroy (
+ ACE_TRY_ENV
+ );
+
+ TAO_INTERCEPTOR_CHECK;
+
+#if (TAO_HAS_INTERCEPTORS == 1)
+ _tao_vfr.postinvoke (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "destroy",
+ _tao_server_request.service_info (),
+ _tao_interceptor_args.inout (),
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ TAO_INTERCEPTOR_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ _tao_vfr.exception_occurred (
+ _tao_server_request.request_id (),
+ 1,
+ _tao_objref.in (),
+ "destroy",
+ _tao_cookies,
+ ACE_TRY_ENV
+ );
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK;
+#endif /* TAO_HAS_INTERCEPTORS */
+
_tao_server_request.init_reply (ACE_TRY_ENV);
-}
+ ACE_CHECK;
+ }
void POA_CORBA::Policy::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
+ CORBA::ServerRequest &_tao_server_request,
void * _tao_object_reference,
- void * /*context*/,
+ void * /* context */,
CORBA::Environment &ACE_TRY_ENV
)
{
@@ -186,50 +439,44 @@ void POA_CORBA::Policy::_is_a_skel (
POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *) _tao_object_reference;
CORBA::Boolean _tao_retval = 0;
CORBA::String_var value;
- if (!((_tao_in >> value.out ())))
+ if (!(_tao_in >> value.out ()))
ACE_THROW (CORBA::MARSHAL ());
-
+
_tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
ACE_CHECK;
-
+
_tao_server_request.init_reply (ACE_TRY_ENV);
ACE_CHECK;
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
+ if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval)))
ACE_THROW (CORBA::MARSHAL ());
}
void POA_CORBA::Policy::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference ,
- void * /*context*/,
+ CORBA::ServerRequest &_tao_server_request,
+ void * _tao_object_reference,
+ void * /* context */,
CORBA::Environment &ACE_TRY_ENV
)
{
POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *) _tao_object_reference;
CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
ACE_CHECK;
-
+
_tao_server_request.init_reply (ACE_TRY_ENV);
ACE_CHECK;
TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
- if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
+ if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval)))
ACE_THROW (CORBA::MARSHAL ());
}
-void POA_CORBA::Policy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
-{
- this->synchronous_upcall_dispatch(req, context, this, ACE_TRY_ENV);
-}
-#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
CORBA::Boolean POA_CORBA::Policy::_is_a (
const char* value,
CORBA::Environment &ACE_TRY_ENV
)
{
if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Policy:1.0")) ||
+ (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA_Policy:1.0")) ||
(!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
return 1;
else
@@ -240,290 +487,200 @@ void* POA_CORBA::Policy::_downcast (
const char* logical_type_id
)
{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Policy:1.0") == 0)
+if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA_Policy:1.0") == 0)
return ACE_static_cast (POA_CORBA::Policy_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
+ if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
return ACE_static_cast(PortableServer::Servant, this);
return 0;
}
-const char* POA_CORBA::Policy::_interface_repository_id (void) const
-{
- return "IDL:omg.org/CORBA/Policy:1.0";
-}
-
-// ****************************************************************
-
-POA_CORBA::_tao_collocated_Policy::_tao_collocated_Policy (
- POA_CORBA::Policy_ptr servant,
- TAO_Stub *stub
- )
- : CORBA_Policy (stub, servant, 1),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-
-POA_CORBA::Policy_ptr POA_CORBA::_tao_collocated_Policy::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_CORBA::_tao_collocated_Policy::_is_a (
- const char* logical_type_id,
- CORBA::Environment &_tao_orb_environment
- )
-{
- return this->servant_->_is_a (
- logical_type_id,
- _tao_orb_environment
- );
-}
-
-CORBA::PolicyType POA_CORBA::_tao_collocated_Policy::policy_type (
- CORBA::Environment &_tao_orb_environment
- )
-{
- return this->servant_->policy_type (
- _tao_orb_environment
- );
-}
-
-CORBA::Policy_ptr POA_CORBA::_tao_collocated_Policy::copy (
- CORBA::Environment &_tao_orb_environment
- )
+void POA_CORBA::Policy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
{
- return this->servant_->copy (
- _tao_orb_environment
- );
+ TAO_Skeleton skel; // pointer to skeleton for operation
+ const char *opname = req.operation (); // retrieve operation name
+ // find the skeleton corresponding to this opname
+ if (this->_find (opname, skel, req.operation_length ()) == -1)
+ {
+ ACE_ERROR ((LM_ERROR, "Bad operation <%s>\n", opname));
+ ACE_THROW (CORBA_BAD_OPERATION ());
+ }
+ else
+ skel (req, this, context, ACE_TRY_ENV);
}
-void POA_CORBA::_tao_collocated_Policy::destroy (
- CORBA::Environment &_tao_orb_environment
- )
+const char* POA_CORBA::Policy::_interface_repository_id (void) const
{
- this->servant_->destroy (
- _tao_orb_environment
- );
+ return "IDL:omg.org/CORBA_Policy:1.0";
}
-CORBA::Policy*
+CORBA_Policy*
POA_CORBA::Policy::_this (CORBA_Environment &ACE_TRY_ENV)
{
TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
ACE_CHECK_RETURN (0);
-
- CORBA::Policy *retval = CORBA::Policy::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_CORBA::_tao_collocated_Policy (this,
- stub),
- CORBA::Policy::_nil ());
-
- return retval;
-}
-
-// ****************************************************************
-
-POA_CORBA::PolicyManager::PolicyManager (void)
-{
+ if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ())
+ switch (stub->servant_orb_var ()->orb_core ()->get_collocation_strategy ())
+ {
+ case TAO_ORB_Core::THRU_POA:
+ {
+ ::CORBA_Policy_ptr retval = 0;
+ ACE_NEW_RETURN (
+ retval,
+ POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy (stub),
+ 0
+ );
+ return retval;
+ }
+ case TAO_ORB_Core::DIRECT:
+ ACE_THROW_RETURN (CORBA::BAD_PARAM (), 0);
+ default:
+ ACE_THROW_RETURN (CORBA::BAD_PARAM (), 0);
+ }
+ else
+ {
+ // stub->_incr_refcnt ();
+ CORBA::Object_ptr tmp = CORBA::Object::_nil ();
+ ACE_NEW_RETURN (tmp, CORBA::Object (stub), 0);
+ CORBA::Object_var obj = tmp;
+ return ::CORBA_Policy::_unchecked_narrow (obj.in ());
+ }
}
-POA_CORBA::PolicyManager::PolicyManager (const PolicyManager& rhs)
- : TAO_ServantBase (rhs)
-{}
-
-POA_CORBA::PolicyManager::~PolicyManager (void)
+POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_tao_thru_poa_collocated_CORBA_Policy (
+ TAO_Stub *stub
+)
+ : CORBA_Object (stub, 0, 1)
{
}
-CORBA::Boolean POA_CORBA::PolicyManager::_is_a (
- const char* value,
- CORBA::Environment &ACE_TRY_ENV
+CORBA::Boolean POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_is_a(
+ const CORBA::Char *logical_type_id,
+ CORBA_Environment &ACE_TRY_ENV
)
-{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-void* POA_CORBA::PolicyManager::_downcast (
- const char* logical_type_id
- )
{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/PolicyManager:1.0") == 0)
- return ACE_static_cast (POA_CORBA::PolicyManager_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_CORBA::PolicyManager::_interface_repository_id (void) const
-{
- return "IDL:omg.org/CORBA/PolicyManager:1.0";
-}
-
-CORBA::PolicyManager*
-POA_CORBA::PolicyManager::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
+ TAO_Object_Adapter::Servant_Upcall servant_upcall (
+ *this->_stubobj ()->servant_orb_var ()->orb_core ()->object_adapter ()
+ );
+ servant_upcall.prepare_for_upcall (
+ this->_object_key (),
+ "_is_a",
+ ACE_TRY_ENV
+ );
ACE_CHECK_RETURN (0);
-
- CORBA::PolicyManager *retval = CORBA::PolicyManager::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_CORBA::_tao_collocated_PolicyManager (this,
- stub),
- CORBA::PolicyManager::_nil ());
-
- return retval;
+ return ACE_reinterpret_cast (
+ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+ )->_is_a (logical_type_id, ACE_TRY_ENV);
}
-POA_CORBA::_tao_collocated_PolicyManager::_tao_collocated_PolicyManager (
- POA_CORBA::PolicyManager_ptr servant,
- TAO_Stub *stub
- )
- : ACE_CORBA_1 (PolicyManager) (),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
-}
-POA_CORBA::PolicyManager_ptr POA_CORBA::_tao_collocated_PolicyManager::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_CORBA::_tao_collocated_PolicyManager::_is_a (
- const char* logical_type_id,
- CORBA::Environment &ACE_TRY_ENV
+CORBA::Boolean POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_non_existent(
+ CORBA_Environment &ACE_TRY_ENV
)
+
{
- return this->servant_->_is_a (
- logical_type_id,
+ TAO_Object_Adapter::Servant_Upcall servant_upcall (
+ *this->_stubobj ()->servant_orb_var ()->orb_core ()->object_adapter ()
+ );
+ servant_upcall.prepare_for_upcall (
+ this->_object_key (),
+ "_non_existent",
ACE_TRY_ENV
);
+ ACE_CHECK_RETURN (0);
+ return ACE_reinterpret_cast (
+ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+ )->_non_existent (ACE_TRY_ENV);
}
-CORBA::PolicyList * POA_CORBA::_tao_collocated_PolicyManager::get_policy_overrides (
- const CORBA::PolicyTypeSeq & ts,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
- return this->servant_->get_policy_overrides (
- ts,
- ACE_TRY_ENV
- );
-}
-void POA_CORBA::_tao_collocated_PolicyManager::set_policy_overrides (
- const CORBA::PolicyList & policies,
- CORBA::SetOverrideType set_add,
+CORBA::PolicyType POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::policy_type (
CORBA::Environment &ACE_TRY_ENV
)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
{
- this->servant_->set_policy_overrides (
- policies,
- set_add,
- ACE_TRY_ENV
- );
-}
-
-// ****************************************************************
-
-POA_CORBA::PolicyCurrent::PolicyCurrent (void)
-{
-}
+ CORBA::PolicyType _tao_retval = 0;
+ ACE_UNUSED_ARG (_tao_retval);
+ TAO_Object_Adapter::Servant_Upcall servant_upcall (
+ *this->_stubobj ()->servant_orb_var ()->orb_core ()->object_adapter ()
+ );
+ servant_upcall.prepare_for_upcall (
+ this->_object_key (),
+ "policy_type",
+ ACE_TRY_ENV
+ );
+ ACE_CHECK_RETURN (_tao_retval);
+ return ACE_reinterpret_cast (
+ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+ )->policy_type (
+ ACE_TRY_ENV
+ );
-// copy ctor
-POA_CORBA::PolicyCurrent::PolicyCurrent (const PolicyCurrent& rhs)
- : ACE_NESTED_CLASS (POA_CORBA,PolicyManager) (rhs),
- ACE_NESTED_CLASS (POA_CORBA,Current) (rhs),
- TAO_ServantBase (rhs)
-{}
-// skeleton destructor
-POA_CORBA::PolicyCurrent::~PolicyCurrent (void)
-{
}
-CORBA::Boolean POA_CORBA::PolicyCurrent::_is_a (
- const char* value,
+CORBA_Policy_ptr POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::copy (
CORBA::Environment &ACE_TRY_ENV
)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
{
- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyCurrent:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (ACE_TRY_ENV))))
- return 1;
- else
- return 0;
-}
-
-void* POA_CORBA::PolicyCurrent::_downcast (
- const char* logical_type_id
- )
-{
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/PolicyCurrent:1.0") == 0)
- return ACE_static_cast (POA_CORBA::PolicyCurrent_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/PolicyManager:1.0") == 0)
- return ACE_static_cast (POA_CORBA::PolicyManager_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Current:1.0") == 0)
- return ACE_static_cast (POA_CORBA::Current_ptr, this);
- if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
- return ACE_static_cast(PortableServer::Servant, this);
- return 0;
-}
-
-const char* POA_CORBA::PolicyCurrent::_interface_repository_id (void) const
-{
- return "IDL:omg.org/CORBA/PolicyCurrent:1.0";
-}
-
-CORBA::PolicyCurrent*
-POA_CORBA::PolicyCurrent::_this (CORBA_Environment &ACE_TRY_ENV)
-{
- TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
+ CORBA_Policy_var _tao_retval;
+ ACE_UNUSED_ARG (_tao_retval);
+ TAO_Object_Adapter::Servant_Upcall servant_upcall (
+ *this->_stubobj ()->servant_orb_var ()->orb_core ()->object_adapter ()
+ );
+ servant_upcall.prepare_for_upcall (
+ this->_object_key (),
+ "copy",
+ ACE_TRY_ENV
+ );
ACE_CHECK_RETURN (0);
+ return ACE_reinterpret_cast (
+ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+ )->copy (
+ ACE_TRY_ENV
+ );
- CORBA::PolicyCurrent *retval = CORBA::PolicyCurrent::_nil ();
-
- ACE_NEW_RETURN (retval,
- POA_CORBA::_tao_collocated_PolicyCurrent (this,
- stub),
- CORBA::PolicyCurrent::_nil ());
-
- return retval;
-}
-
-POA_CORBA::_tao_collocated_PolicyCurrent::_tao_collocated_PolicyCurrent (
- POA_CORBA::PolicyCurrent_ptr servant,
- TAO_Stub *stub
- )
- : ACE_CORBA_1 (PolicyCurrent) (),
- ACE_NESTED_CLASS (POA_CORBA,_tao_collocated_PolicyManager) (servant, stub),
- ACE_NESTED_CLASS (POA_CORBA,_tao_collocated_Current) (servant, stub),
- CORBA_Object (stub, servant, 1),
- servant_ (servant)
-{
}
-POA_CORBA::PolicyCurrent_ptr POA_CORBA::_tao_collocated_PolicyCurrent::_get_servant (void) const
-{
- return this->servant_;
-}
-
-CORBA::Boolean POA_CORBA::_tao_collocated_PolicyCurrent::_is_a (
- const char* logical_type_id,
+void POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::destroy (
CORBA::Environment &ACE_TRY_ENV
)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
{
- return this->servant_->_is_a (
- logical_type_id,
+ TAO_Object_Adapter::Servant_Upcall servant_upcall (
+ *this->_stubobj ()->servant_orb_var ()->orb_core ()->object_adapter ()
+ );
+ servant_upcall.prepare_for_upcall (
+ this->_object_key (),
+ "destroy",
+ ACE_TRY_ENV
+ );
+ ACE_CHECK;
+ ACE_reinterpret_cast (
+ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+ )->destroy (
ACE_TRY_ENV
);
+ return;
}
diff --git a/TAO/tao/Policy_Manager.cpp b/TAO/tao/Policy_Manager.cpp
index 2d331fd2cef..e23bf45bd52 100644
--- a/TAO/tao/Policy_Manager.cpp
+++ b/TAO/tao/Policy_Manager.cpp
@@ -1128,7 +1128,6 @@ TAO_Policy_Current::implementation (void) const
return *TAO_TSS_RESOURCES::instance ()->policy_current_;
}
-
void
TAO_Policy_Current_Impl::set_policy_overrides (
const CORBA::PolicyList & policies,
diff --git a/TAO/tao/Policy_Manager.h b/TAO/tao/Policy_Manager.h
index 378afc02187..003e27c67db 100644
--- a/TAO/tao/Policy_Manager.h
+++ b/TAO/tao/Policy_Manager.h
@@ -26,11 +26,19 @@
#if (TAO_HAS_CORBA_MESSAGING == 1)
#include "tao/POA_CORBA.h"
+#include "tao/LocalObject.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#if defined(_MSC_VER)
+#if (_MSC_VER >= 1200)
+#pragma warning(push)
+#endif /* _MSC_VER >= 1200 */
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
// Forward declarations.
class TAO_RelativeRoundtripTimeoutPolicy;
class TAO_Client_Priority_Policy;
@@ -184,7 +192,9 @@ private:
// ****************************************************************
-class TAO_Export TAO_Policy_Manager : public POA_CORBA::PolicyManager
+class TAO_Export TAO_Policy_Manager :
+ public CORBA::PolicyManager,
+ public TAO_Local_RefCounted_Object
{
public:
TAO_Policy_Manager (void);
@@ -314,7 +324,9 @@ private:
// ****************************************************************
-class TAO_Export TAO_Policy_Current : public POA_CORBA::PolicyCurrent
+class TAO_Export TAO_Policy_Current :
+ public CORBA::PolicyCurrent,
+ public TAO_Local_RefCounted_Object
{
public:
TAO_Policy_Current (void);
diff --git a/TAO/tao/PortableServer.pidl b/TAO/tao/PortableServer.pidl
new file mode 100644
index 00000000000..0075c2c9c56
--- /dev/null
+++ b/TAO/tao/PortableServer.pidl
@@ -0,0 +1,278 @@
+//
+// $Id$
+//
+// ================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// PortableServer.pidl
+//
+// = DESCRIPTION
+//
+// This file was used to generate the code in PortableServerC.{h,i,cpp}
+//
+// The command used to generate code from this file is:
+//
+// tao_idl.exe \
+// -Ge 1 \
+// -Wb,export_macro=TAO_Export \
+// -Wb,export_include="tao/corbafwd.h" \
+// -Wb,pre_include="ace/pre.h" \
+// -Wb,post_include="ace/post.h" \
+// PortableServer.pidl
+//
+// After the file is generated a patch must be applied. The patch:
+//
+// - Disables parts of the code under certain configurations.
+// - Eliminates cycles in the include dependencies.
+// - Removes the extra environment option for (a) incarnate (b)
+// etherealize (c) preinvoke and (d) postinvoke
+// - Adds non-idl components of PortableServer to the namespace.
+// This includes (a) Servant (b) ServantBase (c) RefCountServantBase
+// (d) Cookie (e) ObjectId_to_string (f) string_to_ObjectId (g)
+// ObjectId_to_wstring (h) wstring_to_ObjectId (i) ServantBase_var
+// (j) DynamicImplementation (k) LocalServantBase
+//
+//
+// ================================================================
+
+#ifndef _PORTABLESERVER_IDL_
+#define _PORTABLESERVER_IDL_
+
+#pragma prefix "omg.org"
+
+#include <orb.idl>
+
+module PortableServer {
+# pragma version PortableServer 2.3
+
+ local interface POA; // forward declaration
+ typedef sequence<POA> POAList;
+ native Servant;
+ typedef sequence<octet> ObjectId;
+ exception ForwardRequest {
+ Object forward_reference;
+ };
+
+ // Policy interfaces
+ const CORBA::PolicyType THREAD_POLICY_ID = 16;
+ const CORBA::PolicyType LIFESPAN_POLICY_ID = 17;
+ const CORBA::PolicyType ID_UNIQUENESS_POLICY_ID = 18;
+ const CORBA::PolicyType ID_ASSIGNMENT_POLICY_ID = 19;
+ const CORBA::PolicyType IMPLICIT_ACTIVATION_POLICY_ID = 20;
+ const CORBA::PolicyType SERVANT_RETENTION_POLICY_ID = 21;
+ const CORBA::PolicyType REQUEST_PROCESSING_POLICY_ID = 22;
+
+ enum ThreadPolicyValue {
+ ORB_CTRL_MODEL,
+ SINGLE_THREAD_MODEL
+ };
+ local interface ThreadPolicy : CORBA::Policy {
+ readonly attribute ThreadPolicyValue value;
+ };
+
+ enum LifespanPolicyValue {
+ TRANSIENT,
+ PERSISTENT
+ };
+ local interface LifespanPolicy : CORBA::Policy {
+ readonly attribute LifespanPolicyValue value;
+ };
+
+ enum IdUniquenessPolicyValue {
+ UNIQUE_ID,
+ MULTIPLE_ID
+ };
+ local interface IdUniquenessPolicy : CORBA::Policy {
+ readonly attribute IdUniquenessPolicyValue value;
+ };
+
+ enum IdAssignmentPolicyValue {
+ USER_ID,
+ SYSTEM_ID
+ };
+ local interface IdAssignmentPolicy : CORBA::Policy {
+ readonly attribute IdAssignmentPolicyValue value;
+ };
+
+ enum ImplicitActivationPolicyValue {
+ IMPLICIT_ACTIVATION,
+ NO_IMPLICIT_ACTIVATION
+ };
+ local interface ImplicitActivationPolicy : CORBA::Policy {
+ readonly attribute ImplicitActivationPolicyValue value;
+ };
+
+ enum ServantRetentionPolicyValue {
+ RETAIN,
+ NON_RETAIN
+ };
+ local interface ServantRetentionPolicy : CORBA::Policy {
+ readonly attribute ServantRetentionPolicyValue value;
+ };
+
+ enum RequestProcessingPolicyValue {
+ USE_ACTIVE_OBJECT_MAP_ONLY,
+ USE_DEFAULT_SERVANT,
+ USE_SERVANT_MANAGER
+ };
+ local interface RequestProcessingPolicy : CORBA::Policy {
+ readonly attribute RequestProcessingPolicyValue value;
+ };
+
+ // POAManager interface
+ local interface POAManager {
+ exception AdapterInactive{};
+ enum State {HOLDING, ACTIVE, DISCARDING, INACTIVE};
+ void activate() raises(AdapterInactive);
+ void hold_requests( in boolean wait_for_completion)
+ raises(AdapterInactive);
+ void discard_requests( in boolean wait_for_completion)
+ raises(AdapterInactive);
+ void deactivate( in boolean etherealize_objects,
+ in boolean wait_for_completion)
+ raises(AdapterInactive);
+ State get_state();
+ };
+
+ // AdapterActivator interface
+ local interface AdapterActivator {
+# pragma version AdapterActivator 2.3
+ boolean unknown_adapter(in POA parent,
+ in string name);
+ };
+
+ // ServantManager interface
+ local interface ServantManager{ };
+
+ local interface ServantActivator : ServantManager {
+# pragma version ServantActivator 2.3
+ Servant incarnate ( in ObjectId oid,
+ in POA adapter)
+ raises (ForwardRequest);
+ void etherealize ( in ObjectId oid,
+ in POA adapter,
+ in Servant serv,
+ in boolean cleanup_in_progress,
+ in boolean remaining_activations);
+ };
+
+ local interface ServantLocator : ServantManager {
+# pragma version ServantLocator 2.3
+ native Cookie;
+ Servant preinvoke( in ObjectId oid,
+ in POA adapter,
+ in CORBA::Identifier
+ operation,
+ out Cookie the_cookie)
+ raises (ForwardRequest);
+ void postinvoke( in ObjectId oid,
+ in POA adapter,
+ in CORBA::Identifier
+ operation,
+ in Cookie the_cookie,
+ in Servant the_servant );
+ };
+
+ local interface POA {
+# pragma version POA 2.3
+ exception AdapterAlreadyExists {};
+ exception AdapterNonExistent {};
+ exception InvalidPolicy {unsigned short index;};
+ exception NoServant {};
+ exception ObjectAlreadyActive {};
+ exception ObjectNotActive {};
+ exception ServantAlreadyActive {};
+ exception ServantNotActive {};
+ exception WrongAdapter {};
+ exception WrongPolicy {};
+
+ // POA creation and destruction
+ POA create_POA( in string adapter_name,
+ in POAManager a_POAManager,
+ in CORBA::PolicyList policies)
+ raises (AdapterAlreadyExists, InvalidPolicy);
+ POA find_POA( in string adapter_name,
+ in boolean activate_it)
+ raises (AdapterNonExistent);
+ void destroy( in boolean etherealize_objects,
+ in boolean wait_for_completion);
+
+ // Factories for Policy objects
+ ThreadPolicy create_thread_policy(in ThreadPolicyValue value);
+ LifespanPolicy
+ create_lifespan_policy(in LifespanPolicyValue value);
+ IdUniquenessPolicy create_id_uniqueness_policy(
+ in IdUniquenessPolicyValue value);
+ IdAssignmentPolicy create_id_assignment_policy(
+ in IdAssignmentPolicyValue value);
+ ImplicitActivationPolicy create_implicit_activation_policy(
+ in ImplicitActivationPolicyValue value);
+ ServantRetentionPolicy create_servant_retention_policy(
+ in ServantRetentionPolicyValue value);
+ RequestProcessingPolicy create_request_processing_policy(
+ in RequestProcessingPolicyValue value);
+
+ // POA attributes
+ readonly attribute string the_name;
+ readonly attribute POA the_parent;
+ readonly attribute POAList the_children;
+ readonly attribute POAManager the_POAManager;
+ attribute AdapterActivator the_activator;
+
+ // Servant Manager registration:
+ ServantManager get_servant_manager()
+ raises (WrongPolicy);
+ void set_servant_manager(in ServantManager imgr)
+ raises (WrongPolicy);
+
+ // operations for the USE_DEFAULT_SERVANT policy
+ Servant get_servant() raises (NoServant, WrongPolicy);
+ void set_servant( in Servant p_servant)
+ raises (WrongPolicy);
+
+ // object activation and deactivation
+ ObjectId activate_object(in Servant p_servant)
+ raises (ServantAlreadyActive, WrongPolicy);
+ void activate_object_with_id(in ObjectId id,
+ in Servant p_servant)
+ raises (ServantAlreadyActive,
+ ObjectAlreadyActive,
+ WrongPolicy);
+ void deactivate_object( in ObjectId oid)
+ raises (ObjectNotActive, WrongPolicy);
+
+ // reference creation operations
+ Object create_reference ( in CORBA::RepositoryId intf)
+ raises (WrongPolicy);
+ Object create_reference_with_id (
+ in ObjectId oid,
+ in CORBA::RepositoryId intf)
+ raises (WrongPolicy);
+
+ // Identity mapping operations:
+ ObjectId servant_to_id( in Servant p_servant)
+ raises (ServantNotActive, WrongPolicy);
+ Object servant_to_reference(in Servant p_servant)
+ raises (ServantNotActive, WrongPolicy);
+ Servant reference_to_servant(in Object reference)
+ raises(ObjectNotActive, WrongPolicy);
+ ObjectId reference_to_id( in Object reference)
+ raises (WrongAdapter, WrongPolicy);
+ Servant id_to_servant( in ObjectId oid)
+ raises (ObjectNotActive, WrongPolicy);
+ Object id_to_reference( in ObjectId oid)
+ raises (ObjectNotActive, WrongPolicy);
+ };
+
+ // Current interface
+ local interface Current : CORBA::Current {
+# pragma version Current 2.3
+ exception NoContext { };
+ POA get_POA() raises (NoContext);
+ ObjectId get_object_id() raises (NoContext);
+ };
+};
+#endif // _PORTABLESERVER_IDL_
diff --git a/TAO/tao/PortableServerC.cpp b/TAO/tao/PortableServerC.cpp
new file mode 100644
index 00000000000..a01a944bbc1
--- /dev/null
+++ b/TAO/tao/PortableServerC.cpp
@@ -0,0 +1,2971 @@
+/* -*- C++ -*- $Id$ */
+
+// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
+//
+// Information about TAO is available at:
+// http://www.cs.wustl.edu/~schmidt/TAO.html
+
+#include "PortableServerC.h"
+#include "tao/ORB.h"
+#include "tao/POA.h"
+
+#if !defined (__ACE_INLINE__)
+#include "PortableServerC.i"
+#endif /* !defined INLINE */
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CS_)
+#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CS_
+
+ // The Base_Sequence functions, please see tao/Sequence.h
+ void
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_allocate_buffer (CORBA::ULong length)
+ {
+ PortableServer::POA **tmp = 0;
+ tmp = _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (length);
+
+ if (this->buffer_ != 0)
+ {
+ PortableServer::POA **old = ACE_reinterpret_cast (PortableServer::POA**, this->buffer_);
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ if (!this->release_)
+ tmp[i] = PortableServer::POA::_duplicate (old[i]);
+ else
+ tmp[i] = old[i];
+
+ if (this->release_)
+ delete[] old;
+
+ }
+ this->buffer_ = tmp;
+ }
+
+ void
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_deallocate_buffer (void)
+ {
+ if (this->buffer_ == 0 || this->release_ == 0)
+ return;
+ PortableServer::POA **tmp = ACE_reinterpret_cast (PortableServer::POA**, this->buffer_);
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ {
+ CORBA::release (tmp[i]);
+ tmp[i] = PortableServer::POA::_nil ();
+ }
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList::freebuf (tmp);
+ this->buffer_ = 0;
+ }
+
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::~_TAO_Unbounded_Object_Sequence_PortableServer_POAList (void)
+ {
+ this->_deallocate_buffer ();
+ }
+
+ void
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_shrink_buffer (CORBA::ULong nl, CORBA::ULong ol)
+ {
+ PortableServer::POA **tmp = ACE_reinterpret_cast (PortableServer::POA**, this->buffer_);
+
+ for (CORBA::ULong i = nl; i < ol; ++i)
+ {
+ CORBA::release (tmp[i]);
+ tmp[i] = PortableServer::POA::_nil ();
+ }
+ }
+ void
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_downcast (
+ void* target,
+ CORBA_Object *src,
+ CORBA_Environment &ACE_TRY_ENV
+ )
+ {
+ PortableServer::POA **tmp = ACE_static_cast (PortableServer::POA**, target);
+ *tmp = PortableServer::POA::_narrow (src, ACE_TRY_ENV);
+ }
+
+ CORBA_Object*
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_upcast (void *src) const
+ {
+ PortableServer::POA **tmp = ACE_static_cast (PortableServer::POA**, src);
+ return *tmp;
+ }
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_PORTABLESERVER_POALIST_CS_)
+#define _PORTABLESERVER_POALIST_CS_
+
+// *************************************************************
+// PortableServer::POAList
+// *************************************************************
+
+PortableServer::POAList::POAList (void)
+{}
+PortableServer::POAList::POAList (CORBA::ULong max) // uses max size
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<PortableServer::POA,PortableServer::POA_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max)
+{}
+PortableServer::POAList::POAList (CORBA::ULong max, CORBA::ULong length, PortableServer::POA_ptr *buffer, CORBA::Boolean release)
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<PortableServer::POA,PortableServer::POA_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max, length, buffer, release)
+{}
+PortableServer::POAList::POAList (const POAList &seq) // copy ctor
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<PortableServer::POA,PortableServer::POA_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (seq)
+{}
+PortableServer::POAList::~POAList (void) // dtor
+{}
+void PortableServer::POAList::_tao_any_destructor (void *x)
+{
+ POAList *tmp = ACE_static_cast (POAList*,x);
+ delete tmp;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_OBJECTID_CS_)
+#define _PORTABLESERVER_OBJECTID_CS_
+
+// *************************************************************
+// PortableServer::ObjectId
+// *************************************************************
+
+PortableServer::ObjectId::ObjectId (void)
+{}
+PortableServer::ObjectId::ObjectId (CORBA::ULong max) // uses max size
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max)
+{}
+PortableServer::ObjectId::ObjectId (CORBA::ULong max, CORBA::ULong length, CORBA::Octet *buffer, CORBA::Boolean release)
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (max, length, buffer, release)
+{}
+PortableServer::ObjectId::ObjectId (const ObjectId &seq) // copy ctor
+ :
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ (seq)
+{}
+PortableServer::ObjectId::~ObjectId (void) // dtor
+{}
+void PortableServer::ObjectId::_tao_any_destructor (void *x)
+{
+ ObjectId *tmp = ACE_static_cast (ObjectId*,x);
+ delete tmp;
+}
+
+
+#endif /* end #if !defined */
+
+static const CORBA::Long _oc_PortableServer_ObjectId[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 32, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f4f), ACE_NTOHL (0x626a6563), ACE_NTOHL (0x7449643a), ACE_NTOHL (0x312e3000), // repository ID = IDL:PortableServer/ObjectId:1.0
+ 9, ACE_NTOHL (0x4f626a65), ACE_NTOHL (0x63744964), ACE_NTOHL (0x0), // name = ObjectId
+ CORBA::tk_sequence, // typecode kind
+ 12, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ CORBA::tk_octet,
+
+ 0U,
+
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_ObjectId (CORBA::tk_alias, sizeof (_oc_PortableServer_ObjectId), (char *) &_oc_PortableServer_ObjectId, 0, sizeof (PortableServer::ObjectId));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ObjectId, &_tc_TAO_tc_PortableServer_ObjectId)
+TAO_NAMESPACE_END
+
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+
+// default constructor
+PortableServer::ForwardRequest::ForwardRequest (void)
+ : CORBA_UserException (::PortableServer::_tc_ForwardRequest)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::ForwardRequest::~ForwardRequest (void)
+{
+}
+
+void PortableServer::ForwardRequest::_tao_any_destructor (void *x)
+{
+ ForwardRequest *tmp = ACE_static_cast (ForwardRequest*,x);
+ delete tmp;
+}
+
+// copy constructor
+PortableServer::ForwardRequest::ForwardRequest (const ::PortableServer::ForwardRequest &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ());
+}
+
+// assignment operator
+PortableServer::ForwardRequest&
+PortableServer::ForwardRequest::operator= (const ::PortableServer::ForwardRequest &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ());
+ return *this;
+}
+
+// narrow
+PortableServer::ForwardRequest *
+PortableServer::ForwardRequest::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/ForwardRequest:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (ForwardRequest *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::ForwardRequest::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::ForwardRequest::_tao_encode (
+ TAO_OutputCDR &cdr,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ if (cdr << *this)
+ return;
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::ForwardRequest::_tao_decode (
+ TAO_InputCDR &cdr,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ if (cdr >> *this)
+ return;
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::ForwardRequest::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::ForwardRequest, 0);
+ return retval;
+}
+
+PortableServer::ForwardRequest::ForwardRequest (
+ const CORBA::Object_ptr _tao_forward_reference
+)
+ : CORBA_UserException (CORBA::TypeCode::_duplicate (PortableServer::_tc_ForwardRequest))
+{
+ this->forward_reference = CORBA::Object::_duplicate (_tao_forward_reference);
+}
+
+static const CORBA::Long _oc_PortableServer_ForwardRequest[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f46), ACE_NTOHL (0x6f727761), ACE_NTOHL (0x72645265), ACE_NTOHL (0x71756573), ACE_NTOHL (0x743a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:PortableServer/ForwardRequest:1.0
+ 15, ACE_NTOHL (0x466f7277), ACE_NTOHL (0x61726452), ACE_NTOHL (0x65717565), ACE_NTOHL (0x73740000), // name = ForwardRequest
+ 1, // member count
+ 18, ACE_NTOHL (0x666f7277), ACE_NTOHL (0x6172645f), ACE_NTOHL (0x72656665), ACE_NTOHL (0x72656e63), ACE_NTOHL (0x65000000), // name = forward_reference
+ CORBA::tk_objref,
+ 52, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 29, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f4f62), ACE_NTOHL (0x6a656374), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/Object:1.0
+ 7, ACE_NTOHL (0x4f626a65), ACE_NTOHL (0x63740000), // name = Object
+
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_ForwardRequest (CORBA::tk_except, sizeof (_oc_PortableServer_ForwardRequest), (char *) &_oc_PortableServer_ForwardRequest, 0, sizeof (PortableServer::ForwardRequest));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ForwardRequest, &_tc_TAO_tc_PortableServer_ForwardRequest)
+TAO_NAMESPACE_END
+
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+TAO_NAMESPACE_TYPE (const CORBA::ULong)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (const CORBA::ULong, THREAD_POLICY_ID, 16U)
+TAO_NAMESPACE_END
+TAO_NAMESPACE_TYPE (const CORBA::ULong)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (const CORBA::ULong, LIFESPAN_POLICY_ID, 17U)
+TAO_NAMESPACE_END
+TAO_NAMESPACE_TYPE (const CORBA::ULong)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (const CORBA::ULong, ID_UNIQUENESS_POLICY_ID, 18U)
+TAO_NAMESPACE_END
+TAO_NAMESPACE_TYPE (const CORBA::ULong)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (const CORBA::ULong, ID_ASSIGNMENT_POLICY_ID, 19U)
+TAO_NAMESPACE_END
+TAO_NAMESPACE_TYPE (const CORBA::ULong)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (const CORBA::ULong, IMPLICIT_ACTIVATION_POLICY_ID, 20U)
+TAO_NAMESPACE_END
+TAO_NAMESPACE_TYPE (const CORBA::ULong)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (const CORBA::ULong, SERVANT_RETENTION_POLICY_ID, 21U)
+TAO_NAMESPACE_END
+TAO_NAMESPACE_TYPE (const CORBA::ULong)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (const CORBA::ULong, REQUEST_PROCESSING_POLICY_ID, 22U)
+TAO_NAMESPACE_END
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+static const CORBA::Long _oc_PortableServer_ThreadPolicyValue[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 41, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f54), ACE_NTOHL (0x68726561), ACE_NTOHL (0x64506f6c), ACE_NTOHL (0x69637956), ACE_NTOHL (0x616c7565), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:PortableServer/ThreadPolicyValue:1.0
+ 18, ACE_NTOHL (0x54687265), ACE_NTOHL (0x6164506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x56616c75), ACE_NTOHL (0x65000000), // name = ThreadPolicyValue
+ 2, // member count
+ 15, ACE_NTOHL (0x4f52425f), ACE_NTOHL (0x4354524c), ACE_NTOHL (0x5f4d4f44), ACE_NTOHL (0x454c0000), // name = ORB_CTRL_MODEL
+ 20, ACE_NTOHL (0x53494e47), ACE_NTOHL (0x4c455f54), ACE_NTOHL (0x48524541), ACE_NTOHL (0x445f4d4f), ACE_NTOHL (0x44454c00), // name = SINGLE_THREAD_MODEL
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_ThreadPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_ThreadPolicyValue), (char *) &_oc_PortableServer_ThreadPolicyValue, 0, sizeof (PortableServer::ThreadPolicyValue));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ThreadPolicyValue, &_tc_TAO_tc_PortableServer_ThreadPolicyValue)
+TAO_NAMESPACE_END
+
+// default constructor
+PortableServer::ThreadPolicy::ThreadPolicy (void)
+{}
+
+// destructor
+PortableServer::ThreadPolicy::~ThreadPolicy (void)
+{}
+
+PortableServer::ThreadPolicy_ptr PortableServer::ThreadPolicy::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return ThreadPolicy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::ThreadPolicy_ptr PortableServer::ThreadPolicy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return ThreadPolicy::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ ThreadPolicy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &ThreadPolicy::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::ThreadPolicy_ptr
+PortableServer::ThreadPolicy::_duplicate (ThreadPolicy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::ThreadPolicy::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ThreadPolicy)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Policy::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Policy_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::ThreadPolicy::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/ThreadPolicy:1.0";
+}
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+static const CORBA::Long _oc_PortableServer_LifespanPolicyValue[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 43, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f4c), ACE_NTOHL (0x69666573), ACE_NTOHL (0x70616e50), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:PortableServer/LifespanPolicyValue:1.0
+ 20, ACE_NTOHL (0x4c696665), ACE_NTOHL (0x7370616e), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = LifespanPolicyValue
+ 2, // member count
+ 10, ACE_NTOHL (0x5452414e), ACE_NTOHL (0x5349454e), ACE_NTOHL (0x54000000), // name = TRANSIENT
+ 11, ACE_NTOHL (0x50455253), ACE_NTOHL (0x49535445), ACE_NTOHL (0x4e540000), // name = PERSISTENT
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_LifespanPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_LifespanPolicyValue), (char *) &_oc_PortableServer_LifespanPolicyValue, 0, sizeof (PortableServer::LifespanPolicyValue));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_LifespanPolicyValue, &_tc_TAO_tc_PortableServer_LifespanPolicyValue)
+TAO_NAMESPACE_END
+
+// default constructor
+PortableServer::LifespanPolicy::LifespanPolicy (void)
+{}
+
+// destructor
+PortableServer::LifespanPolicy::~LifespanPolicy (void)
+{}
+
+PortableServer::LifespanPolicy_ptr PortableServer::LifespanPolicy::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return LifespanPolicy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::LifespanPolicy_ptr PortableServer::LifespanPolicy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return LifespanPolicy::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ LifespanPolicy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &LifespanPolicy::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::LifespanPolicy_ptr
+PortableServer::LifespanPolicy::_duplicate (LifespanPolicy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::LifespanPolicy::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, LifespanPolicy)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Policy::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Policy_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::LifespanPolicy::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/LifespanPolicy:1.0";
+}
+
+static const CORBA::Long _oc_PortableServer_IdUniquenessPolicyValue[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 47, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x64556e69), ACE_NTOHL (0x7175656e), ACE_NTOHL (0x65737350), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:PortableServer/IdUniquenessPolicyValue:1.0
+ 24, ACE_NTOHL (0x4964556e), ACE_NTOHL (0x69717565), ACE_NTOHL (0x6e657373), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = IdUniquenessPolicyValue
+ 2, // member count
+ 10, ACE_NTOHL (0x554e4951), ACE_NTOHL (0x55455f49), ACE_NTOHL (0x44000000), // name = UNIQUE_ID
+ 12, ACE_NTOHL (0x4d554c54), ACE_NTOHL (0x49504c45), ACE_NTOHL (0x5f494400), // name = MULTIPLE_ID
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_IdUniquenessPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_IdUniquenessPolicyValue), (char *) &_oc_PortableServer_IdUniquenessPolicyValue, 0, sizeof (PortableServer::IdUniquenessPolicyValue));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IdUniquenessPolicyValue, &_tc_TAO_tc_PortableServer_IdUniquenessPolicyValue)
+TAO_NAMESPACE_END
+
+// default constructor
+PortableServer::IdUniquenessPolicy::IdUniquenessPolicy (void)
+{}
+
+// destructor
+PortableServer::IdUniquenessPolicy::~IdUniquenessPolicy (void)
+{}
+
+PortableServer::IdUniquenessPolicy_ptr PortableServer::IdUniquenessPolicy::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return IdUniquenessPolicy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::IdUniquenessPolicy_ptr PortableServer::IdUniquenessPolicy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return IdUniquenessPolicy::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ IdUniquenessPolicy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &IdUniquenessPolicy::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::IdUniquenessPolicy_ptr
+PortableServer::IdUniquenessPolicy::_duplicate (IdUniquenessPolicy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::IdUniquenessPolicy::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, IdUniquenessPolicy)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Policy::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Policy_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::IdUniquenessPolicy::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/IdUniquenessPolicy:1.0";
+}
+
+static const CORBA::Long _oc_PortableServer_IdAssignmentPolicyValue[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 47, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x64417373), ACE_NTOHL (0x69676e6d), ACE_NTOHL (0x656e7450), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:PortableServer/IdAssignmentPolicyValue:1.0
+ 24, ACE_NTOHL (0x49644173), ACE_NTOHL (0x7369676e), ACE_NTOHL (0x6d656e74), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = IdAssignmentPolicyValue
+ 2, // member count
+ 8, ACE_NTOHL (0x55534552), ACE_NTOHL (0x5f494400), // name = USER_ID
+ 10, ACE_NTOHL (0x53595354), ACE_NTOHL (0x454d5f49), ACE_NTOHL (0x44000000), // name = SYSTEM_ID
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_IdAssignmentPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_IdAssignmentPolicyValue), (char *) &_oc_PortableServer_IdAssignmentPolicyValue, 0, sizeof (PortableServer::IdAssignmentPolicyValue));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IdAssignmentPolicyValue, &_tc_TAO_tc_PortableServer_IdAssignmentPolicyValue)
+TAO_NAMESPACE_END
+
+// default constructor
+PortableServer::IdAssignmentPolicy::IdAssignmentPolicy (void)
+{}
+
+// destructor
+PortableServer::IdAssignmentPolicy::~IdAssignmentPolicy (void)
+{}
+
+PortableServer::IdAssignmentPolicy_ptr PortableServer::IdAssignmentPolicy::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return IdAssignmentPolicy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::IdAssignmentPolicy_ptr PortableServer::IdAssignmentPolicy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return IdAssignmentPolicy::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ IdAssignmentPolicy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &IdAssignmentPolicy::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::IdAssignmentPolicy_ptr
+PortableServer::IdAssignmentPolicy::_duplicate (IdAssignmentPolicy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::IdAssignmentPolicy::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, IdAssignmentPolicy)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Policy::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Policy_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::IdAssignmentPolicy::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/IdAssignmentPolicy:1.0";
+}
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicyValue[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 53, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f49), ACE_NTOHL (0x6d706c69), ACE_NTOHL (0x63697441), ACE_NTOHL (0x63746976), ACE_NTOHL (0x6174696f), ACE_NTOHL (0x6e506f6c), ACE_NTOHL (0x69637956), ACE_NTOHL (0x616c7565), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:PortableServer/ImplicitActivationPolicyValue:1.0
+ 30, ACE_NTOHL (0x496d706c), ACE_NTOHL (0x69636974), ACE_NTOHL (0x41637469), ACE_NTOHL (0x76617469), ACE_NTOHL (0x6f6e506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x56616c75), ACE_NTOHL (0x65000000), // name = ImplicitActivationPolicyValue
+ 2, // member count
+ 20, ACE_NTOHL (0x494d504c), ACE_NTOHL (0x49434954), ACE_NTOHL (0x5f414354), ACE_NTOHL (0x49564154), ACE_NTOHL (0x494f4e00), // name = IMPLICIT_ACTIVATION
+ 23, ACE_NTOHL (0x4e4f5f49), ACE_NTOHL (0x4d504c49), ACE_NTOHL (0x4349545f), ACE_NTOHL (0x41435449), ACE_NTOHL (0x56415449), ACE_NTOHL (0x4f4e0000), // name = NO_IMPLICIT_ACTIVATION
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_ImplicitActivationPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_ImplicitActivationPolicyValue), (char *) &_oc_PortableServer_ImplicitActivationPolicyValue, 0, sizeof (PortableServer::ImplicitActivationPolicyValue));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ImplicitActivationPolicyValue, &_tc_TAO_tc_PortableServer_ImplicitActivationPolicyValue)
+TAO_NAMESPACE_END
+
+// default constructor
+PortableServer::ImplicitActivationPolicy::ImplicitActivationPolicy (void)
+{}
+
+// destructor
+PortableServer::ImplicitActivationPolicy::~ImplicitActivationPolicy (void)
+{}
+
+PortableServer::ImplicitActivationPolicy_ptr PortableServer::ImplicitActivationPolicy::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return ImplicitActivationPolicy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::ImplicitActivationPolicy_ptr PortableServer::ImplicitActivationPolicy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return ImplicitActivationPolicy::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ ImplicitActivationPolicy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &ImplicitActivationPolicy::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::ImplicitActivationPolicy_ptr
+PortableServer::ImplicitActivationPolicy::_duplicate (ImplicitActivationPolicy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::ImplicitActivationPolicy::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ImplicitActivationPolicy)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Policy::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Policy_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::ImplicitActivationPolicy::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/ImplicitActivationPolicy:1.0";
+}
+
+static const CORBA::Long _oc_PortableServer_ServantRetentionPolicyValue[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 51, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f53), ACE_NTOHL (0x65727661), ACE_NTOHL (0x6e745265), ACE_NTOHL (0x74656e74), ACE_NTOHL (0x696f6e50), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x7956616c), ACE_NTOHL (0x75653a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:PortableServer/ServantRetentionPolicyValue:1.0
+ 28, ACE_NTOHL (0x53657276), ACE_NTOHL (0x616e7452), ACE_NTOHL (0x6574656e), ACE_NTOHL (0x74696f6e), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c756500), // name = ServantRetentionPolicyValue
+ 2, // member count
+ 7, ACE_NTOHL (0x52455441), ACE_NTOHL (0x494e0000), // name = RETAIN
+ 11, ACE_NTOHL (0x4e4f4e5f), ACE_NTOHL (0x52455441), ACE_NTOHL (0x494e0000), // name = NON_RETAIN
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_ServantRetentionPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_ServantRetentionPolicyValue), (char *) &_oc_PortableServer_ServantRetentionPolicyValue, 0, sizeof (PortableServer::ServantRetentionPolicyValue));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ServantRetentionPolicyValue, &_tc_TAO_tc_PortableServer_ServantRetentionPolicyValue)
+TAO_NAMESPACE_END
+
+// default constructor
+PortableServer::ServantRetentionPolicy::ServantRetentionPolicy (void)
+{}
+
+// destructor
+PortableServer::ServantRetentionPolicy::~ServantRetentionPolicy (void)
+{}
+
+PortableServer::ServantRetentionPolicy_ptr PortableServer::ServantRetentionPolicy::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return ServantRetentionPolicy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::ServantRetentionPolicy_ptr PortableServer::ServantRetentionPolicy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return ServantRetentionPolicy::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ ServantRetentionPolicy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &ServantRetentionPolicy::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::ServantRetentionPolicy_ptr
+PortableServer::ServantRetentionPolicy::_duplicate (ServantRetentionPolicy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::ServantRetentionPolicy::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ServantRetentionPolicy)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Policy::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Policy_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::ServantRetentionPolicy::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/ServantRetentionPolicy:1.0";
+}
+
+static const CORBA::Long _oc_PortableServer_RequestProcessingPolicyValue[] =
+{
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 52, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x506f7274), ACE_NTOHL (0x61626c65), ACE_NTOHL (0x53657276), ACE_NTOHL (0x65722f52), ACE_NTOHL (0x65717565), ACE_NTOHL (0x73745072), ACE_NTOHL (0x6f636573), ACE_NTOHL (0x73696e67), ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795661), ACE_NTOHL (0x6c75653a), ACE_NTOHL (0x312e3000), // repository ID = IDL:PortableServer/RequestProcessingPolicyValue:1.0
+ 29, ACE_NTOHL (0x52657175), ACE_NTOHL (0x65737450), ACE_NTOHL (0x726f6365), ACE_NTOHL (0x7373696e), ACE_NTOHL (0x67506f6c), ACE_NTOHL (0x69637956), ACE_NTOHL (0x616c7565), ACE_NTOHL (0x0), // name = RequestProcessingPolicyValue
+ 3, // member count
+ 27, ACE_NTOHL (0x5553455f), ACE_NTOHL (0x41435449), ACE_NTOHL (0x56455f4f), ACE_NTOHL (0x424a4543), ACE_NTOHL (0x545f4d41), ACE_NTOHL (0x505f4f4e), ACE_NTOHL (0x4c590000), // name = USE_ACTIVE_OBJECT_MAP_ONLY
+ 20, ACE_NTOHL (0x5553455f), ACE_NTOHL (0x44454641), ACE_NTOHL (0x554c545f), ACE_NTOHL (0x53455256), ACE_NTOHL (0x414e5400), // name = USE_DEFAULT_SERVANT
+ 20, ACE_NTOHL (0x5553455f), ACE_NTOHL (0x53455256), ACE_NTOHL (0x414e545f), ACE_NTOHL (0x4d414e41), ACE_NTOHL (0x47455200), // name = USE_SERVANT_MANAGER
+};
+static CORBA::TypeCode _tc_TAO_tc_PortableServer_RequestProcessingPolicyValue (CORBA::tk_enum, sizeof (_oc_PortableServer_RequestProcessingPolicyValue), (char *) &_oc_PortableServer_RequestProcessingPolicyValue, 0, sizeof (PortableServer::RequestProcessingPolicyValue));
+TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_BEGIN (PortableServer)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_RequestProcessingPolicyValue, &_tc_TAO_tc_PortableServer_RequestProcessingPolicyValue)
+TAO_NAMESPACE_END
+
+// default constructor
+PortableServer::RequestProcessingPolicy::RequestProcessingPolicy (void)
+{}
+
+// destructor
+PortableServer::RequestProcessingPolicy::~RequestProcessingPolicy (void)
+{}
+
+PortableServer::RequestProcessingPolicy_ptr PortableServer::RequestProcessingPolicy::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return RequestProcessingPolicy::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::RequestProcessingPolicy_ptr PortableServer::RequestProcessingPolicy::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return RequestProcessingPolicy::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ RequestProcessingPolicy_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &RequestProcessingPolicy::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::RequestProcessingPolicy_ptr
+PortableServer::RequestProcessingPolicy::_duplicate (RequestProcessingPolicy_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::RequestProcessingPolicy::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, RequestProcessingPolicy)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Policy::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Policy_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::RequestProcessingPolicy::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/RequestProcessingPolicy:1.0";
+}
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+// default constructor
+PortableServer::POAManager::POAManager (void)
+{}
+
+// destructor
+PortableServer::POAManager::~POAManager (void)
+{}
+
+PortableServer::POAManager_ptr PortableServer::POAManager::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return POAManager::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::POAManager_ptr PortableServer::POAManager::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return POAManager::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ POAManager_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &POAManager::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::POAManager_ptr
+PortableServer::POAManager::_duplicate (POAManager_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+// default constructor
+PortableServer::POAManager::AdapterInactive::AdapterInactive (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POAManager::AdapterInactive::~AdapterInactive (void)
+{
+}
+
+// copy constructor
+PortableServer::POAManager::AdapterInactive::AdapterInactive (const ::PortableServer::POAManager::AdapterInactive &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POAManager::AdapterInactive&
+PortableServer::POAManager::AdapterInactive::operator= (const ::PortableServer::POAManager::AdapterInactive &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POAManager::AdapterInactive *
+PortableServer::POAManager::AdapterInactive::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POAManager/AdapterInactive:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (AdapterInactive *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POAManager::AdapterInactive::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POAManager::AdapterInactive::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POAManager::AdapterInactive::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POAManager::AdapterInactive::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POAManager::AdapterInactive, 0);
+ return retval;
+}
+
+void *PortableServer::POAManager::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, POAManager)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::POAManager::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/POAManager:1.0";
+}
+
+
+// default constructor
+PortableServer::AdapterActivator::AdapterActivator (void)
+{}
+
+// destructor
+PortableServer::AdapterActivator::~AdapterActivator (void)
+{}
+
+PortableServer::AdapterActivator_ptr PortableServer::AdapterActivator::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return AdapterActivator::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::AdapterActivator_ptr PortableServer::AdapterActivator::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return AdapterActivator::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ AdapterActivator_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &AdapterActivator::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::AdapterActivator_ptr
+PortableServer::AdapterActivator::_duplicate (AdapterActivator_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::AdapterActivator::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, AdapterActivator)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::AdapterActivator::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/AdapterActivator:1.0";
+}
+
+
+// default constructor
+PortableServer::ServantManager::ServantManager (void)
+{}
+
+// destructor
+PortableServer::ServantManager::~ServantManager (void)
+{}
+
+PortableServer::ServantManager_ptr PortableServer::ServantManager::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return ServantManager::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::ServantManager_ptr PortableServer::ServantManager::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return ServantManager::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ ServantManager_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &ServantManager::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::ServantManager_ptr
+PortableServer::ServantManager::_duplicate (ServantManager_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::ServantManager::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ServantManager)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::ServantManager::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/ServantManager:1.0";
+}
+
+
+// default constructor
+PortableServer::ServantActivator::ServantActivator (void)
+{}
+
+// destructor
+PortableServer::ServantActivator::~ServantActivator (void)
+{}
+
+PortableServer::ServantActivator_ptr PortableServer::ServantActivator::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return ServantActivator::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::ServantActivator_ptr PortableServer::ServantActivator::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return ServantActivator::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ ServantActivator_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &ServantActivator::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::ServantActivator_ptr
+PortableServer::ServantActivator::_duplicate (ServantActivator_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::ServantActivator::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ServantActivator)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ServantManager)::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ PortableServer::ServantManager_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::ServantActivator::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/ServantActivator:1.0";
+}
+
+
+// default constructor
+PortableServer::ServantLocator::ServantLocator (void)
+{}
+
+// destructor
+PortableServer::ServantLocator::~ServantLocator (void)
+{}
+
+PortableServer::ServantLocator_ptr PortableServer::ServantLocator::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return ServantLocator::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::ServantLocator_ptr PortableServer::ServantLocator::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return ServantLocator::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ ServantLocator_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &ServantLocator::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::ServantLocator_ptr
+PortableServer::ServantLocator::_duplicate (ServantLocator_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+void *PortableServer::ServantLocator::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ServantLocator)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, ServantManager)::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ PortableServer::ServantManager_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::ServantLocator::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/ServantLocator:1.0";
+}
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+// default constructor
+PortableServer::POA::POA (void)
+{}
+
+// destructor
+PortableServer::POA::~POA (void)
+{}
+
+PortableServer::POA_ptr PortableServer::POA::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return POA::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::POA_ptr PortableServer::POA::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return POA::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ POA_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &POA::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::POA_ptr
+PortableServer::POA::_duplicate (POA_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+// default constructor
+PortableServer::POA::AdapterAlreadyExists::AdapterAlreadyExists (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::AdapterAlreadyExists::~AdapterAlreadyExists (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::AdapterAlreadyExists::AdapterAlreadyExists (const ::PortableServer::POA::AdapterAlreadyExists &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::AdapterAlreadyExists&
+PortableServer::POA::AdapterAlreadyExists::operator= (const ::PortableServer::POA::AdapterAlreadyExists &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::AdapterAlreadyExists *
+PortableServer::POA::AdapterAlreadyExists::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/AdapterAlreadyExists:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (AdapterAlreadyExists *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::AdapterAlreadyExists::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::AdapterAlreadyExists::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::AdapterAlreadyExists::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::AdapterAlreadyExists::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::AdapterAlreadyExists, 0);
+ return retval;
+}
+
+// default constructor
+PortableServer::POA::AdapterNonExistent::AdapterNonExistent (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::AdapterNonExistent::~AdapterNonExistent (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::AdapterNonExistent::AdapterNonExistent (const ::PortableServer::POA::AdapterNonExistent &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::AdapterNonExistent&
+PortableServer::POA::AdapterNonExistent::operator= (const ::PortableServer::POA::AdapterNonExistent &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::AdapterNonExistent *
+PortableServer::POA::AdapterNonExistent::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/AdapterNonExistent:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (AdapterNonExistent *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::AdapterNonExistent::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::AdapterNonExistent::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::AdapterNonExistent::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::AdapterNonExistent::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::AdapterNonExistent, 0);
+ return retval;
+}
+
+// default constructor
+PortableServer::POA::InvalidPolicy::InvalidPolicy (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::InvalidPolicy::~InvalidPolicy (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::InvalidPolicy::InvalidPolicy (const ::PortableServer::POA::InvalidPolicy &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ this->index = _tao_excp.index;
+}
+
+// assignment operator
+PortableServer::POA::InvalidPolicy&
+PortableServer::POA::InvalidPolicy::operator= (const ::PortableServer::POA::InvalidPolicy &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ this->index = _tao_excp.index;
+ return *this;
+}
+
+// narrow
+PortableServer::POA::InvalidPolicy *
+PortableServer::POA::InvalidPolicy::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/InvalidPolicy:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (InvalidPolicy *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::InvalidPolicy::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::InvalidPolicy::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::InvalidPolicy::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::InvalidPolicy::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::InvalidPolicy, 0);
+ return retval;
+}
+
+PortableServer::POA::InvalidPolicy::InvalidPolicy (
+ CORBA::UShort _tao_index
+)
+{
+ this->index = _tao_index;
+}
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+// default constructor
+PortableServer::POA::NoServant::NoServant (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::NoServant::~NoServant (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::NoServant::NoServant (const ::PortableServer::POA::NoServant &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::NoServant&
+PortableServer::POA::NoServant::operator= (const ::PortableServer::POA::NoServant &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::NoServant *
+PortableServer::POA::NoServant::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/NoServant:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (NoServant *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::NoServant::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::NoServant::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::NoServant::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::NoServant::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::NoServant, 0);
+ return retval;
+}
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+// default constructor
+PortableServer::POA::ObjectAlreadyActive::ObjectAlreadyActive (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::ObjectAlreadyActive::~ObjectAlreadyActive (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::ObjectAlreadyActive::ObjectAlreadyActive (const ::PortableServer::POA::ObjectAlreadyActive &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::ObjectAlreadyActive&
+PortableServer::POA::ObjectAlreadyActive::operator= (const ::PortableServer::POA::ObjectAlreadyActive &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::ObjectAlreadyActive *
+PortableServer::POA::ObjectAlreadyActive::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ObjectAlreadyActive:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (ObjectAlreadyActive *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::ObjectAlreadyActive::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::ObjectAlreadyActive::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::ObjectAlreadyActive::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::ObjectAlreadyActive::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::ObjectAlreadyActive, 0);
+ return retval;
+}
+
+// default constructor
+PortableServer::POA::ObjectNotActive::ObjectNotActive (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::ObjectNotActive::~ObjectNotActive (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::ObjectNotActive::ObjectNotActive (const ::PortableServer::POA::ObjectNotActive &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::ObjectNotActive&
+PortableServer::POA::ObjectNotActive::operator= (const ::PortableServer::POA::ObjectNotActive &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::ObjectNotActive *
+PortableServer::POA::ObjectNotActive::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ObjectNotActive:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (ObjectNotActive *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::ObjectNotActive::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::ObjectNotActive::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::ObjectNotActive::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::ObjectNotActive::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::ObjectNotActive, 0);
+ return retval;
+}
+
+// default constructor
+PortableServer::POA::ServantAlreadyActive::ServantAlreadyActive (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::ServantAlreadyActive::~ServantAlreadyActive (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::ServantAlreadyActive::ServantAlreadyActive (const ::PortableServer::POA::ServantAlreadyActive &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::ServantAlreadyActive&
+PortableServer::POA::ServantAlreadyActive::operator= (const ::PortableServer::POA::ServantAlreadyActive &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::ServantAlreadyActive *
+PortableServer::POA::ServantAlreadyActive::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ServantAlreadyActive:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (ServantAlreadyActive *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::ServantAlreadyActive::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::ServantAlreadyActive::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::ServantAlreadyActive::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::ServantAlreadyActive::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::ServantAlreadyActive, 0);
+ return retval;
+}
+
+// default constructor
+PortableServer::POA::ServantNotActive::ServantNotActive (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::ServantNotActive::~ServantNotActive (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::ServantNotActive::ServantNotActive (const ::PortableServer::POA::ServantNotActive &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::ServantNotActive&
+PortableServer::POA::ServantNotActive::operator= (const ::PortableServer::POA::ServantNotActive &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::ServantNotActive *
+PortableServer::POA::ServantNotActive::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/ServantNotActive:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (ServantNotActive *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::ServantNotActive::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::ServantNotActive::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::ServantNotActive::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::ServantNotActive::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::ServantNotActive, 0);
+ return retval;
+}
+
+// default constructor
+PortableServer::POA::WrongAdapter::WrongAdapter (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::WrongAdapter::~WrongAdapter (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::WrongAdapter::WrongAdapter (const ::PortableServer::POA::WrongAdapter &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::WrongAdapter&
+PortableServer::POA::WrongAdapter::operator= (const ::PortableServer::POA::WrongAdapter &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::WrongAdapter *
+PortableServer::POA::WrongAdapter::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/WrongAdapter:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (WrongAdapter *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::WrongAdapter::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::WrongAdapter::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::WrongAdapter::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::WrongAdapter::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::WrongAdapter, 0);
+ return retval;
+}
+
+// default constructor
+PortableServer::POA::WrongPolicy::WrongPolicy (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::POA::WrongPolicy::~WrongPolicy (void)
+{
+}
+
+// copy constructor
+PortableServer::POA::WrongPolicy::WrongPolicy (const ::PortableServer::POA::WrongPolicy &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::POA::WrongPolicy&
+PortableServer::POA::WrongPolicy::operator= (const ::PortableServer::POA::WrongPolicy &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::POA::WrongPolicy *
+PortableServer::POA::WrongPolicy::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/POA/WrongPolicy:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (WrongPolicy *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::POA::WrongPolicy::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::POA::WrongPolicy::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::POA::WrongPolicy::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::POA::WrongPolicy::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::POA::WrongPolicy, 0);
+ return retval;
+}
+
+void *PortableServer::POA::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, POA)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::POA::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/POA:1.0";
+}
+
+
+// default constructor
+PortableServer::Current::Current (void)
+{}
+
+// destructor
+PortableServer::Current::~Current (void)
+{}
+
+PortableServer::Current_ptr PortableServer::Current::_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+{
+ return Current::_unchecked_narrow (obj, ACE_TRY_ENV);
+}
+
+PortableServer::Current_ptr PortableServer::Current::_unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &
+ )
+{
+ if (CORBA::is_nil (obj))
+ return Current::_nil ();
+ return
+ ACE_reinterpret_cast
+ (
+ Current_ptr,
+ obj->_tao_QueryInterface
+ (
+ ACE_reinterpret_cast
+ (
+ ptr_arith_t,
+ &Current::_narrow
+ )
+ )
+ );
+}
+
+PortableServer::Current_ptr
+PortableServer::Current::_duplicate (Current_ptr obj)
+{
+ if (!CORBA::is_nil (obj))
+ obj->_add_ref ();
+ return obj;
+}
+
+// default constructor
+PortableServer::Current::NoContext::NoContext (void)
+{
+}
+
+// destructor - all members are of self managing types
+PortableServer::Current::NoContext::~NoContext (void)
+{
+}
+
+// copy constructor
+PortableServer::Current::NoContext::NoContext (const ::PortableServer::Current::NoContext &_tao_excp)
+ : CORBA_UserException (_tao_excp._type ())
+{
+ }
+
+// assignment operator
+PortableServer::Current::NoContext&
+PortableServer::Current::NoContext::operator= (const ::PortableServer::Current::NoContext &_tao_excp)
+{
+
+ this->CORBA_UserException::operator= (_tao_excp);
+ return *this;
+}
+
+// narrow
+PortableServer::Current::NoContext *
+PortableServer::Current::NoContext::_downcast (CORBA::Exception *exc)
+{
+ if (!ACE_OS::strcmp ("IDL:PortableServer/Current/NoContext:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (NoContext *, exc);
+ else
+ return 0;
+}
+
+
+void PortableServer::Current::NoContext::_raise ()
+{
+ TAO_RAISE(*this);
+}
+
+
+void PortableServer::Current::NoContext::_tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &ACE_TRY_ENV) const
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+
+void PortableServer::Current::NoContext::_tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ ACE_THROW (CORBA::MARSHAL ());
+}
+
+// TAO extension - the _alloc method
+CORBA::Exception *PortableServer::Current::NoContext::_alloc (void)
+{
+ CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::PortableServer::Current::NoContext, 0);
+ return retval;
+}
+
+void *PortableServer::Current::_tao_QueryInterface (ptr_arith_t type)
+{
+ void *retv = 0;
+ if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &ACE_NESTED_CLASS (::PortableServer, Current)::_narrow))
+ retv = ACE_reinterpret_cast (void*, this);
+ else if (type == ACE_reinterpret_cast
+ (ptr_arith_t,
+ &::CORBA::Current::_narrow))
+ retv = ACE_reinterpret_cast
+ (
+ void *,
+ ACE_static_cast
+ (
+ CORBA::Current_ptr,
+ this
+ )
+ );
+ else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
+ retv = ACE_reinterpret_cast (void *,
+ ACE_static_cast (CORBA::Object_ptr, this));
+
+ if (retv)
+ this->_add_ref ();
+ return retv;
+}
+
+const char* PortableServer::Current::_interface_repository_id (void) const
+{
+ return "IDL:PortableServer/Current:1.0";
+}
+
+char *
+PortableServer::ObjectId_to_string (const PortableServer::ObjectId &id)
+{
+ return TAO_POA::ObjectId_to_string (id);
+}
+
+CORBA::WChar *
+PortableServer::ObjectId_to_wstring (const PortableServer::ObjectId &id)
+{
+ return TAO_POA::ObjectId_to_wstring (id);
+}
+
+PortableServer::ObjectId *
+PortableServer::string_to_ObjectId (const char *id)
+{
+ return TAO_POA::string_to_ObjectId (id);
+}
+
+PortableServer::ObjectId *
+PortableServer::wstring_to_ObjectId (const CORBA::WChar *id)
+{
+ return TAO_POA::wstring_to_ObjectId (id);
+}
+
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const PortableServer::ObjectId &_tao_elem
+ ) // copying
+{
+ TAO_OutputCDR stream;
+ if (stream << _tao_elem)
+ {
+ _tao_any._tao_replace (
+ PortableServer::_tc_ObjectId,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+ }
+}
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::ObjectId *_tao_elem) // non copying
+{
+ TAO_OutputCDR stream;
+ stream << *_tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_ObjectId,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin (),
+ 1,
+ _tao_elem,
+ PortableServer::ObjectId::_tao_any_destructor
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ObjectId *&_tao_elem)
+{
+ return _tao_any >>= ACE_const_cast(
+ const PortableServer::ObjectId*&,
+ _tao_elem
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::ObjectId *&_tao_elem)
+{
+ _tao_elem = 0;
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_ObjectId, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ if (_tao_any.any_owns_data ())
+ {
+ _tao_elem = ACE_static_cast(
+ const PortableServer::ObjectId*,
+ _tao_any.value ()
+ );
+ return 1;
+ }
+ else
+ {
+ PortableServer::ObjectId *tmp;
+ ACE_NEW_RETURN (tmp, PortableServer::ObjectId, 0);
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> *tmp)
+ {
+ ((CORBA::Any *)&_tao_any)->_tao_replace (
+ PortableServer::_tc_ObjectId,
+ 1,
+ ACE_static_cast (void *, tmp),
+ PortableServer::ObjectId::_tao_any_destructor
+ );
+ _tao_elem = tmp;
+ return 1;
+ }
+ else
+ {
+ delete tmp;
+ }
+ }
+ }
+ ACE_CATCHANY
+ {
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+
+void operator<<= (CORBA::Any &_tao_any, const PortableServer::ForwardRequest &_tao_elem) // copying
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_ForwardRequest,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::ForwardRequest *_tao_elem) // non copying
+{
+ TAO_OutputCDR stream;
+ stream << *_tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_ForwardRequest,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin (),
+ 1,
+ _tao_elem,
+ PortableServer::ForwardRequest::_tao_any_destructor
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ForwardRequest *&_tao_elem)
+{
+ return _tao_any >>= ACE_const_cast(
+ const PortableServer::ForwardRequest*&,
+ _tao_elem
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const PortableServer::ForwardRequest *&_tao_elem)
+{
+ _tao_elem = 0;
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_ForwardRequest, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ if (_tao_any.any_owns_data ())
+ {
+ _tao_elem = (PortableServer::ForwardRequest *)_tao_any.value ();
+ return 1;
+ }
+ else
+ {
+ PortableServer::ForwardRequest *tmp;
+ ACE_NEW_RETURN (tmp, PortableServer::ForwardRequest, 0);
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ CORBA::String_var interface_repository_id;
+ if (!(stream >> interface_repository_id.out ()))
+ return 0;
+ if (ACE_OS::strcmp (
+ interface_repository_id.in (),
+ "IDL:PortableServer/ForwardRequest:1.0"))
+ return 0;
+ if (stream >> *tmp)
+ {
+ ((CORBA::Any *)&_tao_any)->_tao_replace (
+ PortableServer::_tc_ForwardRequest,
+ 1,
+ tmp,
+ PortableServer::ForwardRequest::_tao_any_destructor
+ );
+ _tao_elem = tmp;
+ return 1;
+ }
+ else
+ {
+ delete tmp;
+ }
+ }
+ }
+ ACE_CATCHANY
+ {
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::ThreadPolicyValue _tao_elem)
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_ThreadPolicyValue,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ThreadPolicyValue &_tao_elem)
+{
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_ThreadPolicyValue, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
+ {
+ return 1;
+ }
+ }
+ ACE_CATCHANY
+ {
+ return 0;
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::ThreadPolicy,PortableServer::ThreadPolicy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::ThreadPolicy,PortableServer::ThreadPolicy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::LifespanPolicyValue _tao_elem)
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_LifespanPolicyValue,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::LifespanPolicyValue &_tao_elem)
+{
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_LifespanPolicyValue, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
+ {
+ return 1;
+ }
+ }
+ ACE_CATCHANY
+ {
+ return 0;
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::LifespanPolicy,PortableServer::LifespanPolicy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::LifespanPolicy,PortableServer::LifespanPolicy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::IdUniquenessPolicyValue _tao_elem)
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_IdUniquenessPolicyValue,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::IdUniquenessPolicyValue &_tao_elem)
+{
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_IdUniquenessPolicyValue, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
+ {
+ return 1;
+ }
+ }
+ ACE_CATCHANY
+ {
+ return 0;
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::IdUniquenessPolicy,PortableServer::IdUniquenessPolicy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::IdUniquenessPolicy,PortableServer::IdUniquenessPolicy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::IdAssignmentPolicyValue _tao_elem)
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_IdAssignmentPolicyValue,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::IdAssignmentPolicyValue &_tao_elem)
+{
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_IdAssignmentPolicyValue, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
+ {
+ return 1;
+ }
+ }
+ ACE_CATCHANY
+ {
+ return 0;
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::IdAssignmentPolicy,PortableServer::IdAssignmentPolicy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::IdAssignmentPolicy,PortableServer::IdAssignmentPolicy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::ImplicitActivationPolicyValue _tao_elem)
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_ImplicitActivationPolicyValue,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ImplicitActivationPolicyValue &_tao_elem)
+{
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_ImplicitActivationPolicyValue, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
+ {
+ return 1;
+ }
+ }
+ ACE_CATCHANY
+ {
+ return 0;
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::ImplicitActivationPolicy,PortableServer::ImplicitActivationPolicy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::ImplicitActivationPolicy,PortableServer::ImplicitActivationPolicy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::ServantRetentionPolicyValue _tao_elem)
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_ServantRetentionPolicyValue,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::ServantRetentionPolicyValue &_tao_elem)
+{
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_ServantRetentionPolicyValue, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
+ {
+ return 1;
+ }
+ }
+ ACE_CATCHANY
+ {
+ return 0;
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::ServantRetentionPolicy,PortableServer::ServantRetentionPolicy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::ServantRetentionPolicy,PortableServer::ServantRetentionPolicy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+void operator<<= (CORBA::Any &_tao_any, PortableServer::RequestProcessingPolicyValue _tao_elem)
+{
+ TAO_OutputCDR stream;
+ stream << _tao_elem;
+ _tao_any._tao_replace (
+ PortableServer::_tc_RequestProcessingPolicyValue,
+ TAO_ENCAP_BYTE_ORDER,
+ stream.begin ()
+ );
+}
+
+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, PortableServer::RequestProcessingPolicyValue &_tao_elem)
+{
+ ACE_TRY_NEW_ENV
+ {
+ CORBA::TypeCode_var type = _tao_any.type ();
+ if (!type->equivalent (PortableServer::_tc_RequestProcessingPolicyValue, ACE_TRY_ENV)) // not equal
+ {
+ return 0;
+ }
+ ACE_TRY_CHECK;
+ TAO_InputCDR stream (
+ _tao_any._tao_get_cdr (),
+ _tao_any._tao_byte_order ()
+ );
+ if (stream >> _tao_elem)
+ {
+ return 1;
+ }
+ }
+ ACE_CATCHANY
+ {
+ return 0;
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::RequestProcessingPolicy,PortableServer::RequestProcessingPolicy_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::RequestProcessingPolicy,PortableServer::RequestProcessingPolicy_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::POAManager,PortableServer::POAManager_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::POAManager,PortableServer::POAManager_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::AdapterActivator,PortableServer::AdapterActivator_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::AdapterActivator,PortableServer::AdapterActivator_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::ServantManager,PortableServer::ServantManager_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::ServantManager,PortableServer::ServantManager_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::ServantActivator,PortableServer::ServantActivator_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::ServantActivator,PortableServer::ServantActivator_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::ServantLocator,PortableServer::ServantLocator_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::ServantLocator,PortableServer::ServantLocator_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::Current,PortableServer::Current_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<PortableServer::Current,PortableServer::Current_var>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const PortableServer::ObjectId &_tao_sequence
+ )
+{
+ if (strm << _tao_sequence.length ())
+ {
+ // encode all elements
+
+#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
+ {
+ TAO_Unbounded_Sequence<CORBA::Octet> *oseq =
+ ACE_static_cast (TAO_Unbounded_Sequence<CORBA::Octet>*, (PortableServer::ObjectId *)&_tao_sequence);
+ if (oseq->mb ())
+ return strm.write_octet_array_mb (oseq->mb ());
+ else
+ return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
+ }
+
+#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
+ return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
+
+#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
+ }
+ return 0; // error
+}
+
+CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ PortableServer::ObjectId &_tao_sequence
+ )
+{
+ CORBA::ULong _tao_seq_len;
+ if (strm >> _tao_seq_len)
+ {
+ // set the length of the sequence
+ _tao_sequence.length (_tao_seq_len);
+ // If length is 0 we return true.
+ if (0 >= _tao_seq_len)
+ return 1;
+ // retrieve all the elements
+
+#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
+ if (ACE_BIT_DISABLED (strm.start ()->flags (),ACE_Message_Block::DONT_DELETE))
+ {
+ TAO_Unbounded_Sequence<CORBA::Octet> *oseq =
+ ACE_static_cast(TAO_Unbounded_Sequence<CORBA::Octet>*, &_tao_sequence);
+ oseq->replace (_tao_seq_len, strm.start ());
+ oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len);
+ strm.skip_bytes (_tao_seq_len);
+ return 1;
+ }
+ else
+ return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len);
+
+#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
+ return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
+
+#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
+ }
+ return 0; // error
+}
+
diff --git a/TAO/tao/PortableServerC.h b/TAO/tao/PortableServerC.h
new file mode 100644
index 00000000000..1fc4911ce66
--- /dev/null
+++ b/TAO/tao/PortableServerC.h
@@ -0,0 +1,3182 @@
+/* -*- C++ -*- $Id$ */
+
+// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
+//
+// Information about TAO is available at:
+// http://www.cs.wustl.edu/~schmidt/TAO.html
+
+#ifndef _TAO_IDL_PORTABLESERVERC_H_
+#define _TAO_IDL_PORTABLESERVERC_H_
+
+#include "ace/pre.h"
+#include "tao/corbafwd.h"
+
+#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
+#include "ace/streams.h"
+#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/CurrentC.h"
+#include "tao/PolicyC.h"
+#include "tao/Typecode.h"
+#include "tao/Any.h"
+
+#if defined (TAO_EXPORT_MACRO)
+#undef TAO_EXPORT_MACRO
+#endif
+#define TAO_EXPORT_MACRO TAO_Export
+
+#if defined (TAO_EXPORT_NESTED_CLASSES)
+# if defined (TAO_EXPORT_NESTED_MACRO)
+# undef TAO_EXPORT_NESTED_MACRO
+# endif /* defined (TAO_EXPORT_NESTED_MACRO) */
+# define TAO_EXPORT_NESTED_MACRO TAO_Export
+#endif /* TAO_EXPORT_NESTED_CLASSES */
+
+#if defined(_MSC_VER)
+#if (_MSC_VER >= 1200)
+#pragma warning(push)
+#endif /* _MSC_VER >= 1200 */
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+class TAO_ServantBase;
+class TAO_ServantBase_var;
+class TAO_RefCountServantBase;
+class TAO_Local_ServantBase;
+class TAO_DynamicImplementation;
+
+TAO_NAMESPACE PortableServer
+{
+ typedef TAO_ServantBase ServantBase;
+ typedef TAO_ServantBase_var ServantBase_var;
+ typedef TAO_RefCountServantBase RefCountServantBase;
+ typedef ServantBase *Servant;
+
+ typedef TAO_Local_ServantBase LocalServantBase;
+ typedef TAO_DynamicImplementation DynamicImplementation;
+
+ class POA;
+
+#if !defined (_PORTABLESERVER_POA___PTR_CH_)
+#define _PORTABLESERVER_POA___PTR_CH_
+
+typedef POA *POA_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA___VAR_CH_)
+#define _PORTABLESERVER_POA___VAR_CH_
+
+ class TAO_Export POA_var : public TAO_Base_var
+ {
+ public:
+ POA_var (void); // default constructor
+ POA_var (POA_ptr p) : ptr_ (p) {}
+ POA_var (const POA_var &); // copy constructor
+ ~POA_var (void); // destructor
+
+ POA_var &operator= (POA_ptr);
+ POA_var &operator= (const POA_var &);
+ POA_ptr operator-> (void) const;
+
+ operator const POA_ptr &() const;
+ operator POA_ptr &();
+ // in, inout, out, _retn
+ POA_ptr in (void) const;
+ POA_ptr &inout (void);
+ POA_ptr &out (void);
+ POA_ptr _retn (void);
+ POA_ptr ptr (void) const;
+
+ private:
+ POA_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ POA_var (const TAO_Base_var &rhs);
+ POA_var &operator= (const TAO_Base_var &rhs);
+ };
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA___OUT_CH_)
+#define _PORTABLESERVER_POA___OUT_CH_
+
+ class TAO_Export POA_out
+ {
+ public:
+ POA_out (POA_ptr &);
+ POA_out (POA_var &);
+ POA_out (const POA_out &);
+ POA_out &operator= (const POA_out &);
+ POA_out &operator= (const POA_var &);
+ POA_out &operator= (POA_ptr);
+ operator POA_ptr &();
+ POA_ptr &ptr (void);
+ POA_ptr operator-> (void);
+
+ private:
+ POA_ptr &ptr_;
+ };
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CH_)
+#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CH_
+
+ class _TAO_Unbounded_Object_Sequence_PortableServer_POAList : public TAO_Unbounded_Base_Sequence
+ {
+ public:
+ // = Initialization and termination methods.
+
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList (void);
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList (CORBA::ULong maximum);
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList (CORBA::ULong maximum,
+ CORBA::ULong length,
+ POA* *value,
+ CORBA::Boolean release = 0);
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList(const _TAO_Unbounded_Object_Sequence_PortableServer_POAList &rhs);
+ virtual ~_TAO_Unbounded_Object_Sequence_PortableServer_POAList (void);
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList &operator= (const _TAO_Unbounded_Object_Sequence_PortableServer_POAList &rhs);
+ TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var> operator[] (CORBA::ULong index) const;
+ static POA **allocbuf (CORBA::ULong nelems);
+ static void freebuf (POA **buffer);
+ // The Base_Sequence functions, please see tao/Sequence.h
+ virtual void _allocate_buffer (CORBA::ULong length);
+ virtual void _deallocate_buffer (void);
+ POA* *get_buffer (CORBA::Boolean orphan = 0);
+ const POA* *get_buffer (void) const;
+ virtual void _shrink_buffer (CORBA::ULong nl, CORBA::ULong ol);
+ virtual void _downcast (
+ void* target,
+ CORBA_Object *src,
+ CORBA_Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ virtual CORBA_Object* _upcast (void *src) const;
+
+ };
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_PORTABLESERVER_POALIST_CH_)
+#define _PORTABLESERVER_POALIST_CH_
+
+ class POAList;
+ class POAList_var;
+
+ // *************************************************************
+ // POAList
+ // *************************************************************
+
+ class TAO_Export POAList : public
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Object_Sequence<POA,POA_var>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ {
+ public:
+ POAList (void); // default ctor
+ POAList (CORBA::ULong max); // uses max size
+ POAList (
+ CORBA::ULong max,
+ CORBA::ULong length,
+ POA_ptr *buffer,
+ CORBA::Boolean release=0
+ );
+ POAList (const POAList &); // copy ctor
+ ~POAList (void);
+ static void _tao_any_destructor (void*);
+
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef POAList_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ };
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POALIST___VAR_CH_)
+#define _PORTABLESERVER_POALIST___VAR_CH_
+
+ // *************************************************************
+ // class PortableServer::POAList_var
+ // *************************************************************
+
+ class TAO_Export POAList_var
+ {
+ public:
+ POAList_var (void); // default constructor
+ POAList_var (POAList *);
+ POAList_var (const POAList_var &); // copy constructor
+ ~POAList_var (void); // destructor
+
+ POAList_var &operator= (POAList *);
+ POAList_var &operator= (const POAList_var &);
+ POAList *operator-> (void);
+ const POAList *operator-> (void) const;
+
+ operator const POAList &() const;
+ operator POAList &();
+ operator POAList &() const;
+ operator POAList *&(); // variable-size base types only
+
+ TAO_Object_Manager<POA, POA_var> operator[] (CORBA::ULong index);
+ // in, inout, out, _retn
+ const POAList &in (void) const;
+ POAList &inout (void);
+ POAList *&out (void);
+ POAList *_retn (void);
+ POAList *ptr (void) const;
+
+ private:
+ POAList *ptr_;
+ };
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POALIST___OUT_CH_)
+#define _PORTABLESERVER_POALIST___OUT_CH_
+
+ class TAO_Export POAList_out
+ {
+ public:
+ POAList_out (POAList *&);
+ POAList_out (POAList_var &);
+ POAList_out (const POAList_out &);
+ POAList_out &operator= (const POAList_out &);
+ POAList_out &operator= (POAList *);
+ operator POAList *&();
+ POAList *&ptr (void);
+ POAList *operator-> (void);
+ TAO_Object_Manager<POA, POA_var> operator[] (CORBA::ULong index);
+
+ private:
+ POAList *&ptr_;
+ // assignment from T_var not allowed
+ void operator= (const POAList_var &);
+ };
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_OBJECTID_CH_)
+#define _PORTABLESERVER_OBJECTID_CH_
+
+ class ObjectId;
+ class ObjectId_var;
+
+ // *************************************************************
+ // ObjectId
+ // *************************************************************
+
+ class TAO_Export ObjectId : public
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#else /* TAO_USE_SEQUENCE_TEMPLATES */
+ TAO_Unbounded_Sequence<CORBA::Octet>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ {
+ public:
+ ObjectId (void); // default ctor
+ ObjectId (CORBA::ULong max); // uses max size
+ ObjectId (
+ CORBA::ULong max,
+ CORBA::ULong length,
+ CORBA::Octet *buffer,
+ CORBA::Boolean release=0
+ );
+ ObjectId (const ObjectId &); // copy ctor
+ ~ObjectId (void);
+ static void _tao_any_destructor (void*);
+
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ObjectId_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+
+#if defined(TAO_NO_COPY_OCTET_SEQUENCES)
+ ObjectId (
+ CORBA::ULong length,
+ const ACE_Message_Block* mb
+ )
+ : TAO_Unbounded_Sequence<CORBA::Octet> (length, mb) {}
+#endif /* TAO_NO_COPY_OCTET_SEQUENCE */
+
+ };
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_OBJECTID___VAR_CH_)
+#define _PORTABLESERVER_OBJECTID___VAR_CH_
+
+ // *************************************************************
+ // class PortableServer::ObjectId_var
+ // *************************************************************
+
+ class TAO_Export ObjectId_var
+ {
+ public:
+ ObjectId_var (void); // default constructor
+ ObjectId_var (ObjectId *);
+ ObjectId_var (const ObjectId_var &); // copy constructor
+ ObjectId_var (const ObjectId &); // fixed-size base types only
+ ~ObjectId_var (void); // destructor
+
+ ObjectId_var &operator= (ObjectId *);
+ ObjectId_var &operator= (const ObjectId_var &);
+ ObjectId_var &operator= (const ObjectId &); // fixed-size base types only
+ ObjectId *operator-> (void);
+ const ObjectId *operator-> (void) const;
+
+ operator const ObjectId &() const;
+ operator ObjectId &();
+ operator ObjectId &() const;
+
+ CORBA::Octet &operator[] (CORBA::ULong index);
+ // in, inout, out, _retn
+ const ObjectId &in (void) const;
+ ObjectId &inout (void);
+ ObjectId *&out (void);
+ ObjectId *_retn (void);
+ ObjectId *ptr (void) const;
+
+ private:
+ ObjectId *ptr_;
+ };
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_OBJECTID___OUT_CH_)
+#define _PORTABLESERVER_OBJECTID___OUT_CH_
+
+ class TAO_Export ObjectId_out
+ {
+ public:
+ ObjectId_out (ObjectId *&);
+ ObjectId_out (ObjectId_var &);
+ ObjectId_out (const ObjectId_out &);
+ ObjectId_out &operator= (const ObjectId_out &);
+ ObjectId_out &operator= (ObjectId *);
+ operator ObjectId *&();
+ ObjectId *&ptr (void);
+ ObjectId *operator-> (void);
+ CORBA::Octet &operator[] (CORBA::ULong index);
+
+ private:
+ ObjectId *&ptr_;
+ // assignment from T_var not allowed
+ void operator= (const ObjectId_var &);
+ };
+
+
+#endif /* end #if !defined */
+
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ObjectId;
+
+
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+
+#if !defined (_PORTABLESERVER_FORWARDREQUEST_CH_)
+#define _PORTABLESERVER_FORWARDREQUEST_CH_
+
+ class TAO_Export ForwardRequest : public CORBA::UserException
+ {
+ public:
+
+ CORBA::Object_var forward_reference;
+
+ ForwardRequest (void); // default ctor
+ ForwardRequest (const ForwardRequest &); // copy ctor
+ ~ForwardRequest (void);
+ static void _tao_any_destructor (void*);
+ ForwardRequest &operator= (const ForwardRequest &);
+
+
+ virtual void _raise (void);
+
+ virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+ virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+ static ForwardRequest *_downcast (CORBA::Exception *);
+
+ ForwardRequest (
+ const CORBA::Object_ptr _tao_forward_reference
+ );
+
+ // = TAO extension
+ static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::ForwardRequest
+
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ForwardRequest;
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong THREAD_POLICY_ID;
+
+TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong LIFESPAN_POLICY_ID;
+
+TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong ID_UNIQUENESS_POLICY_ID;
+
+TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong ID_ASSIGNMENT_POLICY_ID;
+
+TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong IMPLICIT_ACTIVATION_POLICY_ID;
+
+TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong SERVANT_RETENTION_POLICY_ID;
+
+TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong REQUEST_PROCESSING_POLICY_ID;
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+enum ThreadPolicyValue
+{
+ ORB_CTRL_MODEL,
+ SINGLE_THREAD_MODEL,
+ ThreadPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+typedef ThreadPolicyValue &ThreadPolicyValue_out;
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ThreadPolicyValue;
+
+
+#if !defined (_PORTABLESERVER_THREADPOLICY___PTR_CH_)
+#define _PORTABLESERVER_THREADPOLICY___PTR_CH_
+
+class ThreadPolicy;
+typedef ThreadPolicy *ThreadPolicy_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_THREADPOLICY___VAR_CH_)
+#define _PORTABLESERVER_THREADPOLICY___VAR_CH_
+
+class TAO_Export ThreadPolicy_var : public TAO_Base_var
+{
+public:
+ ThreadPolicy_var (void); // default constructor
+ ThreadPolicy_var (ThreadPolicy_ptr p) : ptr_ (p) {}
+ ThreadPolicy_var (const ThreadPolicy_var &); // copy constructor
+ ~ThreadPolicy_var (void); // destructor
+
+ ThreadPolicy_var &operator= (ThreadPolicy_ptr);
+ ThreadPolicy_var &operator= (const ThreadPolicy_var &);
+ ThreadPolicy_ptr operator-> (void) const;
+
+ operator const ThreadPolicy_ptr &() const;
+ operator ThreadPolicy_ptr &();
+ // in, inout, out, _retn
+ ThreadPolicy_ptr in (void) const;
+ ThreadPolicy_ptr &inout (void);
+ ThreadPolicy_ptr &out (void);
+ ThreadPolicy_ptr _retn (void);
+ ThreadPolicy_ptr ptr (void) const;
+
+private:
+ ThreadPolicy_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ ThreadPolicy_var (const TAO_Base_var &rhs);
+ ThreadPolicy_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_THREADPOLICY___OUT_CH_)
+#define _PORTABLESERVER_THREADPOLICY___OUT_CH_
+
+class TAO_Export ThreadPolicy_out
+{
+public:
+ ThreadPolicy_out (ThreadPolicy_ptr &);
+ ThreadPolicy_out (ThreadPolicy_var &);
+ ThreadPolicy_out (const ThreadPolicy_out &);
+ ThreadPolicy_out &operator= (const ThreadPolicy_out &);
+ ThreadPolicy_out &operator= (const ThreadPolicy_var &);
+ ThreadPolicy_out &operator= (ThreadPolicy_ptr);
+ operator ThreadPolicy_ptr &();
+ ThreadPolicy_ptr &ptr (void);
+ ThreadPolicy_ptr operator-> (void);
+
+private:
+ ThreadPolicy_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_THREADPOLICY_CH_)
+#define _PORTABLESERVER_THREADPOLICY_CH_
+
+class TAO_Export ThreadPolicy: public virtual CORBA::Policy
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ThreadPolicy_ptr _ptr_type;
+ typedef ThreadPolicy_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static ThreadPolicy_ptr _duplicate (ThreadPolicy_ptr obj);
+ static ThreadPolicy_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ThreadPolicy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ThreadPolicy_ptr _nil (void)
+ {
+ return (ThreadPolicy_ptr)0;
+ }
+
+ virtual PortableServer::ThreadPolicyValue value (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ ThreadPolicy (void);
+ virtual ~ThreadPolicy (void);
+private:
+ ThreadPolicy (const ThreadPolicy &);
+ void operator= (const ThreadPolicy &);
+};
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+enum LifespanPolicyValue
+{
+ TRANSIENT,
+ PERSISTENT,
+ LifespanPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+typedef LifespanPolicyValue &LifespanPolicyValue_out;
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_LifespanPolicyValue;
+
+
+#if !defined (_PORTABLESERVER_LIFESPANPOLICY___PTR_CH_)
+#define _PORTABLESERVER_LIFESPANPOLICY___PTR_CH_
+
+class LifespanPolicy;
+typedef LifespanPolicy *LifespanPolicy_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_LIFESPANPOLICY___VAR_CH_)
+#define _PORTABLESERVER_LIFESPANPOLICY___VAR_CH_
+
+class TAO_Export LifespanPolicy_var : public TAO_Base_var
+{
+public:
+ LifespanPolicy_var (void); // default constructor
+ LifespanPolicy_var (LifespanPolicy_ptr p) : ptr_ (p) {}
+ LifespanPolicy_var (const LifespanPolicy_var &); // copy constructor
+ ~LifespanPolicy_var (void); // destructor
+
+ LifespanPolicy_var &operator= (LifespanPolicy_ptr);
+ LifespanPolicy_var &operator= (const LifespanPolicy_var &);
+ LifespanPolicy_ptr operator-> (void) const;
+
+ operator const LifespanPolicy_ptr &() const;
+ operator LifespanPolicy_ptr &();
+ // in, inout, out, _retn
+ LifespanPolicy_ptr in (void) const;
+ LifespanPolicy_ptr &inout (void);
+ LifespanPolicy_ptr &out (void);
+ LifespanPolicy_ptr _retn (void);
+ LifespanPolicy_ptr ptr (void) const;
+
+private:
+ LifespanPolicy_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ LifespanPolicy_var (const TAO_Base_var &rhs);
+ LifespanPolicy_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_LIFESPANPOLICY___OUT_CH_)
+#define _PORTABLESERVER_LIFESPANPOLICY___OUT_CH_
+
+class TAO_Export LifespanPolicy_out
+{
+public:
+ LifespanPolicy_out (LifespanPolicy_ptr &);
+ LifespanPolicy_out (LifespanPolicy_var &);
+ LifespanPolicy_out (const LifespanPolicy_out &);
+ LifespanPolicy_out &operator= (const LifespanPolicy_out &);
+ LifespanPolicy_out &operator= (const LifespanPolicy_var &);
+ LifespanPolicy_out &operator= (LifespanPolicy_ptr);
+ operator LifespanPolicy_ptr &();
+ LifespanPolicy_ptr &ptr (void);
+ LifespanPolicy_ptr operator-> (void);
+
+private:
+ LifespanPolicy_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_LIFESPANPOLICY_CH_)
+#define _PORTABLESERVER_LIFESPANPOLICY_CH_
+
+class TAO_Export LifespanPolicy: public virtual CORBA::Policy
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef LifespanPolicy_ptr _ptr_type;
+ typedef LifespanPolicy_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static LifespanPolicy_ptr _duplicate (LifespanPolicy_ptr obj);
+ static LifespanPolicy_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static LifespanPolicy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static LifespanPolicy_ptr _nil (void)
+ {
+ return (LifespanPolicy_ptr)0;
+ }
+
+ virtual PortableServer::LifespanPolicyValue value (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ LifespanPolicy (void);
+ virtual ~LifespanPolicy (void);
+private:
+ LifespanPolicy (const LifespanPolicy &);
+ void operator= (const LifespanPolicy &);
+};
+
+
+#endif /* end #if !defined */
+
+enum IdUniquenessPolicyValue
+{
+ UNIQUE_ID,
+ MULTIPLE_ID,
+ IdUniquenessPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+typedef IdUniquenessPolicyValue &IdUniquenessPolicyValue_out;
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IdUniquenessPolicyValue;
+
+
+#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___PTR_CH_)
+#define _PORTABLESERVER_IDUNIQUENESSPOLICY___PTR_CH_
+
+class IdUniquenessPolicy;
+typedef IdUniquenessPolicy *IdUniquenessPolicy_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CH_)
+#define _PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CH_
+
+class TAO_Export IdUniquenessPolicy_var : public TAO_Base_var
+{
+public:
+ IdUniquenessPolicy_var (void); // default constructor
+ IdUniquenessPolicy_var (IdUniquenessPolicy_ptr p) : ptr_ (p) {}
+ IdUniquenessPolicy_var (const IdUniquenessPolicy_var &); // copy constructor
+ ~IdUniquenessPolicy_var (void); // destructor
+
+ IdUniquenessPolicy_var &operator= (IdUniquenessPolicy_ptr);
+ IdUniquenessPolicy_var &operator= (const IdUniquenessPolicy_var &);
+ IdUniquenessPolicy_ptr operator-> (void) const;
+
+ operator const IdUniquenessPolicy_ptr &() const;
+ operator IdUniquenessPolicy_ptr &();
+ // in, inout, out, _retn
+ IdUniquenessPolicy_ptr in (void) const;
+ IdUniquenessPolicy_ptr &inout (void);
+ IdUniquenessPolicy_ptr &out (void);
+ IdUniquenessPolicy_ptr _retn (void);
+ IdUniquenessPolicy_ptr ptr (void) const;
+
+private:
+ IdUniquenessPolicy_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ IdUniquenessPolicy_var (const TAO_Base_var &rhs);
+ IdUniquenessPolicy_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CH_)
+#define _PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CH_
+
+class TAO_Export IdUniquenessPolicy_out
+{
+public:
+ IdUniquenessPolicy_out (IdUniquenessPolicy_ptr &);
+ IdUniquenessPolicy_out (IdUniquenessPolicy_var &);
+ IdUniquenessPolicy_out (const IdUniquenessPolicy_out &);
+ IdUniquenessPolicy_out &operator= (const IdUniquenessPolicy_out &);
+ IdUniquenessPolicy_out &operator= (const IdUniquenessPolicy_var &);
+ IdUniquenessPolicy_out &operator= (IdUniquenessPolicy_ptr);
+ operator IdUniquenessPolicy_ptr &();
+ IdUniquenessPolicy_ptr &ptr (void);
+ IdUniquenessPolicy_ptr operator-> (void);
+
+private:
+ IdUniquenessPolicy_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY_CH_)
+#define _PORTABLESERVER_IDUNIQUENESSPOLICY_CH_
+
+class TAO_Export IdUniquenessPolicy: public virtual CORBA::Policy
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef IdUniquenessPolicy_ptr _ptr_type;
+ typedef IdUniquenessPolicy_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static IdUniquenessPolicy_ptr _duplicate (IdUniquenessPolicy_ptr obj);
+ static IdUniquenessPolicy_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static IdUniquenessPolicy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static IdUniquenessPolicy_ptr _nil (void)
+ {
+ return (IdUniquenessPolicy_ptr)0;
+ }
+
+ virtual PortableServer::IdUniquenessPolicyValue value (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ IdUniquenessPolicy (void);
+ virtual ~IdUniquenessPolicy (void);
+private:
+ IdUniquenessPolicy (const IdUniquenessPolicy &);
+ void operator= (const IdUniquenessPolicy &);
+};
+
+
+#endif /* end #if !defined */
+
+enum IdAssignmentPolicyValue
+{
+ USER_ID,
+ SYSTEM_ID,
+ IdAssignmentPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+typedef IdAssignmentPolicyValue &IdAssignmentPolicyValue_out;
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IdAssignmentPolicyValue;
+
+
+#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___PTR_CH_)
+#define _PORTABLESERVER_IDASSIGNMENTPOLICY___PTR_CH_
+
+class IdAssignmentPolicy;
+typedef IdAssignmentPolicy *IdAssignmentPolicy_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CH_)
+#define _PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CH_
+
+class TAO_Export IdAssignmentPolicy_var : public TAO_Base_var
+{
+public:
+ IdAssignmentPolicy_var (void); // default constructor
+ IdAssignmentPolicy_var (IdAssignmentPolicy_ptr p) : ptr_ (p) {}
+ IdAssignmentPolicy_var (const IdAssignmentPolicy_var &); // copy constructor
+ ~IdAssignmentPolicy_var (void); // destructor
+
+ IdAssignmentPolicy_var &operator= (IdAssignmentPolicy_ptr);
+ IdAssignmentPolicy_var &operator= (const IdAssignmentPolicy_var &);
+ IdAssignmentPolicy_ptr operator-> (void) const;
+
+ operator const IdAssignmentPolicy_ptr &() const;
+ operator IdAssignmentPolicy_ptr &();
+ // in, inout, out, _retn
+ IdAssignmentPolicy_ptr in (void) const;
+ IdAssignmentPolicy_ptr &inout (void);
+ IdAssignmentPolicy_ptr &out (void);
+ IdAssignmentPolicy_ptr _retn (void);
+ IdAssignmentPolicy_ptr ptr (void) const;
+
+private:
+ IdAssignmentPolicy_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ IdAssignmentPolicy_var (const TAO_Base_var &rhs);
+ IdAssignmentPolicy_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CH_)
+#define _PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CH_
+
+class TAO_Export IdAssignmentPolicy_out
+{
+public:
+ IdAssignmentPolicy_out (IdAssignmentPolicy_ptr &);
+ IdAssignmentPolicy_out (IdAssignmentPolicy_var &);
+ IdAssignmentPolicy_out (const IdAssignmentPolicy_out &);
+ IdAssignmentPolicy_out &operator= (const IdAssignmentPolicy_out &);
+ IdAssignmentPolicy_out &operator= (const IdAssignmentPolicy_var &);
+ IdAssignmentPolicy_out &operator= (IdAssignmentPolicy_ptr);
+ operator IdAssignmentPolicy_ptr &();
+ IdAssignmentPolicy_ptr &ptr (void);
+ IdAssignmentPolicy_ptr operator-> (void);
+
+private:
+ IdAssignmentPolicy_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY_CH_)
+#define _PORTABLESERVER_IDASSIGNMENTPOLICY_CH_
+
+class TAO_Export IdAssignmentPolicy: public virtual CORBA::Policy
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef IdAssignmentPolicy_ptr _ptr_type;
+ typedef IdAssignmentPolicy_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static IdAssignmentPolicy_ptr _duplicate (IdAssignmentPolicy_ptr obj);
+ static IdAssignmentPolicy_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static IdAssignmentPolicy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static IdAssignmentPolicy_ptr _nil (void)
+ {
+ return (IdAssignmentPolicy_ptr)0;
+ }
+
+ virtual PortableServer::IdAssignmentPolicyValue value (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ IdAssignmentPolicy (void);
+ virtual ~IdAssignmentPolicy (void);
+private:
+ IdAssignmentPolicy (const IdAssignmentPolicy &);
+ void operator= (const IdAssignmentPolicy &);
+};
+
+
+#endif /* end #if !defined */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+enum ImplicitActivationPolicyValue
+{
+ IMPLICIT_ACTIVATION,
+ NO_IMPLICIT_ACTIVATION,
+ ImplicitActivationPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+typedef ImplicitActivationPolicyValue &ImplicitActivationPolicyValue_out;
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ImplicitActivationPolicyValue;
+
+
+#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___PTR_CH_)
+#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___PTR_CH_
+
+class ImplicitActivationPolicy;
+typedef ImplicitActivationPolicy *ImplicitActivationPolicy_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CH_)
+#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CH_
+
+class TAO_Export ImplicitActivationPolicy_var : public TAO_Base_var
+{
+public:
+ ImplicitActivationPolicy_var (void); // default constructor
+ ImplicitActivationPolicy_var (ImplicitActivationPolicy_ptr p) : ptr_ (p) {}
+ ImplicitActivationPolicy_var (const ImplicitActivationPolicy_var &); // copy constructor
+ ~ImplicitActivationPolicy_var (void); // destructor
+
+ ImplicitActivationPolicy_var &operator= (ImplicitActivationPolicy_ptr);
+ ImplicitActivationPolicy_var &operator= (const ImplicitActivationPolicy_var &);
+ ImplicitActivationPolicy_ptr operator-> (void) const;
+
+ operator const ImplicitActivationPolicy_ptr &() const;
+ operator ImplicitActivationPolicy_ptr &();
+ // in, inout, out, _retn
+ ImplicitActivationPolicy_ptr in (void) const;
+ ImplicitActivationPolicy_ptr &inout (void);
+ ImplicitActivationPolicy_ptr &out (void);
+ ImplicitActivationPolicy_ptr _retn (void);
+ ImplicitActivationPolicy_ptr ptr (void) const;
+
+private:
+ ImplicitActivationPolicy_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ ImplicitActivationPolicy_var (const TAO_Base_var &rhs);
+ ImplicitActivationPolicy_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CH_)
+#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CH_
+
+class TAO_Export ImplicitActivationPolicy_out
+{
+public:
+ ImplicitActivationPolicy_out (ImplicitActivationPolicy_ptr &);
+ ImplicitActivationPolicy_out (ImplicitActivationPolicy_var &);
+ ImplicitActivationPolicy_out (const ImplicitActivationPolicy_out &);
+ ImplicitActivationPolicy_out &operator= (const ImplicitActivationPolicy_out &);
+ ImplicitActivationPolicy_out &operator= (const ImplicitActivationPolicy_var &);
+ ImplicitActivationPolicy_out &operator= (ImplicitActivationPolicy_ptr);
+ operator ImplicitActivationPolicy_ptr &();
+ ImplicitActivationPolicy_ptr &ptr (void);
+ ImplicitActivationPolicy_ptr operator-> (void);
+
+private:
+ ImplicitActivationPolicy_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY_CH_)
+#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY_CH_
+
+class TAO_Export ImplicitActivationPolicy: public virtual CORBA::Policy
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ImplicitActivationPolicy_ptr _ptr_type;
+ typedef ImplicitActivationPolicy_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static ImplicitActivationPolicy_ptr _duplicate (ImplicitActivationPolicy_ptr obj);
+ static ImplicitActivationPolicy_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ImplicitActivationPolicy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ImplicitActivationPolicy_ptr _nil (void)
+ {
+ return (ImplicitActivationPolicy_ptr)0;
+ }
+
+ virtual PortableServer::ImplicitActivationPolicyValue value (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ ImplicitActivationPolicy (void);
+ virtual ~ImplicitActivationPolicy (void);
+private:
+ ImplicitActivationPolicy (const ImplicitActivationPolicy &);
+ void operator= (const ImplicitActivationPolicy &);
+};
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+enum ServantRetentionPolicyValue
+{
+ RETAIN,
+ NON_RETAIN,
+ ServantRetentionPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+typedef ServantRetentionPolicyValue &ServantRetentionPolicyValue_out;
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ServantRetentionPolicyValue;
+
+
+#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___PTR_CH_)
+#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___PTR_CH_
+
+class ServantRetentionPolicy;
+typedef ServantRetentionPolicy *ServantRetentionPolicy_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CH_)
+#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CH_
+
+class TAO_Export ServantRetentionPolicy_var : public TAO_Base_var
+{
+public:
+ ServantRetentionPolicy_var (void); // default constructor
+ ServantRetentionPolicy_var (ServantRetentionPolicy_ptr p) : ptr_ (p) {}
+ ServantRetentionPolicy_var (const ServantRetentionPolicy_var &); // copy constructor
+ ~ServantRetentionPolicy_var (void); // destructor
+
+ ServantRetentionPolicy_var &operator= (ServantRetentionPolicy_ptr);
+ ServantRetentionPolicy_var &operator= (const ServantRetentionPolicy_var &);
+ ServantRetentionPolicy_ptr operator-> (void) const;
+
+ operator const ServantRetentionPolicy_ptr &() const;
+ operator ServantRetentionPolicy_ptr &();
+ // in, inout, out, _retn
+ ServantRetentionPolicy_ptr in (void) const;
+ ServantRetentionPolicy_ptr &inout (void);
+ ServantRetentionPolicy_ptr &out (void);
+ ServantRetentionPolicy_ptr _retn (void);
+ ServantRetentionPolicy_ptr ptr (void) const;
+
+private:
+ ServantRetentionPolicy_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ ServantRetentionPolicy_var (const TAO_Base_var &rhs);
+ ServantRetentionPolicy_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CH_)
+#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CH_
+
+class TAO_Export ServantRetentionPolicy_out
+{
+public:
+ ServantRetentionPolicy_out (ServantRetentionPolicy_ptr &);
+ ServantRetentionPolicy_out (ServantRetentionPolicy_var &);
+ ServantRetentionPolicy_out (const ServantRetentionPolicy_out &);
+ ServantRetentionPolicy_out &operator= (const ServantRetentionPolicy_out &);
+ ServantRetentionPolicy_out &operator= (const ServantRetentionPolicy_var &);
+ ServantRetentionPolicy_out &operator= (ServantRetentionPolicy_ptr);
+ operator ServantRetentionPolicy_ptr &();
+ ServantRetentionPolicy_ptr &ptr (void);
+ ServantRetentionPolicy_ptr operator-> (void);
+
+private:
+ ServantRetentionPolicy_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY_CH_)
+#define _PORTABLESERVER_SERVANTRETENTIONPOLICY_CH_
+
+class TAO_Export ServantRetentionPolicy: public virtual CORBA::Policy
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ServantRetentionPolicy_ptr _ptr_type;
+ typedef ServantRetentionPolicy_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static ServantRetentionPolicy_ptr _duplicate (ServantRetentionPolicy_ptr obj);
+ static ServantRetentionPolicy_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantRetentionPolicy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantRetentionPolicy_ptr _nil (void)
+ {
+ return (ServantRetentionPolicy_ptr)0;
+ }
+
+ virtual PortableServer::ServantRetentionPolicyValue value (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ ServantRetentionPolicy (void);
+ virtual ~ServantRetentionPolicy (void);
+private:
+ ServantRetentionPolicy (const ServantRetentionPolicy &);
+ void operator= (const ServantRetentionPolicy &);
+};
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+enum RequestProcessingPolicyValue
+{
+ USE_ACTIVE_OBJECT_MAP_ONLY,
+ USE_DEFAULT_SERVANT,
+ USE_SERVANT_MANAGER,
+ RequestProcessingPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+typedef RequestProcessingPolicyValue &RequestProcessingPolicyValue_out;
+TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_RequestProcessingPolicyValue;
+
+
+#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___PTR_CH_)
+#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___PTR_CH_
+
+class RequestProcessingPolicy;
+typedef RequestProcessingPolicy *RequestProcessingPolicy_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CH_)
+#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CH_
+
+class TAO_Export RequestProcessingPolicy_var : public TAO_Base_var
+{
+public:
+ RequestProcessingPolicy_var (void); // default constructor
+ RequestProcessingPolicy_var (RequestProcessingPolicy_ptr p) : ptr_ (p) {}
+ RequestProcessingPolicy_var (const RequestProcessingPolicy_var &); // copy constructor
+ ~RequestProcessingPolicy_var (void); // destructor
+
+ RequestProcessingPolicy_var &operator= (RequestProcessingPolicy_ptr);
+ RequestProcessingPolicy_var &operator= (const RequestProcessingPolicy_var &);
+ RequestProcessingPolicy_ptr operator-> (void) const;
+
+ operator const RequestProcessingPolicy_ptr &() const;
+ operator RequestProcessingPolicy_ptr &();
+ // in, inout, out, _retn
+ RequestProcessingPolicy_ptr in (void) const;
+ RequestProcessingPolicy_ptr &inout (void);
+ RequestProcessingPolicy_ptr &out (void);
+ RequestProcessingPolicy_ptr _retn (void);
+ RequestProcessingPolicy_ptr ptr (void) const;
+
+private:
+ RequestProcessingPolicy_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ RequestProcessingPolicy_var (const TAO_Base_var &rhs);
+ RequestProcessingPolicy_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CH_)
+#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CH_
+
+class TAO_Export RequestProcessingPolicy_out
+{
+public:
+ RequestProcessingPolicy_out (RequestProcessingPolicy_ptr &);
+ RequestProcessingPolicy_out (RequestProcessingPolicy_var &);
+ RequestProcessingPolicy_out (const RequestProcessingPolicy_out &);
+ RequestProcessingPolicy_out &operator= (const RequestProcessingPolicy_out &);
+ RequestProcessingPolicy_out &operator= (const RequestProcessingPolicy_var &);
+ RequestProcessingPolicy_out &operator= (RequestProcessingPolicy_ptr);
+ operator RequestProcessingPolicy_ptr &();
+ RequestProcessingPolicy_ptr &ptr (void);
+ RequestProcessingPolicy_ptr operator-> (void);
+
+private:
+ RequestProcessingPolicy_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY_CH_)
+#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY_CH_
+
+class TAO_Export RequestProcessingPolicy: public virtual CORBA::Policy
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef RequestProcessingPolicy_ptr _ptr_type;
+ typedef RequestProcessingPolicy_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static RequestProcessingPolicy_ptr _duplicate (RequestProcessingPolicy_ptr obj);
+ static RequestProcessingPolicy_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static RequestProcessingPolicy_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static RequestProcessingPolicy_ptr _nil (void)
+ {
+ return (RequestProcessingPolicy_ptr)0;
+ }
+
+ virtual PortableServer::RequestProcessingPolicyValue value (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ RequestProcessingPolicy (void);
+ virtual ~RequestProcessingPolicy (void);
+private:
+ RequestProcessingPolicy (const RequestProcessingPolicy &);
+ void operator= (const RequestProcessingPolicy &);
+};
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#if !defined (_PORTABLESERVER_POAMANAGER___PTR_CH_)
+#define _PORTABLESERVER_POAMANAGER___PTR_CH_
+
+class POAManager;
+typedef POAManager *POAManager_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POAMANAGER___VAR_CH_)
+#define _PORTABLESERVER_POAMANAGER___VAR_CH_
+
+class TAO_Export POAManager_var : public TAO_Base_var
+{
+public:
+ POAManager_var (void); // default constructor
+ POAManager_var (POAManager_ptr p) : ptr_ (p) {}
+ POAManager_var (const POAManager_var &); // copy constructor
+ ~POAManager_var (void); // destructor
+
+ POAManager_var &operator= (POAManager_ptr);
+ POAManager_var &operator= (const POAManager_var &);
+ POAManager_ptr operator-> (void) const;
+
+ operator const POAManager_ptr &() const;
+ operator POAManager_ptr &();
+ // in, inout, out, _retn
+ POAManager_ptr in (void) const;
+ POAManager_ptr &inout (void);
+ POAManager_ptr &out (void);
+ POAManager_ptr _retn (void);
+ POAManager_ptr ptr (void) const;
+
+private:
+ POAManager_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ POAManager_var (const TAO_Base_var &rhs);
+ POAManager_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POAMANAGER___OUT_CH_)
+#define _PORTABLESERVER_POAMANAGER___OUT_CH_
+
+class TAO_Export POAManager_out
+{
+public:
+ POAManager_out (POAManager_ptr &);
+ POAManager_out (POAManager_var &);
+ POAManager_out (const POAManager_out &);
+ POAManager_out &operator= (const POAManager_out &);
+ POAManager_out &operator= (const POAManager_var &);
+ POAManager_out &operator= (POAManager_ptr);
+ operator POAManager_ptr &();
+ POAManager_ptr &ptr (void);
+ POAManager_ptr operator-> (void);
+
+private:
+ POAManager_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POAMANAGER_CH_)
+#define _PORTABLESERVER_POAMANAGER_CH_
+
+class TAO_Export POAManager : public virtual CORBA_Object
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef POAManager_ptr _ptr_type;
+ typedef POAManager_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static POAManager_ptr _duplicate (POAManager_ptr obj);
+ static POAManager_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static POAManager_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static POAManager_ptr _nil (void)
+ {
+ return (POAManager_ptr)0;
+ }
+
+
+#if !defined (_PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE_CH_)
+#define _PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE_CH_
+
+ class TAO_Export AdapterInactive : public CORBA::UserException
+ {
+ public:
+
+
+ AdapterInactive (void); // default ctor
+ AdapterInactive (const AdapterInactive &); // copy ctor
+ ~AdapterInactive (void);
+ AdapterInactive &operator= (const AdapterInactive &);
+
+
+ virtual void _raise (void);
+
+ virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+ virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+ static AdapterInactive *_downcast (CORBA::Exception *);
+
+
+ // = TAO extension
+ static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POAManager::AdapterInactive
+
+
+#endif /* end #if !defined */
+
+enum State
+{
+ HOLDING,
+ ACTIVE,
+ DISCARDING,
+ INACTIVE,
+ State_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+};
+typedef State &State_out;
+virtual void activate (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POAManager::AdapterInactive
+ )) = 0;
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+virtual void hold_requests (
+ CORBA::Boolean wait_for_completion,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POAManager::AdapterInactive
+ )) = 0;
+
+virtual void discard_requests (
+ CORBA::Boolean wait_for_completion,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POAManager::AdapterInactive
+ )) = 0;
+
+virtual void deactivate (
+ CORBA::Boolean etherealize_objects,
+ CORBA::Boolean wait_for_completion,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POAManager::AdapterInactive
+ )) = 0;
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+virtual PortableServer::POAManager::State get_state (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+virtual const char* _interface_repository_id (void) const;
+
+protected:
+ POAManager (void);
+ virtual ~POAManager (void);
+private:
+ POAManager (const POAManager &);
+ void operator= (const POAManager &);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_)
+#define _PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_
+
+class AdapterActivator;
+typedef AdapterActivator *AdapterActivator_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___VAR_CH_)
+#define _PORTABLESERVER_ADAPTERACTIVATOR___VAR_CH_
+
+class TAO_Export AdapterActivator_var : public TAO_Base_var
+{
+public:
+ AdapterActivator_var (void); // default constructor
+ AdapterActivator_var (AdapterActivator_ptr p) : ptr_ (p) {}
+ AdapterActivator_var (const AdapterActivator_var &); // copy constructor
+ ~AdapterActivator_var (void); // destructor
+
+ AdapterActivator_var &operator= (AdapterActivator_ptr);
+ AdapterActivator_var &operator= (const AdapterActivator_var &);
+ AdapterActivator_ptr operator-> (void) const;
+
+ operator const AdapterActivator_ptr &() const;
+ operator AdapterActivator_ptr &();
+ // in, inout, out, _retn
+ AdapterActivator_ptr in (void) const;
+ AdapterActivator_ptr &inout (void);
+ AdapterActivator_ptr &out (void);
+ AdapterActivator_ptr _retn (void);
+ AdapterActivator_ptr ptr (void) const;
+
+private:
+ AdapterActivator_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ AdapterActivator_var (const TAO_Base_var &rhs);
+ AdapterActivator_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___OUT_CH_)
+#define _PORTABLESERVER_ADAPTERACTIVATOR___OUT_CH_
+
+class TAO_Export AdapterActivator_out
+{
+public:
+ AdapterActivator_out (AdapterActivator_ptr &);
+ AdapterActivator_out (AdapterActivator_var &);
+ AdapterActivator_out (const AdapterActivator_out &);
+ AdapterActivator_out &operator= (const AdapterActivator_out &);
+ AdapterActivator_out &operator= (const AdapterActivator_var &);
+ AdapterActivator_out &operator= (AdapterActivator_ptr);
+ operator AdapterActivator_ptr &();
+ AdapterActivator_ptr &ptr (void);
+ AdapterActivator_ptr operator-> (void);
+
+private:
+ AdapterActivator_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR_CH_)
+#define _PORTABLESERVER_ADAPTERACTIVATOR_CH_
+
+class TAO_Export AdapterActivator : public virtual CORBA_Object
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef AdapterActivator_ptr _ptr_type;
+ typedef AdapterActivator_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static AdapterActivator_ptr _duplicate (AdapterActivator_ptr obj);
+ static AdapterActivator_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static AdapterActivator_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static AdapterActivator_ptr _nil (void)
+ {
+ return (AdapterActivator_ptr)0;
+ }
+
+ virtual CORBA::Boolean unknown_adapter (
+ PortableServer::POA_ptr parent,
+ const char * name,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ AdapterActivator (void);
+ virtual ~AdapterActivator (void);
+private:
+ AdapterActivator (const AdapterActivator &);
+ void operator= (const AdapterActivator &);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTMANAGER___PTR_CH_)
+#define _PORTABLESERVER_SERVANTMANAGER___PTR_CH_
+
+class ServantManager;
+typedef ServantManager *ServantManager_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTMANAGER___VAR_CH_)
+#define _PORTABLESERVER_SERVANTMANAGER___VAR_CH_
+
+class TAO_Export ServantManager_var : public TAO_Base_var
+{
+public:
+ ServantManager_var (void); // default constructor
+ ServantManager_var (ServantManager_ptr p) : ptr_ (p) {}
+ ServantManager_var (const ServantManager_var &); // copy constructor
+ ~ServantManager_var (void); // destructor
+
+ ServantManager_var &operator= (ServantManager_ptr);
+ ServantManager_var &operator= (const ServantManager_var &);
+ ServantManager_ptr operator-> (void) const;
+
+ operator const ServantManager_ptr &() const;
+ operator ServantManager_ptr &();
+ // in, inout, out, _retn
+ ServantManager_ptr in (void) const;
+ ServantManager_ptr &inout (void);
+ ServantManager_ptr &out (void);
+ ServantManager_ptr _retn (void);
+ ServantManager_ptr ptr (void) const;
+
+private:
+ ServantManager_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ ServantManager_var (const TAO_Base_var &rhs);
+ ServantManager_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTMANAGER___OUT_CH_)
+#define _PORTABLESERVER_SERVANTMANAGER___OUT_CH_
+
+class TAO_Export ServantManager_out
+{
+public:
+ ServantManager_out (ServantManager_ptr &);
+ ServantManager_out (ServantManager_var &);
+ ServantManager_out (const ServantManager_out &);
+ ServantManager_out &operator= (const ServantManager_out &);
+ ServantManager_out &operator= (const ServantManager_var &);
+ ServantManager_out &operator= (ServantManager_ptr);
+ operator ServantManager_ptr &();
+ ServantManager_ptr &ptr (void);
+ ServantManager_ptr operator-> (void);
+
+private:
+ ServantManager_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTMANAGER_CH_)
+#define _PORTABLESERVER_SERVANTMANAGER_CH_
+
+class TAO_Export ServantManager : public virtual CORBA_Object
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ServantManager_ptr _ptr_type;
+ typedef ServantManager_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static ServantManager_ptr _duplicate (ServantManager_ptr obj);
+ static ServantManager_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantManager_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantManager_ptr _nil (void)
+ {
+ return (ServantManager_ptr)0;
+ }
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ ServantManager (void);
+ virtual ~ServantManager (void);
+private:
+ ServantManager (const ServantManager &);
+ void operator= (const ServantManager &);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___PTR_CH_)
+#define _PORTABLESERVER_SERVANTACTIVATOR___PTR_CH_
+
+class ServantActivator;
+typedef ServantActivator *ServantActivator_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___VAR_CH_)
+#define _PORTABLESERVER_SERVANTACTIVATOR___VAR_CH_
+
+class TAO_Export ServantActivator_var : public TAO_Base_var
+{
+public:
+ ServantActivator_var (void); // default constructor
+ ServantActivator_var (ServantActivator_ptr p) : ptr_ (p) {}
+ ServantActivator_var (const ServantActivator_var &); // copy constructor
+ ~ServantActivator_var (void); // destructor
+
+ ServantActivator_var &operator= (ServantActivator_ptr);
+ ServantActivator_var &operator= (const ServantActivator_var &);
+ ServantActivator_ptr operator-> (void) const;
+
+ operator const ServantActivator_ptr &() const;
+ operator ServantActivator_ptr &();
+ // in, inout, out, _retn
+ ServantActivator_ptr in (void) const;
+ ServantActivator_ptr &inout (void);
+ ServantActivator_ptr &out (void);
+ ServantActivator_ptr _retn (void);
+ ServantActivator_ptr ptr (void) const;
+
+private:
+ ServantActivator_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ ServantActivator_var (const TAO_Base_var &rhs);
+ ServantActivator_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___OUT_CH_)
+#define _PORTABLESERVER_SERVANTACTIVATOR___OUT_CH_
+
+class TAO_Export ServantActivator_out
+{
+public:
+ ServantActivator_out (ServantActivator_ptr &);
+ ServantActivator_out (ServantActivator_var &);
+ ServantActivator_out (const ServantActivator_out &);
+ ServantActivator_out &operator= (const ServantActivator_out &);
+ ServantActivator_out &operator= (const ServantActivator_var &);
+ ServantActivator_out &operator= (ServantActivator_ptr);
+ operator ServantActivator_ptr &();
+ ServantActivator_ptr &ptr (void);
+ ServantActivator_ptr operator-> (void);
+
+private:
+ ServantActivator_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTACTIVATOR_CH_)
+#define _PORTABLESERVER_SERVANTACTIVATOR_CH_
+
+class TAO_Export ServantActivator: public virtual ServantManager
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ServantActivator_ptr _ptr_type;
+ typedef ServantActivator_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static ServantActivator_ptr _duplicate (ServantActivator_ptr obj);
+ static ServantActivator_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantActivator_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantActivator_ptr _nil (void)
+ {
+ return (ServantActivator_ptr)0;
+ }
+
+ virtual PortableServer::Servant incarnate (
+ const PortableServer::ObjectId & oid,
+ PortableServer::POA_ptr adapter
+ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::ForwardRequest
+ )) = 0;
+#else
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+ virtual void etherealize (
+ const PortableServer::ObjectId & oid,
+ PortableServer::POA_ptr adapter,
+ PortableServer::Servant serv,
+ CORBA::Boolean cleanup_in_progress,
+ CORBA::Boolean remaining_activations
+ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ ServantActivator (void);
+ virtual ~ServantActivator (void);
+private:
+ ServantActivator (const ServantActivator &);
+ void operator= (const ServantActivator &);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTLOCATOR___PTR_CH_)
+#define _PORTABLESERVER_SERVANTLOCATOR___PTR_CH_
+
+class ServantLocator;
+typedef ServantLocator *ServantLocator_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTLOCATOR___VAR_CH_)
+#define _PORTABLESERVER_SERVANTLOCATOR___VAR_CH_
+
+class TAO_Export ServantLocator_var : public TAO_Base_var
+{
+public:
+ ServantLocator_var (void); // default constructor
+ ServantLocator_var (ServantLocator_ptr p) : ptr_ (p) {}
+ ServantLocator_var (const ServantLocator_var &); // copy constructor
+ ~ServantLocator_var (void); // destructor
+
+ ServantLocator_var &operator= (ServantLocator_ptr);
+ ServantLocator_var &operator= (const ServantLocator_var &);
+ ServantLocator_ptr operator-> (void) const;
+
+ operator const ServantLocator_ptr &() const;
+ operator ServantLocator_ptr &();
+ // in, inout, out, _retn
+ ServantLocator_ptr in (void) const;
+ ServantLocator_ptr &inout (void);
+ ServantLocator_ptr &out (void);
+ ServantLocator_ptr _retn (void);
+ ServantLocator_ptr ptr (void) const;
+
+private:
+ ServantLocator_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ ServantLocator_var (const TAO_Base_var &rhs);
+ ServantLocator_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTLOCATOR___OUT_CH_)
+#define _PORTABLESERVER_SERVANTLOCATOR___OUT_CH_
+
+class TAO_Export ServantLocator_out
+{
+public:
+ ServantLocator_out (ServantLocator_ptr &);
+ ServantLocator_out (ServantLocator_var &);
+ ServantLocator_out (const ServantLocator_out &);
+ ServantLocator_out &operator= (const ServantLocator_out &);
+ ServantLocator_out &operator= (const ServantLocator_var &);
+ ServantLocator_out &operator= (ServantLocator_ptr);
+ operator ServantLocator_ptr &();
+ ServantLocator_ptr &ptr (void);
+ ServantLocator_ptr operator-> (void);
+
+private:
+ ServantLocator_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTLOCATOR_CH_)
+#define _PORTABLESERVER_SERVANTLOCATOR_CH_
+
+class TAO_Export ServantLocator: public virtual ServantManager
+{
+public:
+
+ typedef void *Cookie;
+
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ServantLocator_ptr _ptr_type;
+ typedef ServantLocator_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static ServantLocator_ptr _duplicate (ServantLocator_ptr obj);
+ static ServantLocator_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantLocator_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static ServantLocator_ptr _nil (void)
+ {
+ return (ServantLocator_ptr)0;
+ }
+
+ virtual PortableServer::Servant preinvoke (
+ const PortableServer::ObjectId & oid,
+ PortableServer::POA_ptr adapter,
+ const char * operation,
+ PortableServer::ServantLocator::Cookie & the_cookie
+ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::ForwardRequest
+ )) = 0;
+#else
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+ virtual void postinvoke (
+ const PortableServer::ObjectId & oid,
+ PortableServer::POA_ptr adapter,
+ const char * operation,
+ PortableServer::ServantLocator::Cookie the_cookie,
+ PortableServer::Servant the_servant
+ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+ virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+ virtual const char* _interface_repository_id (void) const;
+
+protected:
+ ServantLocator (void);
+ virtual ~ServantLocator (void);
+private:
+ ServantLocator (const ServantLocator &);
+ void operator= (const ServantLocator &);
+};
+
+
+#endif /* end #if !defined */
+
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#if !defined (_PORTABLESERVER_POA___PTR_CH_)
+#define _PORTABLESERVER_POA___PTR_CH_
+
+class POA;
+typedef POA *POA_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA___VAR_CH_)
+#define _PORTABLESERVER_POA___VAR_CH_
+
+class TAO_Export POA_var : public TAO_Base_var
+{
+public:
+ POA_var (void); // default constructor
+ POA_var (POA_ptr p) : ptr_ (p) {}
+ POA_var (const POA_var &); // copy constructor
+ ~POA_var (void); // destructor
+
+ POA_var &operator= (POA_ptr);
+ POA_var &operator= (const POA_var &);
+ POA_ptr operator-> (void) const;
+
+ operator const POA_ptr &() const;
+ operator POA_ptr &();
+ // in, inout, out, _retn
+ POA_ptr in (void) const;
+ POA_ptr &inout (void);
+ POA_ptr &out (void);
+ POA_ptr _retn (void);
+ POA_ptr ptr (void) const;
+
+private:
+ POA_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ POA_var (const TAO_Base_var &rhs);
+ POA_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA___OUT_CH_)
+#define _PORTABLESERVER_POA___OUT_CH_
+
+class TAO_Export POA_out
+{
+public:
+ POA_out (POA_ptr &);
+ POA_out (POA_var &);
+ POA_out (const POA_out &);
+ POA_out &operator= (const POA_out &);
+ POA_out &operator= (const POA_var &);
+ POA_out &operator= (POA_ptr);
+ operator POA_ptr &();
+ POA_ptr &ptr (void);
+ POA_ptr operator-> (void);
+
+private:
+ POA_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_CH_)
+#define _PORTABLESERVER_POA_CH_
+
+class TAO_Export POA : public virtual CORBA_Object
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef POA_ptr _ptr_type;
+ typedef POA_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static POA_ptr _duplicate (POA_ptr obj);
+ static POA_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static POA_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static POA_ptr _nil (void)
+ {
+ return (POA_ptr)0;
+ }
+
+
+#if !defined (_PORTABLESERVER_POA_ADAPTERALREADYEXISTS_CH_)
+#define _PORTABLESERVER_POA_ADAPTERALREADYEXISTS_CH_
+
+ class TAO_Export AdapterAlreadyExists : public CORBA::UserException
+ {
+ public:
+
+
+ AdapterAlreadyExists (void); // default ctor
+ AdapterAlreadyExists (const AdapterAlreadyExists &); // copy ctor
+ ~AdapterAlreadyExists (void);
+ AdapterAlreadyExists &operator= (const AdapterAlreadyExists &);
+
+
+ virtual void _raise (void);
+
+ virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+ virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+ static AdapterAlreadyExists *_downcast (CORBA::Exception *);
+
+
+ // = TAO extension
+ static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::AdapterAlreadyExists
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_ADAPTERNONEXISTENT_CH_)
+#define _PORTABLESERVER_POA_ADAPTERNONEXISTENT_CH_
+
+class TAO_Export AdapterNonExistent : public CORBA::UserException
+{
+public:
+
+
+AdapterNonExistent (void); // default ctor
+AdapterNonExistent (const AdapterNonExistent &); // copy ctor
+~AdapterNonExistent (void);
+AdapterNonExistent &operator= (const AdapterNonExistent &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static AdapterNonExistent *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::AdapterNonExistent
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_INVALIDPOLICY_CH_)
+#define _PORTABLESERVER_POA_INVALIDPOLICY_CH_
+
+class TAO_Export InvalidPolicy : public CORBA::UserException
+{
+public:
+
+CORBA::UShort index;
+
+InvalidPolicy (void); // default ctor
+InvalidPolicy (const InvalidPolicy &); // copy ctor
+~InvalidPolicy (void);
+InvalidPolicy &operator= (const InvalidPolicy &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static InvalidPolicy *_downcast (CORBA::Exception *);
+
+InvalidPolicy (
+ CORBA::UShort _tao_index
+);
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::InvalidPolicy
+
+
+#endif /* end #if !defined */
+
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+#if !defined (_PORTABLESERVER_POA_NOSERVANT_CH_)
+#define _PORTABLESERVER_POA_NOSERVANT_CH_
+
+class TAO_Export NoServant : public CORBA::UserException
+{
+public:
+
+
+NoServant (void); // default ctor
+NoServant (const NoServant &); // copy ctor
+~NoServant (void);
+NoServant &operator= (const NoServant &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static NoServant *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::NoServant
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#if !defined (_PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_)
+#define _PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_
+
+class TAO_Export ObjectAlreadyActive : public CORBA::UserException
+{
+public:
+
+
+ObjectAlreadyActive (void); // default ctor
+ObjectAlreadyActive (const ObjectAlreadyActive &); // copy ctor
+~ObjectAlreadyActive (void);
+ObjectAlreadyActive &operator= (const ObjectAlreadyActive &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static ObjectAlreadyActive *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::ObjectAlreadyActive
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_OBJECTNOTACTIVE_CH_)
+#define _PORTABLESERVER_POA_OBJECTNOTACTIVE_CH_
+
+class TAO_Export ObjectNotActive : public CORBA::UserException
+{
+public:
+
+
+ObjectNotActive (void); // default ctor
+ObjectNotActive (const ObjectNotActive &); // copy ctor
+~ObjectNotActive (void);
+ObjectNotActive &operator= (const ObjectNotActive &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static ObjectNotActive *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::ObjectNotActive
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_SERVANTALREADYACTIVE_CH_)
+#define _PORTABLESERVER_POA_SERVANTALREADYACTIVE_CH_
+
+class TAO_Export ServantAlreadyActive : public CORBA::UserException
+{
+public:
+
+
+ServantAlreadyActive (void); // default ctor
+ServantAlreadyActive (const ServantAlreadyActive &); // copy ctor
+~ServantAlreadyActive (void);
+ServantAlreadyActive &operator= (const ServantAlreadyActive &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static ServantAlreadyActive *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::ServantAlreadyActive
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_SERVANTNOTACTIVE_CH_)
+#define _PORTABLESERVER_POA_SERVANTNOTACTIVE_CH_
+
+class TAO_Export ServantNotActive : public CORBA::UserException
+{
+public:
+
+
+ServantNotActive (void); // default ctor
+ServantNotActive (const ServantNotActive &); // copy ctor
+~ServantNotActive (void);
+ServantNotActive &operator= (const ServantNotActive &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static ServantNotActive *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::ServantNotActive
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_WRONGADAPTER_CH_)
+#define _PORTABLESERVER_POA_WRONGADAPTER_CH_
+
+class TAO_Export WrongAdapter : public CORBA::UserException
+{
+public:
+
+
+WrongAdapter (void); // default ctor
+WrongAdapter (const WrongAdapter &); // copy ctor
+~WrongAdapter (void);
+WrongAdapter &operator= (const WrongAdapter &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static WrongAdapter *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::WrongAdapter
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA_WRONGPOLICY_CH_)
+#define _PORTABLESERVER_POA_WRONGPOLICY_CH_
+
+class TAO_Export WrongPolicy : public CORBA::UserException
+{
+public:
+
+
+WrongPolicy (void); // default ctor
+WrongPolicy (const WrongPolicy &); // copy ctor
+~WrongPolicy (void);
+WrongPolicy &operator= (const WrongPolicy &);
+
+
+virtual void _raise (void);
+
+virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+static WrongPolicy *_downcast (CORBA::Exception *);
+
+
+// = TAO extension
+static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::POA::WrongPolicy
+
+
+#endif /* end #if !defined */
+
+virtual PortableServer::POA_ptr create_POA (
+ const char * adapter_name,
+ PortableServer::POAManager_ptr a_POAManager,
+ const CORBA::PolicyList & policies,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::AdapterAlreadyExists,
+ PortableServer::POA::InvalidPolicy
+ )) = 0;
+
+virtual PortableServer::POA_ptr find_POA (
+ const char * adapter_name,
+ CORBA::Boolean activate_it,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::AdapterNonExistent
+ )) = 0;
+
+virtual void destroy (
+ CORBA::Boolean etherealize_objects,
+ CORBA::Boolean wait_for_completion,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+virtual PortableServer::ThreadPolicy_ptr create_thread_policy (
+ PortableServer::ThreadPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+virtual PortableServer::LifespanPolicy_ptr create_lifespan_policy (
+ PortableServer::LifespanPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::IdUniquenessPolicy_ptr create_id_uniqueness_policy (
+ PortableServer::IdUniquenessPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::IdAssignmentPolicy_ptr create_id_assignment_policy (
+ PortableServer::IdAssignmentPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+virtual PortableServer::ImplicitActivationPolicy_ptr create_implicit_activation_policy (
+ PortableServer::ImplicitActivationPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::ServantRetentionPolicy_ptr create_servant_retention_policy (
+ PortableServer::ServantRetentionPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::RequestProcessingPolicy_ptr create_request_processing_policy (
+ PortableServer::RequestProcessingPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+virtual char * the_name (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::POA_ptr the_parent (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::POAList * the_children (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::POAManager_ptr the_POAManager (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+virtual PortableServer::AdapterActivator_ptr the_activator (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual void the_activator (
+ PortableServer::AdapterActivator_ptr the_activator,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ )) = 0;
+
+virtual PortableServer::ServantManager_ptr get_servant_manager (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual void set_servant_manager (
+ PortableServer::ServantManager_ptr imgr,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual PortableServer::Servant get_servant (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::NoServant,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual void set_servant (
+ PortableServer::Servant p_servant,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+virtual PortableServer::ObjectId * activate_object (
+ PortableServer::Servant p_servant,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ServantAlreadyActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual void activate_object_with_id (
+ const PortableServer::ObjectId & id,
+ PortableServer::Servant p_servant,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ServantAlreadyActive,
+ PortableServer::POA::ObjectAlreadyActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual void deactivate_object (
+ const PortableServer::ObjectId & oid,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ObjectNotActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual CORBA::Object_ptr create_reference (
+ const char * intf,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual CORBA::Object_ptr create_reference_with_id (
+ const PortableServer::ObjectId & oid,
+ const char * intf,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual PortableServer::ObjectId * servant_to_id (
+ PortableServer::Servant p_servant,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ServantNotActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual CORBA::Object_ptr servant_to_reference (
+ PortableServer::Servant p_servant,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ServantNotActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual PortableServer::Servant reference_to_servant (
+ CORBA::Object_ptr reference,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ObjectNotActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual PortableServer::ObjectId * reference_to_id (
+ CORBA::Object_ptr reference,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::WrongAdapter,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual PortableServer::Servant id_to_servant (
+ const PortableServer::ObjectId & oid,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ObjectNotActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual CORBA::Object_ptr id_to_reference (
+ const PortableServer::ObjectId & oid,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::POA::ObjectNotActive,
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
+virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+virtual const char* _interface_repository_id (void) const;
+
+protected:
+ POA (void);
+ virtual ~POA (void);
+private:
+ POA (const POA &);
+ void operator= (const POA &);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_CURRENT___PTR_CH_)
+#define _PORTABLESERVER_CURRENT___PTR_CH_
+
+class Current;
+typedef Current *Current_ptr;
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_CURRENT___VAR_CH_)
+#define _PORTABLESERVER_CURRENT___VAR_CH_
+
+class TAO_Export Current_var : public TAO_Base_var
+{
+public:
+ Current_var (void); // default constructor
+ Current_var (Current_ptr p) : ptr_ (p) {}
+ Current_var (const Current_var &); // copy constructor
+ ~Current_var (void); // destructor
+
+ Current_var &operator= (Current_ptr);
+ Current_var &operator= (const Current_var &);
+ Current_ptr operator-> (void) const;
+
+ operator const Current_ptr &() const;
+ operator Current_ptr &();
+ // in, inout, out, _retn
+ Current_ptr in (void) const;
+ Current_ptr &inout (void);
+ Current_ptr &out (void);
+ Current_ptr _retn (void);
+ Current_ptr ptr (void) const;
+
+private:
+ Current_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ Current_var (const TAO_Base_var &rhs);
+ Current_var &operator= (const TAO_Base_var &rhs);
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_CURRENT___OUT_CH_)
+#define _PORTABLESERVER_CURRENT___OUT_CH_
+
+class TAO_Export Current_out
+{
+public:
+ Current_out (Current_ptr &);
+ Current_out (Current_var &);
+ Current_out (const Current_out &);
+ Current_out &operator= (const Current_out &);
+ Current_out &operator= (const Current_var &);
+ Current_out &operator= (Current_ptr);
+ operator Current_ptr &();
+ Current_ptr &ptr (void);
+ Current_ptr operator-> (void);
+
+private:
+ Current_ptr &ptr_;
+};
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_CURRENT_CH_)
+#define _PORTABLESERVER_CURRENT_CH_
+
+class TAO_Export Current: public virtual CORBA::Current
+{
+public:
+#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef Current_ptr _ptr_type;
+ typedef Current_var _var_type;
+#endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static Current_ptr _duplicate (Current_ptr obj);
+ static Current_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static Current_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static Current_ptr _nil (void)
+ {
+ return (Current_ptr)0;
+ }
+
+
+#if !defined (_PORTABLESERVER_CURRENT_NOCONTEXT_CH_)
+#define _PORTABLESERVER_CURRENT_NOCONTEXT_CH_
+
+ class TAO_Export NoContext : public CORBA::UserException
+ {
+ public:
+
+
+ NoContext (void); // default ctor
+ NoContext (const NoContext &); // copy ctor
+ ~NoContext (void);
+ NoContext &operator= (const NoContext &);
+
+
+ virtual void _raise (void);
+
+ virtual void _tao_encode (
+ TAO_OutputCDR &,
+ CORBA::Environment &) const;
+ virtual void _tao_decode (
+ TAO_InputCDR &,
+ CORBA::Environment &);
+
+ static NoContext *_downcast (CORBA::Exception *);
+
+
+ // = TAO extension
+ static CORBA::Exception *_alloc (void);
+
+}; // exception PortableServer::Current::NoContext
+
+
+#endif /* end #if !defined */
+
+virtual PortableServer::POA_ptr get_POA (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::Current::NoContext
+ )) = 0;
+
+virtual PortableServer::ObjectId * get_object_id (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::Current::NoContext
+ )) = 0;
+
+virtual void *_tao_QueryInterface (ptr_arith_t type);
+
+virtual const char* _interface_repository_id (void) const;
+
+protected:
+ Current (void);
+ virtual ~Current (void);
+private:
+ Current (const Current &);
+ void operator= (const Current &);
+};
+
+
+#endif /* end #if !defined */
+
+ TAO_NAMESPACE_STORAGE_CLASS char *ObjectId_to_string (const PortableServer::ObjectId &id);
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::WChar *ObjectId_to_wstring (const PortableServer::ObjectId &id);
+ TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId *string_to_ObjectId (const char *id);
+ TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId *wstring_to_ObjectId (const CORBA::WChar *id);
+
+}
+TAO_NAMESPACE_CLOSE // module PortableServer
+
+TAO_Export void operator<<= (CORBA::Any &, const PortableServer::ObjectId &); // copying version
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::ObjectId*); // noncopying version
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ObjectId *&); // deprecated
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::ObjectId *&);
+
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+
+TAO_Export void operator<<= (CORBA::Any &, const PortableServer::ForwardRequest &); // copying version
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::ForwardRequest*); // noncopying version
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ForwardRequest *&); // deprecated
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::ForwardRequest *&);
+
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::ThreadPolicyValue);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ThreadPolicyValue &);
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::LifespanPolicyValue);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::LifespanPolicyValue &);
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdUniquenessPolicyValue);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdUniquenessPolicyValue &);
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdAssignmentPolicyValue);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdAssignmentPolicyValue &);
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::ImplicitActivationPolicyValue);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ImplicitActivationPolicyValue &);
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::ServantRetentionPolicyValue);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ServantRetentionPolicyValue &);
+TAO_Export void operator<<= (CORBA::Any &, PortableServer::RequestProcessingPolicyValue);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::RequestProcessingPolicyValue &);
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#ifndef __ACE_INLINE__
+
+
+#if !defined _TAO_CDR_OP_PortableServer_ObjectId_H_
+#define _TAO_CDR_OP_PortableServer_ObjectId_H_
+
+TAO_Export CORBA::Boolean operator<< (
+ TAO_OutputCDR &,
+ const PortableServer::ObjectId &
+ );
+TAO_Export CORBA::Boolean operator>> (
+ TAO_InputCDR &,
+ PortableServer::ObjectId &
+ );
+
+#endif /* _TAO_CDR_OP_PortableServer_ObjectId_H_ */
+
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ForwardRequest &);
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ForwardRequest &);
+
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
+
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+
+TAO_Export ostream& operator<< (ostream &, const PortableServer::ForwardRequest &);
+
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ThreadPolicyValue &); //
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ThreadPolicyValue &);
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::LifespanPolicyValue &); //
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::LifespanPolicyValue &);
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdUniquenessPolicyValue &); //
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdUniquenessPolicyValue &);
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdAssignmentPolicyValue &); //
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdAssignmentPolicyValue &);
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ImplicitActivationPolicyValue &); //
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ImplicitActivationPolicyValue &);
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ServantRetentionPolicyValue &); //
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantRetentionPolicyValue &);
+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::RequestProcessingPolicyValue &); //
+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::RequestProcessingPolicyValue &);
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#endif /* __ACE_INLINE__ */
+
+
+#if defined (__ACE_INLINE__)
+#include "PortableServerC.i"
+#endif /* defined INLINE */
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1200)
+#pragma warning(pop)
+#endif /* _MSC_VER */
+
+#include "ace/post.h"
+#endif /* ifndef */
diff --git a/TAO/tao/PortableServerC.i b/TAO/tao/PortableServerC.i
new file mode 100644
index 00000000000..27ab9b8773c
--- /dev/null
+++ b/TAO/tao/PortableServerC.i
@@ -0,0 +1,3210 @@
+/* -*- C++ -*- $Id$ */
+
+// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
+// TAO and the TAO IDL Compiler have been developed by the Center for
+// Distributed Object Computing at Washington University, St. Louis.
+//
+// Information about TAO is available at:
+// http://www.cs.wustl.edu/~schmidt/TAO.html
+
+
+#if !defined (_PORTABLESERVER_POA___VAR_CI_)
+#define _PORTABLESERVER_POA___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::POA_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::POA_var::POA_var (void) // default constructor
+ : ptr_ (PortableServer::POA::_nil ())
+{}
+
+ACE_INLINE PortableServer::POA_ptr
+PortableServer::POA_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::POA_var::POA_var (const PortableServer::POA_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (POA::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::POA_var::~POA_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::POA_var &
+PortableServer::POA_var::operator= (PortableServer::POA_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::POA_var &
+PortableServer::POA_var::operator= (const PortableServer::POA_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = PortableServer::POA::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::POA_var::operator const PortableServer::POA_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::POA_var::operator PortableServer::POA_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE PortableServer::POA_ptr
+PortableServer::POA_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE PortableServer::POA_ptr
+PortableServer::POA_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE PortableServer::POA_ptr &
+PortableServer::POA_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE PortableServer::POA_ptr &
+PortableServer::POA_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = PortableServer::POA::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE PortableServer::POA_ptr
+PortableServer::POA_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ PortableServer::POA_ptr val = this->ptr_;
+ this->ptr_ = PortableServer::POA::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POA___OUT_CI_)
+#define _PORTABLESERVER_POA___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::POA_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::POA_out::POA_out (PortableServer::POA_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = PortableServer::POA::_nil ();
+}
+
+ACE_INLINE
+PortableServer::POA_out::POA_out (PortableServer::POA_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = PortableServer::POA::_nil ();
+}
+
+ACE_INLINE
+PortableServer::POA_out::POA_out (const PortableServer::POA_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (PortableServer::POA_out&,p).ptr_)
+{}
+
+ACE_INLINE PortableServer::POA_out &
+PortableServer::POA_out::operator= (const PortableServer::POA_out &p)
+{
+ this->ptr_ = ACE_const_cast (PortableServer::POA_out&,p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::POA_out &
+PortableServer::POA_out::operator= (const PortableServer::POA_var &p)
+{
+ this->ptr_ = PortableServer::POA::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::POA_out &
+PortableServer::POA_out::operator= (PortableServer::POA_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::POA_out::operator PortableServer::POA_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE PortableServer::POA_ptr &
+PortableServer::POA_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE PortableServer::POA_ptr
+PortableServer::POA_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
+
+#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CI_)
+#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_PORTABLESERVER_POALIST_CI_
+
+ ACE_INLINE PortableServer::POA **
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (CORBA::ULong nelems)
+ {
+ PortableServer::POA **buf = 0;
+
+ ACE_NEW_RETURN (buf, PortableServer::POA*[nelems], 0);
+
+ for (CORBA::ULong i = 0; i < nelems; i++)
+ buf[i] = PortableServer::POA::_nil ();
+
+ return buf;
+ }
+
+ ACE_INLINE void
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::freebuf (PortableServer::POA **buffer)
+ {
+ if (buffer == 0)
+ return;
+ delete[] buffer;
+ }
+
+ ACE_INLINE
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList (void)
+ {
+ }
+
+ ACE_INLINE
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList (CORBA::ULong maximum)
+ : TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (maximum))
+ {
+ }
+
+ ACE_INLINE
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList (CORBA::ULong maximum,
+ CORBA::ULong length,
+ PortableServer::POA* *value,
+ CORBA::Boolean release)
+ : TAO_Unbounded_Base_Sequence (maximum, length, value, release)
+ {
+ }
+
+ ACE_INLINE
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::_TAO_Unbounded_Object_Sequence_PortableServer_POAList(const _TAO_Unbounded_Object_Sequence_PortableServer_POAList &rhs)
+ : TAO_Unbounded_Base_Sequence (rhs)
+ {
+ if (rhs.buffer_ != 0)
+ {
+ PortableServer::POA **tmp1 = _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (this->maximum_);
+ PortableServer::POA ** const tmp2 = ACE_reinterpret_cast (PortableServer::POA ** ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < rhs.length_; ++i)
+ tmp1[i] = PortableServer::POA::_duplicate (tmp2[i]);
+
+ this->buffer_ = tmp1;
+ }
+ else
+ {
+ this->buffer_ = 0;
+ }
+ }
+
+ ACE_INLINE PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList &
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::operator= (const _TAO_Unbounded_Object_Sequence_PortableServer_POAList &rhs)
+ {
+ if (this == &rhs)
+ return *this;
+
+ if (this->release_)
+ {
+ PortableServer::POA **tmp = ACE_reinterpret_cast (PortableServer::POA **, this->buffer_);
+
+ for (CORBA::ULong i = 0; i < this->length_; ++i)
+ {
+ CORBA::release (tmp[i]);
+ tmp[i] = PortableServer::POA::_nil ();
+ }
+ if (this->maximum_ < rhs.maximum_)
+ {
+ _TAO_Unbounded_Object_Sequence_PortableServer_POAList::freebuf (tmp);
+ this->buffer_ = _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (rhs.maximum_);
+ }
+ }
+ else
+ this->buffer_ = _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (rhs.maximum_);
+
+ TAO_Unbounded_Base_Sequence::operator= (rhs);
+
+ PortableServer::POA **tmp1 = ACE_reinterpret_cast (PortableServer::POA **, this->buffer_);
+ PortableServer::POA ** const tmp2 = ACE_reinterpret_cast (PortableServer::POA ** ACE_CAST_CONST, rhs.buffer_);
+
+ for (CORBA::ULong i = 0; i < rhs.length_; ++i)
+ tmp1[i] = PortableServer::POA::_duplicate (tmp2[i]);
+
+ return *this;
+ }
+
+ ACE_INLINE TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var>
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::operator[] (CORBA::ULong index) const
+ // read-write accessor
+ {
+ ACE_ASSERT (index < this->maximum_);
+ PortableServer::POA ** const tmp = ACE_reinterpret_cast (PortableServer::POA ** ACE_CAST_CONST, this->buffer_);
+ return TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var> (tmp + index, this->release_);
+ }
+
+ ACE_INLINE PortableServer::POA* *
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::get_buffer (CORBA::Boolean orphan)
+ {
+ PortableServer::POA **result = 0;
+ if (orphan == 0)
+ {
+ // We retain ownership.
+ if (this->buffer_ == 0)
+ {
+ result = _TAO_Unbounded_Object_Sequence_PortableServer_POAList::allocbuf (this->maximum_);
+ this->buffer_ = result;
+ }
+ else
+ {
+ result = ACE_reinterpret_cast (PortableServer::POA**, this->buffer_);
+ }
+ }
+ else // if (orphan == 1)
+ {
+ if (this->release_ != 0)
+ {
+ // We set the state back to default and relinquish
+ // ownership.
+ result = ACE_reinterpret_cast(PortableServer::POA**,this->buffer_);
+ this->maximum_ = 0;
+ this->length_ = 0;
+ this->buffer_ = 0;
+ this->release_ = 0;
+ }
+ }
+ return result;
+ }
+
+ ACE_INLINE const PortableServer::POA* *
+ PortableServer::_TAO_Unbounded_Object_Sequence_PortableServer_POAList::get_buffer (void) const
+ {
+ return ACE_reinterpret_cast(const PortableServer::POA ** ACE_CAST_CONST, this->buffer_);
+ }
+
+
+#endif /* end #if !defined */
+
+
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
+#if !defined (_PORTABLESERVER_POALIST_CI_)
+#define _PORTABLESERVER_POALIST_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::POAList_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::POAList_var::POAList_var (void) // default constructor
+ : ptr_ (0)
+{}
+
+ACE_INLINE
+PortableServer::POAList_var::POAList_var (POAList *p)
+ : ptr_ (p)
+{}
+
+ACE_INLINE
+PortableServer::POAList_var::POAList_var (const ::PortableServer::POAList_var &p) // copy constructor
+{
+ if (p.ptr_)
+ ACE_NEW (this->ptr_, ::PortableServer::POAList (*p.ptr_));
+ else
+ this->ptr_ = 0;
+}
+
+ACE_INLINE
+PortableServer::POAList_var::~POAList_var (void) // destructor
+{
+ delete this->ptr_;
+}
+
+ACE_INLINE PortableServer::POAList_var &
+PortableServer::POAList_var::operator= (POAList *p)
+{
+ delete this->ptr_;
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::POAList_var &
+PortableServer::POAList_var::operator= (const ::PortableServer::POAList_var &p) // deep copy
+{
+ if (this != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_, ::PortableServer::POAList (*p.ptr_), *this);
+ }
+ return *this;
+}
+
+ACE_INLINE const ::PortableServer::POAList *
+PortableServer::POAList_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAList *
+PortableServer::POAList_var::operator-> (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::POAList_var::operator const ::PortableServer::POAList &() const // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::POAList_var::operator ::PortableServer::POAList &() // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::POAList_var::operator ::PortableServer::POAList &() const // cast
+{
+ return *this->ptr_;
+}
+
+// variable-size types only
+ACE_INLINE
+PortableServer::POAList_var::operator ::PortableServer::POAList *&() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE TAO_Object_Manager<PortableServer::POA, PortableServer::POA_var>
+PortableServer::POAList_var::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+ACE_INLINE const ::PortableServer::POAList &
+PortableServer::POAList_var::in (void) const
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAList &
+PortableServer::POAList_var::inout (void)
+{
+ return *this->ptr_;
+}
+
+// mapping for variable size
+ACE_INLINE ::PortableServer::POAList *&
+PortableServer::POAList_var::out (void)
+{
+ delete this->ptr_;
+ this->ptr_ = 0;
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAList *
+PortableServer::POAList_var::_retn (void)
+{
+ ::PortableServer::POAList *tmp = this->ptr_;
+ this->ptr_ = 0;
+ return tmp;
+}
+
+ACE_INLINE ::PortableServer::POAList *
+PortableServer::POAList_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+// *************************************************************
+// Inline operations for class PortableServer::POAList_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::POAList_out::POAList_out (POAList *&p)
+ : ptr_ (p)
+{
+ this->ptr_ = 0;
+}
+
+ACE_INLINE
+PortableServer::POAList_out::POAList_out (POAList_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ delete this->ptr_;
+ this->ptr_ = 0;
+}
+
+ACE_INLINE
+PortableServer::POAList_out::POAList_out (const ::PortableServer::POAList_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (POAList_out&, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::POAList_out &
+PortableServer::POAList_out::operator= (const ::PortableServer::POAList_out &p)
+{
+ this->ptr_ = ACE_const_cast (POAList_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE ::PortableServer::POAList_out &
+PortableServer::POAList_out::operator= (POAList *p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::POAList_out::operator ::PortableServer::POAList *&() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAList *&
+PortableServer::POAList_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAList *
+PortableServer::POAList_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE TAO_Object_Manager<PortableServer::POA, PortableServer::POA_var>
+PortableServer::POAList_out::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_OBJECTID_CI_)
+#define _PORTABLESERVER_OBJECTID_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ObjectId_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ObjectId_var::ObjectId_var (void) // default constructor
+ : ptr_ (0)
+{}
+
+ACE_INLINE
+PortableServer::ObjectId_var::ObjectId_var (ObjectId *p)
+ : ptr_ (p)
+{}
+
+ACE_INLINE
+PortableServer::ObjectId_var::ObjectId_var (const ::PortableServer::ObjectId_var &p) // copy constructor
+{
+ if (p.ptr_)
+ ACE_NEW (this->ptr_, ::PortableServer::ObjectId (*p.ptr_));
+ else
+ this->ptr_ = 0;
+}
+
+// fixed-size base types only
+ACE_INLINE
+PortableServer::ObjectId_var::ObjectId_var (const ::PortableServer::ObjectId &p)
+{
+ ACE_NEW (this->ptr_, ::PortableServer::ObjectId (p));
+}
+
+ACE_INLINE
+PortableServer::ObjectId_var::~ObjectId_var (void) // destructor
+{
+ delete this->ptr_;
+}
+
+ACE_INLINE PortableServer::ObjectId_var &
+PortableServer::ObjectId_var::operator= (ObjectId *p)
+{
+ delete this->ptr_;
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ObjectId_var &
+PortableServer::ObjectId_var::operator= (const ::PortableServer::ObjectId_var &p) // deep copy
+{
+ if (this != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_, ::PortableServer::ObjectId (*p.ptr_), *this);
+ }
+ return *this;
+}
+
+// fixed-size types only
+ACE_INLINE ::PortableServer::ObjectId_var &
+PortableServer::ObjectId_var::operator= (const ::PortableServer::ObjectId &p)
+{
+ if (this->ptr_ != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_, ::PortableServer::ObjectId (p), *this);
+ }
+ return *this;
+}
+
+ACE_INLINE const ::PortableServer::ObjectId *
+PortableServer::ObjectId_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ObjectId *
+PortableServer::ObjectId_var::operator-> (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ObjectId_var::operator const ::PortableServer::ObjectId &() const // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ObjectId_var::operator ::PortableServer::ObjectId &() // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ObjectId_var::operator ::PortableServer::ObjectId &() const // cast
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE CORBA::Octet &
+PortableServer::ObjectId_var::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+ACE_INLINE const ::PortableServer::ObjectId &
+PortableServer::ObjectId_var::in (void) const
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ObjectId &
+PortableServer::ObjectId_var::inout (void)
+{
+ return *this->ptr_;
+}
+
+// mapping for variable size
+ACE_INLINE ::PortableServer::ObjectId *&
+PortableServer::ObjectId_var::out (void)
+{
+ delete this->ptr_;
+ this->ptr_ = 0;
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ObjectId *
+PortableServer::ObjectId_var::_retn (void)
+{
+ ::PortableServer::ObjectId *tmp = this->ptr_;
+ this->ptr_ = 0;
+ return tmp;
+}
+
+ACE_INLINE ::PortableServer::ObjectId *
+PortableServer::ObjectId_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+// *************************************************************
+// Inline operations for class PortableServer::ObjectId_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ObjectId_out::ObjectId_out (ObjectId *&p)
+ : ptr_ (p)
+{
+ this->ptr_ = 0;
+}
+
+ACE_INLINE
+PortableServer::ObjectId_out::ObjectId_out (ObjectId_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ delete this->ptr_;
+ this->ptr_ = 0;
+}
+
+ACE_INLINE
+PortableServer::ObjectId_out::ObjectId_out (const ::PortableServer::ObjectId_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (ObjectId_out&, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::ObjectId_out &
+PortableServer::ObjectId_out::operator= (const ::PortableServer::ObjectId_out &p)
+{
+ this->ptr_ = ACE_const_cast (ObjectId_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE ::PortableServer::ObjectId_out &
+PortableServer::ObjectId_out::operator= (ObjectId *p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ObjectId_out::operator ::PortableServer::ObjectId *&() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ObjectId *&
+PortableServer::ObjectId_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ObjectId *
+PortableServer::ObjectId_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE CORBA::Octet &
+PortableServer::ObjectId_out::operator[] (CORBA::ULong index)
+{
+ return this->ptr_->operator[] (index);
+}
+
+
+#endif /* end #if !defined */
+
+// *************************************************************
+// Inline operations for exception PortableServer::ForwardRequest
+// *************************************************************
+
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+#if !defined (_PORTABLESERVER_THREADPOLICY___VAR_CI_)
+#define _PORTABLESERVER_THREADPOLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ThreadPolicy_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ThreadPolicy_var::ThreadPolicy_var (void) // default constructor
+ : ptr_ (ThreadPolicy::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr
+PortableServer::ThreadPolicy_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ThreadPolicy_var::ThreadPolicy_var (const ::PortableServer::ThreadPolicy_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (ThreadPolicy::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::ThreadPolicy_var::~ThreadPolicy_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::ThreadPolicy_var &
+PortableServer::ThreadPolicy_var::operator= (ThreadPolicy_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ThreadPolicy_var &
+PortableServer::ThreadPolicy_var::operator= (const ::PortableServer::ThreadPolicy_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ThreadPolicy::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ThreadPolicy_var::operator const ::PortableServer::ThreadPolicy_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ThreadPolicy_var::operator ::PortableServer::ThreadPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr
+PortableServer::ThreadPolicy_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr
+PortableServer::ThreadPolicy_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr &
+PortableServer::ThreadPolicy_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr &
+PortableServer::ThreadPolicy_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ThreadPolicy::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr
+PortableServer::ThreadPolicy_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::ThreadPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::ThreadPolicy::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_THREADPOLICY___OUT_CI_)
+#define _PORTABLESERVER_THREADPOLICY___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ThreadPolicy_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ThreadPolicy_out::ThreadPolicy_out (ThreadPolicy_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::ThreadPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ThreadPolicy_out::ThreadPolicy_out (ThreadPolicy_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ThreadPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ThreadPolicy_out::ThreadPolicy_out (const ::PortableServer::ThreadPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (ThreadPolicy_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_out &
+PortableServer::ThreadPolicy_out::operator= (const ::PortableServer::ThreadPolicy_out &p)
+{
+ this->ptr_ = ACE_const_cast (ThreadPolicy_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ThreadPolicy_out &
+PortableServer::ThreadPolicy_out::operator= (const ::PortableServer::ThreadPolicy_var &p)
+{
+ this->ptr_ = ::PortableServer::ThreadPolicy::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::ThreadPolicy_out &
+PortableServer::ThreadPolicy_out::operator= (ThreadPolicy_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ThreadPolicy_out::operator ::PortableServer::ThreadPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr &
+PortableServer::ThreadPolicy_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ThreadPolicy_ptr
+PortableServer::ThreadPolicy_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+#if !defined (_PORTABLESERVER_LIFESPANPOLICY___VAR_CI_)
+#define _PORTABLESERVER_LIFESPANPOLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::LifespanPolicy_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::LifespanPolicy_var::LifespanPolicy_var (void) // default constructor
+ : ptr_ (LifespanPolicy::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr
+PortableServer::LifespanPolicy_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::LifespanPolicy_var::LifespanPolicy_var (const ::PortableServer::LifespanPolicy_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (LifespanPolicy::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::LifespanPolicy_var::~LifespanPolicy_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::LifespanPolicy_var &
+PortableServer::LifespanPolicy_var::operator= (LifespanPolicy_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::LifespanPolicy_var &
+PortableServer::LifespanPolicy_var::operator= (const ::PortableServer::LifespanPolicy_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::LifespanPolicy::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::LifespanPolicy_var::operator const ::PortableServer::LifespanPolicy_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::LifespanPolicy_var::operator ::PortableServer::LifespanPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr
+PortableServer::LifespanPolicy_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr
+PortableServer::LifespanPolicy_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr &
+PortableServer::LifespanPolicy_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr &
+PortableServer::LifespanPolicy_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::LifespanPolicy::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr
+PortableServer::LifespanPolicy_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::LifespanPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::LifespanPolicy::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_LIFESPANPOLICY___OUT_CI_)
+#define _PORTABLESERVER_LIFESPANPOLICY___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::LifespanPolicy_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::LifespanPolicy_out::LifespanPolicy_out (LifespanPolicy_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::LifespanPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::LifespanPolicy_out::LifespanPolicy_out (LifespanPolicy_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::LifespanPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::LifespanPolicy_out::LifespanPolicy_out (const ::PortableServer::LifespanPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (LifespanPolicy_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_out &
+PortableServer::LifespanPolicy_out::operator= (const ::PortableServer::LifespanPolicy_out &p)
+{
+ this->ptr_ = ACE_const_cast (LifespanPolicy_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::LifespanPolicy_out &
+PortableServer::LifespanPolicy_out::operator= (const ::PortableServer::LifespanPolicy_var &p)
+{
+ this->ptr_ = ::PortableServer::LifespanPolicy::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::LifespanPolicy_out &
+PortableServer::LifespanPolicy_out::operator= (LifespanPolicy_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::LifespanPolicy_out::operator ::PortableServer::LifespanPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr &
+PortableServer::LifespanPolicy_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::LifespanPolicy_ptr
+PortableServer::LifespanPolicy_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CI_)
+#define _PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::IdUniquenessPolicy_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_var::IdUniquenessPolicy_var (void) // default constructor
+ : ptr_ (IdUniquenessPolicy::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr
+PortableServer::IdUniquenessPolicy_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_var::IdUniquenessPolicy_var (const ::PortableServer::IdUniquenessPolicy_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (IdUniquenessPolicy::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_var::~IdUniquenessPolicy_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::IdUniquenessPolicy_var &
+PortableServer::IdUniquenessPolicy_var::operator= (IdUniquenessPolicy_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::IdUniquenessPolicy_var &
+PortableServer::IdUniquenessPolicy_var::operator= (const ::PortableServer::IdUniquenessPolicy_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::IdUniquenessPolicy::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_var::operator const ::PortableServer::IdUniquenessPolicy_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_var::operator ::PortableServer::IdUniquenessPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr
+PortableServer::IdUniquenessPolicy_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr
+PortableServer::IdUniquenessPolicy_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr &
+PortableServer::IdUniquenessPolicy_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr &
+PortableServer::IdUniquenessPolicy_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::IdUniquenessPolicy::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr
+PortableServer::IdUniquenessPolicy_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::IdUniquenessPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::IdUniquenessPolicy::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CI_)
+#define _PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::IdUniquenessPolicy_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_out::IdUniquenessPolicy_out (IdUniquenessPolicy_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::IdUniquenessPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_out::IdUniquenessPolicy_out (IdUniquenessPolicy_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::IdUniquenessPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_out::IdUniquenessPolicy_out (const ::PortableServer::IdUniquenessPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (IdUniquenessPolicy_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_out &
+PortableServer::IdUniquenessPolicy_out::operator= (const ::PortableServer::IdUniquenessPolicy_out &p)
+{
+ this->ptr_ = ACE_const_cast (IdUniquenessPolicy_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::IdUniquenessPolicy_out &
+PortableServer::IdUniquenessPolicy_out::operator= (const ::PortableServer::IdUniquenessPolicy_var &p)
+{
+ this->ptr_ = ::PortableServer::IdUniquenessPolicy::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::IdUniquenessPolicy_out &
+PortableServer::IdUniquenessPolicy_out::operator= (IdUniquenessPolicy_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::IdUniquenessPolicy_out::operator ::PortableServer::IdUniquenessPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr &
+PortableServer::IdUniquenessPolicy_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdUniquenessPolicy_ptr
+PortableServer::IdUniquenessPolicy_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CI_)
+#define _PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::IdAssignmentPolicy_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_var::IdAssignmentPolicy_var (void) // default constructor
+ : ptr_ (IdAssignmentPolicy::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr
+PortableServer::IdAssignmentPolicy_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_var::IdAssignmentPolicy_var (const ::PortableServer::IdAssignmentPolicy_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (IdAssignmentPolicy::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_var::~IdAssignmentPolicy_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::IdAssignmentPolicy_var &
+PortableServer::IdAssignmentPolicy_var::operator= (IdAssignmentPolicy_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::IdAssignmentPolicy_var &
+PortableServer::IdAssignmentPolicy_var::operator= (const ::PortableServer::IdAssignmentPolicy_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::IdAssignmentPolicy::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_var::operator const ::PortableServer::IdAssignmentPolicy_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_var::operator ::PortableServer::IdAssignmentPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr
+PortableServer::IdAssignmentPolicy_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr
+PortableServer::IdAssignmentPolicy_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr &
+PortableServer::IdAssignmentPolicy_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr &
+PortableServer::IdAssignmentPolicy_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::IdAssignmentPolicy::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr
+PortableServer::IdAssignmentPolicy_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::IdAssignmentPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::IdAssignmentPolicy::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CI_)
+#define _PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::IdAssignmentPolicy_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_out::IdAssignmentPolicy_out (IdAssignmentPolicy_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::IdAssignmentPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_out::IdAssignmentPolicy_out (IdAssignmentPolicy_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::IdAssignmentPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_out::IdAssignmentPolicy_out (const ::PortableServer::IdAssignmentPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (IdAssignmentPolicy_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_out &
+PortableServer::IdAssignmentPolicy_out::operator= (const ::PortableServer::IdAssignmentPolicy_out &p)
+{
+ this->ptr_ = ACE_const_cast (IdAssignmentPolicy_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::IdAssignmentPolicy_out &
+PortableServer::IdAssignmentPolicy_out::operator= (const ::PortableServer::IdAssignmentPolicy_var &p)
+{
+ this->ptr_ = ::PortableServer::IdAssignmentPolicy::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::IdAssignmentPolicy_out &
+PortableServer::IdAssignmentPolicy_out::operator= (IdAssignmentPolicy_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::IdAssignmentPolicy_out::operator ::PortableServer::IdAssignmentPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr &
+PortableServer::IdAssignmentPolicy_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::IdAssignmentPolicy_ptr
+PortableServer::IdAssignmentPolicy_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CI_)
+#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ImplicitActivationPolicy_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_var::ImplicitActivationPolicy_var (void) // default constructor
+ : ptr_ (ImplicitActivationPolicy::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr
+PortableServer::ImplicitActivationPolicy_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_var::ImplicitActivationPolicy_var (const ::PortableServer::ImplicitActivationPolicy_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (ImplicitActivationPolicy::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_var::~ImplicitActivationPolicy_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::ImplicitActivationPolicy_var &
+PortableServer::ImplicitActivationPolicy_var::operator= (ImplicitActivationPolicy_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ImplicitActivationPolicy_var &
+PortableServer::ImplicitActivationPolicy_var::operator= (const ::PortableServer::ImplicitActivationPolicy_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ImplicitActivationPolicy::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_var::operator const ::PortableServer::ImplicitActivationPolicy_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_var::operator ::PortableServer::ImplicitActivationPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr
+PortableServer::ImplicitActivationPolicy_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr
+PortableServer::ImplicitActivationPolicy_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr &
+PortableServer::ImplicitActivationPolicy_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr &
+PortableServer::ImplicitActivationPolicy_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ImplicitActivationPolicy::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr
+PortableServer::ImplicitActivationPolicy_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::ImplicitActivationPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::ImplicitActivationPolicy::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CI_)
+#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ImplicitActivationPolicy_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_out::ImplicitActivationPolicy_out (ImplicitActivationPolicy_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::ImplicitActivationPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_out::ImplicitActivationPolicy_out (ImplicitActivationPolicy_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ImplicitActivationPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_out::ImplicitActivationPolicy_out (const ::PortableServer::ImplicitActivationPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (ImplicitActivationPolicy_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_out &
+PortableServer::ImplicitActivationPolicy_out::operator= (const ::PortableServer::ImplicitActivationPolicy_out &p)
+{
+ this->ptr_ = ACE_const_cast (ImplicitActivationPolicy_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ImplicitActivationPolicy_out &
+PortableServer::ImplicitActivationPolicy_out::operator= (const ::PortableServer::ImplicitActivationPolicy_var &p)
+{
+ this->ptr_ = ::PortableServer::ImplicitActivationPolicy::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::ImplicitActivationPolicy_out &
+PortableServer::ImplicitActivationPolicy_out::operator= (ImplicitActivationPolicy_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ImplicitActivationPolicy_out::operator ::PortableServer::ImplicitActivationPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr &
+PortableServer::ImplicitActivationPolicy_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ImplicitActivationPolicy_ptr
+PortableServer::ImplicitActivationPolicy_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CI_)
+#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantRetentionPolicy_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_var::ServantRetentionPolicy_var (void) // default constructor
+ : ptr_ (ServantRetentionPolicy::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr
+PortableServer::ServantRetentionPolicy_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_var::ServantRetentionPolicy_var (const ::PortableServer::ServantRetentionPolicy_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (ServantRetentionPolicy::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_var::~ServantRetentionPolicy_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::ServantRetentionPolicy_var &
+PortableServer::ServantRetentionPolicy_var::operator= (ServantRetentionPolicy_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantRetentionPolicy_var &
+PortableServer::ServantRetentionPolicy_var::operator= (const ::PortableServer::ServantRetentionPolicy_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantRetentionPolicy::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_var::operator const ::PortableServer::ServantRetentionPolicy_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_var::operator ::PortableServer::ServantRetentionPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr
+PortableServer::ServantRetentionPolicy_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr
+PortableServer::ServantRetentionPolicy_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr &
+PortableServer::ServantRetentionPolicy_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr &
+PortableServer::ServantRetentionPolicy_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantRetentionPolicy::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr
+PortableServer::ServantRetentionPolicy_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::ServantRetentionPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::ServantRetentionPolicy::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CI_)
+#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantRetentionPolicy_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_out::ServantRetentionPolicy_out (ServantRetentionPolicy_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::ServantRetentionPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_out::ServantRetentionPolicy_out (ServantRetentionPolicy_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantRetentionPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_out::ServantRetentionPolicy_out (const ::PortableServer::ServantRetentionPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (ServantRetentionPolicy_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_out &
+PortableServer::ServantRetentionPolicy_out::operator= (const ::PortableServer::ServantRetentionPolicy_out &p)
+{
+ this->ptr_ = ACE_const_cast (ServantRetentionPolicy_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantRetentionPolicy_out &
+PortableServer::ServantRetentionPolicy_out::operator= (const ::PortableServer::ServantRetentionPolicy_var &p)
+{
+ this->ptr_ = ::PortableServer::ServantRetentionPolicy::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantRetentionPolicy_out &
+PortableServer::ServantRetentionPolicy_out::operator= (ServantRetentionPolicy_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantRetentionPolicy_out::operator ::PortableServer::ServantRetentionPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr &
+PortableServer::ServantRetentionPolicy_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantRetentionPolicy_ptr
+PortableServer::ServantRetentionPolicy_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CI_)
+#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::RequestProcessingPolicy_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_var::RequestProcessingPolicy_var (void) // default constructor
+ : ptr_ (RequestProcessingPolicy::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr
+PortableServer::RequestProcessingPolicy_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_var::RequestProcessingPolicy_var (const ::PortableServer::RequestProcessingPolicy_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (RequestProcessingPolicy::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_var::~RequestProcessingPolicy_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::RequestProcessingPolicy_var &
+PortableServer::RequestProcessingPolicy_var::operator= (RequestProcessingPolicy_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::RequestProcessingPolicy_var &
+PortableServer::RequestProcessingPolicy_var::operator= (const ::PortableServer::RequestProcessingPolicy_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::RequestProcessingPolicy::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_var::operator const ::PortableServer::RequestProcessingPolicy_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_var::operator ::PortableServer::RequestProcessingPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr
+PortableServer::RequestProcessingPolicy_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr
+PortableServer::RequestProcessingPolicy_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr &
+PortableServer::RequestProcessingPolicy_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr &
+PortableServer::RequestProcessingPolicy_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::RequestProcessingPolicy::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr
+PortableServer::RequestProcessingPolicy_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::RequestProcessingPolicy_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::RequestProcessingPolicy::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CI_)
+#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::RequestProcessingPolicy_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_out::RequestProcessingPolicy_out (RequestProcessingPolicy_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::RequestProcessingPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_out::RequestProcessingPolicy_out (RequestProcessingPolicy_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::RequestProcessingPolicy::_nil ();
+}
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_out::RequestProcessingPolicy_out (const ::PortableServer::RequestProcessingPolicy_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (RequestProcessingPolicy_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_out &
+PortableServer::RequestProcessingPolicy_out::operator= (const ::PortableServer::RequestProcessingPolicy_out &p)
+{
+ this->ptr_ = ACE_const_cast (RequestProcessingPolicy_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::RequestProcessingPolicy_out &
+PortableServer::RequestProcessingPolicy_out::operator= (const ::PortableServer::RequestProcessingPolicy_var &p)
+{
+ this->ptr_ = ::PortableServer::RequestProcessingPolicy::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::RequestProcessingPolicy_out &
+PortableServer::RequestProcessingPolicy_out::operator= (RequestProcessingPolicy_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::RequestProcessingPolicy_out::operator ::PortableServer::RequestProcessingPolicy_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr &
+PortableServer::RequestProcessingPolicy_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::RequestProcessingPolicy_ptr
+PortableServer::RequestProcessingPolicy_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+// *************************************************************
+// Inline operations for exception PortableServer::POAManager::AdapterInactive
+// *************************************************************
+
+
+#if !defined (_PORTABLESERVER_POAMANAGER___VAR_CI_)
+#define _PORTABLESERVER_POAMANAGER___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::POAManager_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::POAManager_var::POAManager_var (void) // default constructor
+ : ptr_ (POAManager::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::POAManager_ptr
+PortableServer::POAManager_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::POAManager_var::POAManager_var (const ::PortableServer::POAManager_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (POAManager::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::POAManager_var::~POAManager_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::POAManager_var &
+PortableServer::POAManager_var::operator= (POAManager_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::POAManager_var &
+PortableServer::POAManager_var::operator= (const ::PortableServer::POAManager_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::POAManager::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::POAManager_var::operator const ::PortableServer::POAManager_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::POAManager_var::operator ::PortableServer::POAManager_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAManager_ptr
+PortableServer::POAManager_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAManager_ptr
+PortableServer::POAManager_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAManager_ptr &
+PortableServer::POAManager_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAManager_ptr &
+PortableServer::POAManager_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::POAManager::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAManager_ptr
+PortableServer::POAManager_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::POAManager_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::POAManager::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_POAMANAGER___OUT_CI_)
+#define _PORTABLESERVER_POAMANAGER___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::POAManager_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::POAManager_out::POAManager_out (POAManager_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::POAManager::_nil ();
+}
+
+ACE_INLINE
+PortableServer::POAManager_out::POAManager_out (POAManager_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::POAManager::_nil ();
+}
+
+ACE_INLINE
+PortableServer::POAManager_out::POAManager_out (const ::PortableServer::POAManager_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (POAManager_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::POAManager_out &
+PortableServer::POAManager_out::operator= (const ::PortableServer::POAManager_out &p)
+{
+ this->ptr_ = ACE_const_cast (POAManager_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::POAManager_out &
+PortableServer::POAManager_out::operator= (const ::PortableServer::POAManager_var &p)
+{
+ this->ptr_ = ::PortableServer::POAManager::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::POAManager_out &
+PortableServer::POAManager_out::operator= (POAManager_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::POAManager_out::operator ::PortableServer::POAManager_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAManager_ptr &
+PortableServer::POAManager_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::POAManager_ptr
+PortableServer::POAManager_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___VAR_CI_)
+#define _PORTABLESERVER_ADAPTERACTIVATOR___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::AdapterActivator_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::AdapterActivator_var::AdapterActivator_var (void) // default constructor
+ : ptr_ (AdapterActivator::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr
+PortableServer::AdapterActivator_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::AdapterActivator_var::AdapterActivator_var (const ::PortableServer::AdapterActivator_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (AdapterActivator::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::AdapterActivator_var::~AdapterActivator_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::AdapterActivator_var &
+PortableServer::AdapterActivator_var::operator= (AdapterActivator_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::AdapterActivator_var &
+PortableServer::AdapterActivator_var::operator= (const ::PortableServer::AdapterActivator_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::AdapterActivator::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::AdapterActivator_var::operator const ::PortableServer::AdapterActivator_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::AdapterActivator_var::operator ::PortableServer::AdapterActivator_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr
+PortableServer::AdapterActivator_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr
+PortableServer::AdapterActivator_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr &
+PortableServer::AdapterActivator_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr &
+PortableServer::AdapterActivator_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::AdapterActivator::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr
+PortableServer::AdapterActivator_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::AdapterActivator_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::AdapterActivator::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___OUT_CI_)
+#define _PORTABLESERVER_ADAPTERACTIVATOR___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::AdapterActivator_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::AdapterActivator_out::AdapterActivator_out (AdapterActivator_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::AdapterActivator::_nil ();
+}
+
+ACE_INLINE
+PortableServer::AdapterActivator_out::AdapterActivator_out (AdapterActivator_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::AdapterActivator::_nil ();
+}
+
+ACE_INLINE
+PortableServer::AdapterActivator_out::AdapterActivator_out (const ::PortableServer::AdapterActivator_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (AdapterActivator_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::AdapterActivator_out &
+PortableServer::AdapterActivator_out::operator= (const ::PortableServer::AdapterActivator_out &p)
+{
+ this->ptr_ = ACE_const_cast (AdapterActivator_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::AdapterActivator_out &
+PortableServer::AdapterActivator_out::operator= (const ::PortableServer::AdapterActivator_var &p)
+{
+ this->ptr_ = ::PortableServer::AdapterActivator::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::AdapterActivator_out &
+PortableServer::AdapterActivator_out::operator= (AdapterActivator_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::AdapterActivator_out::operator ::PortableServer::AdapterActivator_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr &
+PortableServer::AdapterActivator_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::AdapterActivator_ptr
+PortableServer::AdapterActivator_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTMANAGER___VAR_CI_)
+#define _PORTABLESERVER_SERVANTMANAGER___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantManager_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantManager_var::ServantManager_var (void) // default constructor
+ : ptr_ (ServantManager::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr
+PortableServer::ServantManager_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantManager_var::ServantManager_var (const ::PortableServer::ServantManager_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (ServantManager::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::ServantManager_var::~ServantManager_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::ServantManager_var &
+PortableServer::ServantManager_var::operator= (ServantManager_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantManager_var &
+PortableServer::ServantManager_var::operator= (const ::PortableServer::ServantManager_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantManager::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantManager_var::operator const ::PortableServer::ServantManager_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantManager_var::operator ::PortableServer::ServantManager_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr
+PortableServer::ServantManager_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr
+PortableServer::ServantManager_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr &
+PortableServer::ServantManager_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr &
+PortableServer::ServantManager_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantManager::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr
+PortableServer::ServantManager_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::ServantManager_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::ServantManager::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTMANAGER___OUT_CI_)
+#define _PORTABLESERVER_SERVANTMANAGER___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantManager_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantManager_out::ServantManager_out (ServantManager_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::ServantManager::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantManager_out::ServantManager_out (ServantManager_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantManager::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantManager_out::ServantManager_out (const ::PortableServer::ServantManager_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (ServantManager_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::ServantManager_out &
+PortableServer::ServantManager_out::operator= (const ::PortableServer::ServantManager_out &p)
+{
+ this->ptr_ = ACE_const_cast (ServantManager_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantManager_out &
+PortableServer::ServantManager_out::operator= (const ::PortableServer::ServantManager_var &p)
+{
+ this->ptr_ = ::PortableServer::ServantManager::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantManager_out &
+PortableServer::ServantManager_out::operator= (ServantManager_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantManager_out::operator ::PortableServer::ServantManager_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr &
+PortableServer::ServantManager_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantManager_ptr
+PortableServer::ServantManager_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___VAR_CI_)
+#define _PORTABLESERVER_SERVANTACTIVATOR___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantActivator_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantActivator_var::ServantActivator_var (void) // default constructor
+ : ptr_ (ServantActivator::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr
+PortableServer::ServantActivator_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantActivator_var::ServantActivator_var (const ::PortableServer::ServantActivator_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (ServantActivator::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::ServantActivator_var::~ServantActivator_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::ServantActivator_var &
+PortableServer::ServantActivator_var::operator= (ServantActivator_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantActivator_var &
+PortableServer::ServantActivator_var::operator= (const ::PortableServer::ServantActivator_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantActivator::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantActivator_var::operator const ::PortableServer::ServantActivator_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantActivator_var::operator ::PortableServer::ServantActivator_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr
+PortableServer::ServantActivator_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr
+PortableServer::ServantActivator_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr &
+PortableServer::ServantActivator_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr &
+PortableServer::ServantActivator_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantActivator::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr
+PortableServer::ServantActivator_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::ServantActivator_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::ServantActivator::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___OUT_CI_)
+#define _PORTABLESERVER_SERVANTACTIVATOR___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantActivator_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantActivator_out::ServantActivator_out (ServantActivator_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::ServantActivator::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantActivator_out::ServantActivator_out (ServantActivator_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantActivator::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantActivator_out::ServantActivator_out (const ::PortableServer::ServantActivator_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (ServantActivator_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::ServantActivator_out &
+PortableServer::ServantActivator_out::operator= (const ::PortableServer::ServantActivator_out &p)
+{
+ this->ptr_ = ACE_const_cast (ServantActivator_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantActivator_out &
+PortableServer::ServantActivator_out::operator= (const ::PortableServer::ServantActivator_var &p)
+{
+ this->ptr_ = ::PortableServer::ServantActivator::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantActivator_out &
+PortableServer::ServantActivator_out::operator= (ServantActivator_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantActivator_out::operator ::PortableServer::ServantActivator_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr &
+PortableServer::ServantActivator_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantActivator_ptr
+PortableServer::ServantActivator_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTLOCATOR___VAR_CI_)
+#define _PORTABLESERVER_SERVANTLOCATOR___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantLocator_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantLocator_var::ServantLocator_var (void) // default constructor
+ : ptr_ (ServantLocator::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr
+PortableServer::ServantLocator_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantLocator_var::ServantLocator_var (const ::PortableServer::ServantLocator_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (ServantLocator::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::ServantLocator_var::~ServantLocator_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::ServantLocator_var &
+PortableServer::ServantLocator_var::operator= (ServantLocator_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantLocator_var &
+PortableServer::ServantLocator_var::operator= (const ::PortableServer::ServantLocator_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantLocator::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantLocator_var::operator const ::PortableServer::ServantLocator_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::ServantLocator_var::operator ::PortableServer::ServantLocator_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr
+PortableServer::ServantLocator_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr
+PortableServer::ServantLocator_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr &
+PortableServer::ServantLocator_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr &
+PortableServer::ServantLocator_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantLocator::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr
+PortableServer::ServantLocator_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::ServantLocator_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::ServantLocator::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_SERVANTLOCATOR___OUT_CI_)
+#define _PORTABLESERVER_SERVANTLOCATOR___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::ServantLocator_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::ServantLocator_out::ServantLocator_out (ServantLocator_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::ServantLocator::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantLocator_out::ServantLocator_out (ServantLocator_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::ServantLocator::_nil ();
+}
+
+ACE_INLINE
+PortableServer::ServantLocator_out::ServantLocator_out (const ::PortableServer::ServantLocator_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (ServantLocator_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::ServantLocator_out &
+PortableServer::ServantLocator_out::operator= (const ::PortableServer::ServantLocator_out &p)
+{
+ this->ptr_ = ACE_const_cast (ServantLocator_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantLocator_out &
+PortableServer::ServantLocator_out::operator= (const ::PortableServer::ServantLocator_var &p)
+{
+ this->ptr_ = ::PortableServer::ServantLocator::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::ServantLocator_out &
+PortableServer::ServantLocator_out::operator= (ServantLocator_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::ServantLocator_out::operator ::PortableServer::ServantLocator_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr &
+PortableServer::ServantLocator_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::ServantLocator_ptr
+PortableServer::ServantLocator_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::AdapterAlreadyExists
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::AdapterNonExistent
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::InvalidPolicy
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::NoServant
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::ObjectAlreadyActive
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::ObjectNotActive
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::ServantAlreadyActive
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::ServantNotActive
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::WrongAdapter
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::POA::WrongPolicy
+// *************************************************************
+
+// *************************************************************
+// Inline operations for exception PortableServer::Current::NoContext
+// *************************************************************
+
+
+#if !defined (_PORTABLESERVER_CURRENT___VAR_CI_)
+#define _PORTABLESERVER_CURRENT___VAR_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::Current_var
+// *************************************************************
+
+ACE_INLINE
+PortableServer::Current_var::Current_var (void) // default constructor
+ : ptr_ (Current::_nil ())
+{}
+
+ACE_INLINE ::PortableServer::Current_ptr
+PortableServer::Current_var::ptr (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::Current_var::Current_var (const ::PortableServer::Current_var &p) // copy constructor
+ : TAO_Base_var (),
+ ptr_ (Current::_duplicate (p.ptr ()))
+{}
+
+ACE_INLINE
+PortableServer::Current_var::~Current_var (void) // destructor
+{
+ CORBA::release (this->ptr_);
+}
+
+ACE_INLINE PortableServer::Current_var &
+PortableServer::Current_var::operator= (Current_ptr p)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE PortableServer::Current_var &
+PortableServer::Current_var::operator= (const ::PortableServer::Current_var &p)
+{
+ if (this != &p)
+ {
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::Current::_duplicate (p.ptr ());
+ }
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::Current_var::operator const ::PortableServer::Current_ptr &() const // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE
+PortableServer::Current_var::operator ::PortableServer::Current_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::Current_ptr
+PortableServer::Current_var::operator-> (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::Current_ptr
+PortableServer::Current_var::in (void) const
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::Current_ptr &
+PortableServer::Current_var::inout (void)
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::Current_ptr &
+PortableServer::Current_var::out (void)
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::Current::_nil ();
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::Current_ptr
+PortableServer::Current_var::_retn (void)
+{
+ // yield ownership of managed obj reference
+ ::PortableServer::Current_ptr val = this->ptr_;
+ this->ptr_ = ::PortableServer::Current::_nil ();
+ return val;
+}
+
+
+#endif /* end #if !defined */
+
+
+#if !defined (_PORTABLESERVER_CURRENT___OUT_CI_)
+#define _PORTABLESERVER_CURRENT___OUT_CI_
+
+// *************************************************************
+// Inline operations for class PortableServer::Current_out
+// *************************************************************
+
+ACE_INLINE
+PortableServer::Current_out::Current_out (Current_ptr &p)
+ : ptr_ (p)
+{
+ this->ptr_ = ::PortableServer::Current::_nil ();
+}
+
+ACE_INLINE
+PortableServer::Current_out::Current_out (Current_var &p) // constructor from _var
+ : ptr_ (p.out ())
+{
+ CORBA::release (this->ptr_);
+ this->ptr_ = ::PortableServer::Current::_nil ();
+}
+
+ACE_INLINE
+PortableServer::Current_out::Current_out (const ::PortableServer::Current_out &p) // copy constructor
+ : ptr_ (ACE_const_cast (Current_out &, p).ptr_)
+{}
+
+ACE_INLINE ::PortableServer::Current_out &
+PortableServer::Current_out::operator= (const ::PortableServer::Current_out &p)
+{
+ this->ptr_ = ACE_const_cast (Current_out&, p).ptr_;
+ return *this;
+}
+
+ACE_INLINE PortableServer::Current_out &
+PortableServer::Current_out::operator= (const ::PortableServer::Current_var &p)
+{
+ this->ptr_ = ::PortableServer::Current::_duplicate (p.ptr ());
+ return *this;
+}
+
+ACE_INLINE PortableServer::Current_out &
+PortableServer::Current_out::operator= (Current_ptr p)
+{
+ this->ptr_ = p;
+ return *this;
+}
+
+ACE_INLINE
+PortableServer::Current_out::operator ::PortableServer::Current_ptr &() // cast
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::Current_ptr &
+PortableServer::Current_out::ptr (void) // ptr
+{
+ return this->ptr_;
+}
+
+ACE_INLINE ::PortableServer::Current_ptr
+PortableServer::Current_out::operator-> (void)
+{
+ return this->ptr_;
+}
+
+
+#endif /* end #if !defined */
+
+ACE_INLINE CORBA::Boolean
+operator<< (
+ TAO_OutputCDR &,
+ const PortableServer::POA_ptr
+ );
+ACE_INLINE CORBA::Boolean
+operator>> (
+ TAO_InputCDR &,
+ PortableServer::POA_ptr &
+ );
+
+#if !defined _TAO_CDR_OP_PortableServer_ObjectId_I_
+#define _TAO_CDR_OP_PortableServer_ObjectId_I_
+
+CORBA::Boolean TAO_Export operator<< (
+ TAO_OutputCDR &,
+ const PortableServer::ObjectId &
+ );
+CORBA::Boolean TAO_Export operator>> (
+ TAO_InputCDR &,
+ PortableServer::ObjectId &
+ );
+
+#endif /* _TAO_CDR_OP_PortableServer_ObjectId_I_ */
+
+#if (TAO_HAS_MINIMUM_CORBA == 0)
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ForwardRequest &_tao_aggregate)
+{
+ // first marshal the repository ID
+ if (strm << _tao_aggregate._id ())
+ {
+ // now marshal the members (if any)
+ if (
+ (strm << _tao_aggregate.forward_reference.in ())
+ )
+ return 1;
+ else
+ return 0;
+ }
+ else
+ return 0;
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm,PortableServer::ForwardRequest &_tao_aggregate)
+{
+ // now marshal the members
+ if (
+ (strm >> _tao_aggregate.forward_reference.out ())
+ )
+ return 1;
+ else
+ return 0;
+}
+
+#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
+
+ACE_INLINE
+ostream & operator<< (ostream &os, const PortableServer::ForwardRequest &_tao_aggregate)
+{
+ CORBA::TypeCode_ptr tc = _tao_aggregate._type ();
+ if (tc)
+ {
+ os << tc->name () << " (";
+ }
+ os << _tao_aggregate._id ();
+ if (tc)
+ {
+ os << ")";
+ }
+ return os;
+}
+
+#endif /* ACE_LACKS_IOSTREAM_TOTALLY */
+
+#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ThreadPolicyValue &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::ThreadPolicyValue &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::LifespanPolicyValue &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::LifespanPolicyValue &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::IdUniquenessPolicyValue &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::IdUniquenessPolicyValue &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::IdAssignmentPolicyValue &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::IdAssignmentPolicyValue &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
+
+#if (TAO_HAS_MINIMUM_POA == 0)
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ImplicitActivationPolicyValue &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::ImplicitActivationPolicyValue &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ServantRetentionPolicyValue &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::ServantRetentionPolicyValue &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
+
+ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::RequestProcessingPolicyValue &_tao_enumval)
+{
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+}
+
+ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, PortableServer::RequestProcessingPolicyValue &_tao_enumval)
+{
+ CORBA::ULong _tao_temp;
+ if (strm.read_ulong (_tao_temp))
+ {
+ ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));
+ return 1;
+ }
+ else
+ return 0;
+}
+
+#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/RT_Mutex.cpp b/TAO/tao/RT_Mutex.cpp
index 681f533c7fd..fb8d89fcc7e 100644
--- a/TAO/tao/RT_Mutex.cpp
+++ b/TAO/tao/RT_Mutex.cpp
@@ -37,18 +37,6 @@ TAO_RT_Mutex::try_lock (TimeBase::TimeT,
return 0;
}
-void
-TAO_RT_Mutex::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_RT_Mutex::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
#endif /* TAO_HAS_RT_CORBA == 1 */
////////////////////////////////////////////////////////////////////////////////
diff --git a/TAO/tao/RT_Mutex.h b/TAO/tao/RT_Mutex.h
index 37570e7cc03..ba5b79d8afb 100644
--- a/TAO/tao/RT_Mutex.h
+++ b/TAO/tao/RT_Mutex.h
@@ -41,7 +41,7 @@
class TAO_Export TAO_RT_Mutex :
public RTCORBA::Mutex,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// RTCORBA::Mutex implementation.
@@ -68,15 +68,6 @@ public:
CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ())
ACE_THROW_SPEC ((CORBA::SystemException));
-
- // = Override CORBA::LocalObject no-op methods to
- // provide reference counting.
-
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
};
#if defined (__ACE_INLINE__)
diff --git a/TAO/tao/RT_Policy_i.cpp b/TAO/tao/RT_Policy_i.cpp
index 2a152fd44ad..c74021e59f1 100644
--- a/TAO/tao/RT_Policy_i.cpp
+++ b/TAO/tao/RT_Policy_i.cpp
@@ -22,7 +22,7 @@ TAO_PriorityModelPolicy::TAO_PriorityModelPolicy
TAO_PriorityModelPolicy::TAO_PriorityModelPolicy (const
TAO_PriorityModelPolicy &rhs)
: RTCORBA::PriorityModelPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
priority_model_ (rhs.priority_model_),
server_priority_ (rhs.server_priority_)
{
@@ -102,18 +102,6 @@ TAO_PriorityModelPolicy::_tao_decode (TAO_InputCDR &in_cdr)
return 0;
}
-void
-TAO_PriorityModelPolicy::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_PriorityModelPolicy::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
// ****************************************************************
TAO_ThreadpoolPolicy::TAO_ThreadpoolPolicy (RTCORBA::ThreadpoolId id)
@@ -124,7 +112,7 @@ TAO_ThreadpoolPolicy::TAO_ThreadpoolPolicy (RTCORBA::ThreadpoolId id)
TAO_ThreadpoolPolicy::TAO_ThreadpoolPolicy (const TAO_ThreadpoolPolicy
&rhs)
: RTCORBA::ThreadpoolPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
id_ (rhs.id_)
{
}
@@ -163,18 +151,6 @@ void TAO_ThreadpoolPolicy::destroy (CORBA::Environment &)
{
}
-void
-TAO_ThreadpoolPolicy::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_ThreadpoolPolicy::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
// ****************************************************************
TAO_PrivateConnectionPolicy::TAO_PrivateConnectionPolicy (void)
@@ -184,7 +160,7 @@ TAO_PrivateConnectionPolicy::TAO_PrivateConnectionPolicy (void)
TAO_PrivateConnectionPolicy::TAO_PrivateConnectionPolicy (const
TAO_PrivateConnectionPolicy &)
: RTCORBA::PrivateConnectionPolicy (),
- CORBA::LocalObject ()
+ TAO_Local_RefCounted_Object ()
{
}
@@ -216,18 +192,6 @@ TAO_PrivateConnectionPolicy::destroy (CORBA::Environment &)
{
}
-void
-TAO_PrivateConnectionPolicy::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_PrivateConnectionPolicy::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
// ****************************************************************
TAO_PriorityBandedConnectionPolicy::TAO_PriorityBandedConnectionPolicy
@@ -240,7 +204,7 @@ TAO_PriorityBandedConnectionPolicy::TAO_PriorityBandedConnectionPolicy
TAO_PriorityBandedConnectionPolicy::TAO_PriorityBandedConnectionPolicy
(const TAO_PriorityBandedConnectionPolicy &rhs)
: RTCORBA::PriorityBandedConnectionPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
priority_bands_ (rhs.priority_bands_)
{
}
@@ -286,18 +250,6 @@ void TAO_PriorityBandedConnectionPolicy::destroy (CORBA::Environment &)
{
}
-void
-TAO_PriorityBandedConnectionPolicy::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_PriorityBandedConnectionPolicy::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
///////////////////////////////////////////////////////
// Method for serialization support.
@@ -417,7 +369,7 @@ TAO_TCP_Properties::no_delay (CORBA::Boolean no_delay,
CORBA::Boolean
TAO_TCP_Properties::_tao_encode (TAO_OutputCDR & out_cdr)
{
- return ((out_cdr << this->send_buffer_size_)
+ return ((out_cdr << this->send_buffer_size_)
&&
(out_cdr << this->recv_buffer_size_)
&&
@@ -442,18 +394,6 @@ TAO_TCP_Properties::_tao_decode (TAO_InputCDR &in_cdr)
(in_cdr.read_boolean (this->no_delay_)));
}
-void
-TAO_TCP_Properties::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_TCP_Properties::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
// ****************************************************************
TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy (const
@@ -466,7 +406,7 @@ TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy (const
TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy (const
TAO_ServerProtocolPolicy &rhs)
: RTCORBA::ServerProtocolPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
protocols_ (rhs.protocols_)
{
}
@@ -513,18 +453,6 @@ TAO_ServerProtocolPolicy::destroy (CORBA::Environment &)
{
}
-void
-TAO_ServerProtocolPolicy::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_ServerProtocolPolicy::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
// ****************************************************************
TAO_ClientProtocolPolicy::TAO_ClientProtocolPolicy (const
@@ -537,7 +465,7 @@ TAO_ClientProtocolPolicy::TAO_ClientProtocolPolicy (const
TAO_ClientProtocolPolicy::TAO_ClientProtocolPolicy (const
TAO_ClientProtocolPolicy &rhs)
: RTCORBA::ClientProtocolPolicy (),
- CORBA::LocalObject (),
+ TAO_Local_RefCounted_Object (),
protocols_ (rhs.protocols_)
{
}
@@ -584,18 +512,6 @@ TAO_ClientProtocolPolicy::destroy (CORBA::Environment &)
{
}
-void
-TAO_ClientProtocolPolicy::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_ClientProtocolPolicy::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
///////////////////////////////////////////////////////
// Method for serialization support.
@@ -613,7 +529,7 @@ TAO_ClientProtocolPolicy::_tao_encode (TAO_OutputCDR &out_cdr)
(i < this->protocols_.length ()) && is_write_ok;
i++)
{
- is_write_ok =
+ is_write_ok =
(out_cdr << protocols_[i].protocol_type)
&&
this->protocols_[i].orb_protocol_properties->_tao_encode (out_cdr)
@@ -671,18 +587,6 @@ TAO_GIOP_Properties::~TAO_GIOP_Properties (void)
{
}
-void
-TAO_GIOP_Properties::_add_ref (void)
-{
- this->_incr_refcnt ();
-}
-
-void
-TAO_GIOP_Properties::_remove_ref (void)
-{
- this->_decr_refcnt ();
-}
-
// ****************************************************************
RTCORBA::ProtocolProperties*
diff --git a/TAO/tao/RT_Policy_i.h b/TAO/tao/RT_Policy_i.h
index d308fb043c1..246953b37d8 100644
--- a/TAO/tao/RT_Policy_i.h
+++ b/TAO/tao/RT_Policy_i.h
@@ -44,7 +44,7 @@ class Policy_Factory;
class TAO_Export TAO_PriorityModelPolicy :
public RTCORBA::PriorityModelPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// RTCORBA::PriorityModelPolicy implementation
@@ -99,12 +99,6 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
protected:
friend class TAO_Policy_Factory;
@@ -123,7 +117,7 @@ private:
class TAO_Export TAO_ThreadpoolPolicy :
public RTCORBA::ThreadpoolPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// RTCORBA::ThreadpoolPolicy implementation
@@ -159,12 +153,6 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
private:
RTCORBA::ThreadpoolId id_;
@@ -175,7 +163,7 @@ private:
class TAO_Export TAO_PrivateConnectionPolicy :
public RTCORBA::PrivateConnectionPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// RTCORBA::PrivateConnectionPolicy implementation
@@ -208,18 +196,13 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
};
+
////////////////////////////////////////////////////////////////////////////
class TAO_Export TAO_PriorityBandedConnectionPolicy :
public RTCORBA::PriorityBandedConnectionPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// RTCORBA::PriorityBandedConnectionPolicy implementation
@@ -271,12 +254,6 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
protected:
friend class TAO_Policy_Factory;
@@ -293,7 +270,7 @@ private:
class TAO_Export TAO_ServerProtocolPolicy :
public RTCORBA::ServerProtocolPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// RTCORBA::ServerProtocolPolicy implementation
@@ -330,13 +307,6 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
-
private:
RTCORBA::ProtocolList protocols_;
@@ -347,7 +317,7 @@ private:
class TAO_Export TAO_ClientProtocolPolicy :
public RTCORBA::ClientProtocolPolicy,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
// RTCORBA::ClientProtocolPolicy implementation
@@ -397,12 +367,6 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
protected:
friend class TAO_Policy_Factory;
@@ -420,7 +384,7 @@ private:
class TAO_Export TAO_TCP_Properties :
public RTCORBA::TCPProtocolProperties,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
// = TITLE
@@ -499,12 +463,6 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
private:
// = Attributes.
@@ -519,7 +477,7 @@ class TAO_Protocol_Properties_Factory;
class TAO_Export TAO_GIOP_Properties :
public RTCORBA::GIOPProtocolProperties,
- public CORBA::LocalObject
+ public TAO_Local_RefCounted_Object
{
public:
virtual ~TAO_GIOP_Properties ();
@@ -527,12 +485,6 @@ public:
// = Override CORBA::LocalObject no-op methods to
// provide reference counting.
- virtual void _add_ref (void);
- // Increment the reference count.
-
- virtual void _remove_ref (void);
- // Decrement the reference count.
-
protected:
friend class TAO_Protocol_Properties_Factory;
TAO_GIOP_Properties (void);
diff --git a/TAO/tao/Servant_Base.cpp b/TAO/tao/Servant_Base.cpp
index a7274abcdd3..7924218ac56 100644
--- a/TAO/tao/Servant_Base.cpp
+++ b/TAO/tao/Servant_Base.cpp
@@ -372,31 +372,6 @@ TAO_Local_ServantBase::_dispatch (CORBA::ServerRequest &,
ACE_THROW (CORBA::BAD_OPERATION ());
}
-TAO_Stub *
-TAO_Locality_Constrained_ServantBase::_create_stub (CORBA_Environment &ACE_TRY_ENV)
-{
- // Get our default POA.
- PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- // This call might register us with the POA if we are not already
- // registered and if the POA has the correct policies.
- CORBA::Object_var object = poa->servant_to_reference (this, ACE_TRY_ENV);
- ACE_CHECK_RETURN (0);
-
- // Still return a null stub. This will signify a locality
- // constrained object, i.e., one that cannot be exported.
- return 0;
-}
-
-void
-TAO_Locality_Constrained_ServantBase::_dispatch (CORBA::ServerRequest &,
- void *,
- CORBA_Environment &ACE_TRY_ENV)
-{
- ACE_THROW (CORBA::BAD_OPERATION ());
-}
-
#if (TAO_HAS_MINIMUM_CORBA == 0)
CORBA::Object_ptr
diff --git a/TAO/tao/Servant_Base.h b/TAO/tao/Servant_Base.h
index 80c4e7da949..3d380313c1c 100644
--- a/TAO/tao/Servant_Base.h
+++ b/TAO/tao/Servant_Base.h
@@ -24,7 +24,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
class TAO_Operation_Table;
@@ -254,29 +254,6 @@ protected:
// Throws CORBA::BAD_OPERATION exception.
};
-class TAO_Export TAO_Locality_Constrained_ServantBase : public virtual TAO_ServantBase
-{
- // = TITLE
- // Base class for locality constrained servants.
- //
- // = DESCRIPTION
- // This servant does register with the POA. However, it does
- // not produce a valid stub, i.e., object references of this
- // servant cannot be exported. The (collocated) stubs of these
- // servants can either call directly to the servant or go
- // through the POA.
- //
-protected:
- TAO_Stub *_create_stub (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- // This is an auxiliar method for _this(). We do register with the
- // default POA.
-
- void _dispatch (CORBA::ServerRequest &request,
- void *context,
- CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ());
- // Throws CORBA::BAD_OPERATION exception.
-};
-
#if (TAO_HAS_MINIMUM_CORBA == 0)
class TAO_Export TAO_DynamicImplementation : public virtual TAO_ServantBase
diff --git a/TAO/tao/Server_Request.cpp b/TAO/tao/Server_Request.cpp
index ec63bbccc6f..b25888b618b 100644
--- a/TAO/tao/Server_Request.cpp
+++ b/TAO/tao/Server_Request.cpp
@@ -5,7 +5,6 @@
#include "tao/Server_Request.h"
#include "tao/CDR.h"
-#include "tao/POAC.h"
#include "tao/Environment.h"
#include "tao/NVList.h"
#include "tao/Principal.h"
diff --git a/TAO/tao/TAO.dsp b/TAO/tao/TAO.dsp
index 8ddc88bac58..c78f14afab1 100644
--- a/TAO/tao/TAO.dsp
+++ b/TAO/tao/TAO.dsp
@@ -556,25 +556,6 @@ SOURCE=.\CurrentC.cpp
# End Source File
# Begin Source File
-SOURCE=.\CurrentS.cpp
-
-!IF "$(CFG)" == "TAO DLL - Win32 Alpha Release"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 Alpha Debug"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 MFC Release"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 MFC Debug"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 Release"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 Debug"
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
SOURCE=.\debug.cpp
!IF "$(CFG)" == "TAO DLL - Win32 Alpha Release"
@@ -2057,7 +2038,7 @@ SOURCE=.\POA.cpp
# End Source File
# Begin Source File
-SOURCE=.\POAC.cpp
+SOURCE=.\PortableServerC.cpp
!IF "$(CFG)" == "TAO DLL - Win32 Alpha Release"
@@ -2095,25 +2076,6 @@ SOURCE=.\POAManager.cpp
# End Source File
# Begin Source File
-SOURCE=.\POAS.cpp
-
-!IF "$(CFG)" == "TAO DLL - Win32 Alpha Release"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 Alpha Debug"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 MFC Release"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 MFC Debug"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 Release"
-
-!ELSEIF "$(CFG)" == "TAO DLL - Win32 Debug"
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
SOURCE=.\Policy_Factory.cpp
!IF "$(CFG)" == "TAO DLL - Win32 Alpha Release"
@@ -3762,11 +3724,7 @@ SOURCE=.\poa_macros.h
# End Source File
# Begin Source File
-SOURCE=.\poa_T.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\poaC.h
+SOURCE=.\PortableServerC.h
# End Source File
# Begin Source File
@@ -3774,10 +3732,6 @@ SOURCE=.\POAManager.h
# End Source File
# Begin Source File
-SOURCE=.\poaS.h
-# End Source File
-# Begin Source File
-
SOURCE=.\Policy_Factory.h
# End Source File
# Begin Source File
@@ -4274,7 +4228,7 @@ SOURCE=.\params.i
# End Source File
# Begin Source File
-SOURCE=.\poaC.i
+SOURCE=.\PortableServerC.i
# End Source File
# Begin Source File
@@ -4282,10 +4236,6 @@ SOURCE=.\POAManager.i
# End Source File
# Begin Source File
-SOURCE=.\poaS.i
-# End Source File
-# Begin Source File
-
SOURCE=.\Policy_Factory.i
# End Source File
# Begin Source File
diff --git a/TAO/tao/TAO.h b/TAO/tao/TAO.h
index e0bcb693440..173e02c7689 100644
--- a/TAO/tao/TAO.h
+++ b/TAO/tao/TAO.h
@@ -27,7 +27,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/POAC.h"
+#include "tao/PortableServerC.h"
#include "tao/ORB.h"
class TAO_Export TAO_ORB_Manager
diff --git a/TAO/tao/TAO_Static.dsp b/TAO/tao/TAO_Static.dsp
index 8f6a8ec6105..c438f8937ba 100644
--- a/TAO/tao/TAO_Static.dsp
+++ b/TAO/tao/TAO_Static.dsp
@@ -155,10 +155,6 @@ SOURCE=.\CurrentC.cpp
# End Source File
# Begin Source File
-SOURCE=.\CurrentS.cpp
-# End Source File
-# Begin Source File
-
SOURCE=.\debug.cpp
# End Source File
# Begin Source File
@@ -471,7 +467,7 @@ SOURCE=.\POA.cpp
# End Source File
# Begin Source File
-SOURCE=.\POAC.cpp
+SOURCE=.\PortableServerC.cpp
# End Source File
# Begin Source File
@@ -479,10 +475,6 @@ SOURCE=.\POAManager.cpp
# End Source File
# Begin Source File
-SOURCE=.\POAS.cpp
-# End Source File
-# Begin Source File
-
SOURCE=.\Policy_Factory.cpp
# End Source File
# Begin Source File
@@ -1115,11 +1107,7 @@ SOURCE=.\poa_macros.h
# End Source File
# Begin Source File
-SOURCE=.\poa_T.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\poaC.h
+SOURCE=.\PortableServerC.h
# End Source File
# Begin Source File
@@ -1127,10 +1115,6 @@ SOURCE=.\POAManager.h
# End Source File
# Begin Source File
-SOURCE=.\poaS.h
-# End Source File
-# Begin Source File
-
SOURCE=.\Policy_Manager.h
# End Source File
# Begin Source File
@@ -1611,7 +1595,7 @@ SOURCE=.\params.i
# End Source File
# Begin Source File
-SOURCE=.\poaC.i
+SOURCE=.\PortableServerC.i
# End Source File
# Begin Source File
@@ -1619,10 +1603,6 @@ SOURCE=.\POAManager.i
# End Source File
# Begin Source File
-SOURCE=.\poaS.i
-# End Source File
-# Begin Source File
-
SOURCE=.\Policy_Manager.i
# End Source File
# Begin Source File
diff --git a/TAO/tao/diffs/Current.pidl.diff b/TAO/tao/diffs/Current.pidl.diff
new file mode 100644
index 00000000000..5e195a12645
--- /dev/null
+++ b/TAO/tao/diffs/Current.pidl.diff
@@ -0,0 +1,13 @@
+--- Current.pidl Fri Jun 23 23:25:45 2000
++++ Current.pidl.mod Fri Jun 23 23:33:00 2000
+@@ -58,9 +58,6 @@
+
+ #pragma prefix "omg.org"
+
+-module CORBA
+-{
+- local interface Current {};
+-};
++local interface CORBA_Current {};
+
+ #pragma prefix ""
diff --git a/TAO/tao/diffs/CurrentC.cpp.diff b/TAO/tao/diffs/CurrentC.cpp.diff
new file mode 100644
index 00000000000..89379304e65
--- /dev/null
+++ b/TAO/tao/diffs/CurrentC.cpp.diff
@@ -0,0 +1,29 @@
+--- CurrentC.cpp Sat Jun 24 02:48:51 2000
++++ CurrentC.cpp.mod Sat Jun 24 02:47:40 2000
+@@ -7,10 +7,10 @@
+ // Information about TAO is available at:
+ // http://www.cs.wustl.edu/~schmidt/TAO.html
+
+-#include "CurrentC.h"
++#include "tao/CurrentC.h"
+
+ #if !defined (__ACE_INLINE__)
+-#include "CurrentC.i"
++#include "tao/CurrentC.i"
+ #endif /* !defined INLINE */
+
+
+@@ -78,7 +78,7 @@
+
+ const char* CORBA_Current::_interface_repository_id (void) const
+ {
+- return "IDL:omg.org/CORBA_Current:1.0";
++ return "IDL:omg.org/CORBA/Current:1.0";
+ }
+
+ #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+@@ -87,4 +87,3 @@
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<CORBA_Current,CORBA_Current_var>
+ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+-
diff --git a/TAO/tao/diffs/CurrentC.h.diff b/TAO/tao/diffs/CurrentC.h.diff
new file mode 100644
index 00000000000..b181d8237bc
--- /dev/null
+++ b/TAO/tao/diffs/CurrentC.h.diff
@@ -0,0 +1,20 @@
+--- CurrentC.h Sat Jun 24 02:48:51 2000
++++ CurrentC.h.mod Sat Jun 24 02:47:49 2000
+@@ -11,7 +11,7 @@
+ #define _TAO_IDL_CURRENTC_H_
+
+ #include "ace/pre.h"
+-#include "tao/corba.h"
++#include "tao/Object.h"
+
+ #if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
+ #include "ace/streams.h"
+@@ -162,7 +162,7 @@
+
+
+ #if defined (__ACE_INLINE__)
+-#include "CurrentC.i"
++#include "tao/CurrentC.i"
+ #endif /* defined INLINE */
+
+ #if defined(_MSC_VER) && (_MSC_VER >= 1200)
diff --git a/TAO/tao/diffs/CurrentC.i.diff b/TAO/tao/diffs/CurrentC.i.diff
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/TAO/tao/diffs/CurrentC.i.diff
diff --git a/TAO/tao/diffs/MessagingS.h.diff b/TAO/tao/diffs/MessagingS.h.diff
index d96b61992f5..2069a5d628a 100644
--- a/TAO/tao/diffs/MessagingS.h.diff
+++ b/TAO/tao/diffs/MessagingS.h.diff
@@ -1,8 +1,8 @@
---- orig/MessagingS.h Sun Apr 30 18:03:08 2000
-+++ MessagingS.h Sun Apr 30 18:06:01 2000
+--- orig/MessagingS.h Sun Apr 30 18:03:08 2000
++++ MessagingS.h Sun Apr 30 18:06:01 2000
@@ -11,11 +11,15 @@
#define _TAO_IDL_ORIG_MESSAGINGS_H_
-
+
#include "ace/pre.h"
+
+#include "orbconf.h"
@@ -14,13 +14,13 @@
-#include "PolicyS.h"
-#include "PollableS.h"
#include "MessagingC.h"
-+#include "POAC.h"
++#include "PortableServerC.h"
+#include "Servant_Base.h"
-
-
+
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -31,6 +35,9 @@
-
+
TAO_NAMESPACE POA_Messaging
{
+
@@ -30,84 +30,84 @@
typedef ReplyHandler *ReplyHandler_ptr;
class TAO_Export ReplyHandler : public virtual PortableServer::ServantBase
@@ -45,7 +52,7 @@
-
+
virtual CORBA::Boolean _is_a (
const char* logical_type_id,
-- CORBA::Environment &ACE_TRY_ENV =
+- CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
-
+
@@ -57,7 +64,7 @@
CORBA::ServerRequest &req,
void *obj,
void *context,
-- CORBA::Environment &ACE_TRY_ENV =
+- CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
-
+
@@ -65,19 +72,19 @@
CORBA::ServerRequest &req,
void *obj,
void *context,
-- CORBA::Environment &ACE_TRY_ENV =
+- CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
-
+
virtual void _dispatch (
CORBA::ServerRequest &_tao_req,
void *_tao_context,
-- CORBA::Environment &ACE_TRY_ENV =
+- CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
-
+
::Messaging::ReplyHandler *_this (
-- CORBA::Environment &ACE_TRY_ENV =
+- CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
-
+
@@ -100,11 +107,11 @@
const CORBA::Char *logical_type_id,
CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
);
--
+-
+
virtual CORBA::Boolean _non_existent(
CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
);
--
+-
+
};
-
-
+
+
@@ -125,14 +132,14 @@
const CORBA::Char *logical_type_id,
CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
);
--
+-
+
ReplyHandler_ptr _get_servant (void) const;
--
+-
+
virtual CORBA::Boolean _non_existent(
CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()
);
--
--
+-
+-
+
+
private:
ReplyHandler_ptr servant_;
};
@@ -140,7 +147,7 @@
-
+
#endif /* end #if !defined */
-
--
+
+-
+
#if defined (ACE_HAS_USING_KEYWORD)
// TIE class: Refer to CORBA v2.2, Section 20.34.4
@@ -116,7 +116,7 @@
// ctor with T*, ownership flag and a POA
~ReplyHandler_tie (void);
// dtor
--
+-
+
// TIE specific functions
T *_tied_object (void);
@@ -125,11 +125,11 @@
// do we own it
void _is_owner (CORBA::Boolean b);
// set the ownership
--
+-
+
// overridden ServantBase operations
PortableServer::POA_ptr _default_POA (
-- CORBA::Environment &ACE_TRY_ENV =
+- CORBA::Environment &ACE_TRY_ENV =
+ CORBA::Environment &ACE_TRY_ENV =
TAO_default_environment ()
);
@@ -137,26 +137,26 @@
T *ptr_;
PortableServer::POA_var poa_;
CORBA::Boolean rel_;
--
+-
+
// copy and assignment are not allowed
ReplyHandler_tie (const ReplyHandler_tie &);
void operator= (const ReplyHandler_tie &);
@@ -187,6 +194,8 @@
-
+
#endif /* ACE_HAS_USING_KEYWORD */
-
+
+#endif /* TAO_HAS_AMI_CALLBACK == 1 */
+
}
TAO_NAMESPACE_CLOSE
-
+
@@ -199,6 +208,8 @@
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
+
+#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
-
+
#include "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/diffs/Policy.pidl.diff b/TAO/tao/diffs/Policy.pidl.diff
new file mode 100644
index 00000000000..4a806a4f700
--- /dev/null
+++ b/TAO/tao/diffs/Policy.pidl.diff
@@ -0,0 +1,96 @@
+--- Policy.pidl Sat Jun 24 04:57:24 2000
++++ Policy.pidl.mod Sat Jun 24 04:40:35 2000
+@@ -78,57 +78,53 @@
+ module CORBA
+ {
+ typedef short PolicyErrorCode;
+- const PolicyErrorCode BAD_POLICY = 0;
+- const PolicyErrorCode UNSUPPORTED_POLICY = 1;
+- const PolicyErrorCode BAD_POLICY_TYPE = 2;
+- const PolicyErrorCode BAD_POLICY_VALUE = 3;
+- const PolicyErrorCode UNSUPPORTED_POLICY_VALUE = 4;
+
+- exception PolicyError
+- {
+- PolicyErrorCode reason;
+- };
+-
+- exception InvalidPolicies
+- {
+- sequence<unsigned short> indices;
+- };
+-
+ typedef unsigned long PolicyType;
+- interface Policy
+- {
+- readonly attribute PolicyType policy_type;
+- Policy copy ();
+- void destroy ();
+- };
+-
+- typedef sequence<Policy> PolicyList;
+
+- typedef sequence<PolicyType> PolicyTypeSeq;
+-
+ enum SetOverrideType
+ {
+ SET_OVERRIDE,
+ ADD_OVERRIDE
+ };
+
+- local interface PolicyManager
+- {
+- PolicyList get_policy_overrides (in PolicyTypeSeq ts);
+- void set_policy_overrides (
+- in PolicyList policies,
+- in SetOverrideType set_add)
+- raises (InvalidPolicies);
+- };
+-
+- local interface Current
+- {
+- };
++};
+
+- local interface PolicyCurrent : PolicyManager, Current
+- {
+- };
++exception CORBA_PolicyError
++{
++ CORBA::PolicyErrorCode reason;
++};
++
++exception CORBA_InvalidPolicies
++{
++ sequence<unsigned short> indices;
++};
++
++interface CORBA_Policy
++{
++ readonly attribute CORBA::PolicyType policy_type;
++ CORBA_Policy copy ();
++ void destroy ();
++};
++
++typedef sequence<CORBA_Policy> CORBA_PolicyList;
++
++typedef sequence<CORBA::PolicyType> CORBA_PolicyTypeSeq;
++
++local interface CORBA_PolicyManager
++{
++ CORBA_PolicyList get_policy_overrides (in CORBA_PolicyTypeSeq ts);
++ void set_policy_overrides (
++ in CORBA_PolicyList policies,
++ in CORBA::SetOverrideType set_add)
++ raises (CORBA_InvalidPolicies);
++};
++
++local interface CORBA_Current
++{
++};
+
++local interface CORBA_PolicyCurrent : CORBA_PolicyManager, CORBA_Current
++{
+ };
+
+ #pragma prefix ""
diff --git a/TAO/tao/diffs/PolicyC.cpp.diff b/TAO/tao/diffs/PolicyC.cpp.diff
index 194e04e7464..6f0c69cf0a2 100644
--- a/TAO/tao/diffs/PolicyC.cpp.diff
+++ b/TAO/tao/diffs/PolicyC.cpp.diff
@@ -1,30 +1,18 @@
---- orig/PolicyC.cpp Thu Jun 15 14:01:44 2000
-+++ PolicyC.cpp Wed Jun 7 13:29:46 2000
-@@ -1,78 +1,72 @@
--/* -*- C++ -*- $Id$ */
-+// $Id$
-+
-+/* -*- C++ -*- */
-
- // ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
--// TAO and the TAO IDL Compiler have been developed by the Center for
--// Distributed Object Computing at Washington University, St. Louis.
-+// TAO ORB and the TAO IDL Compiler have been developed by Washington
-+// University Computer Science's Distributed Object Computing Group.
- //
--// Information about TAO is available at:
-+// Information on TAO is available at
+--- PolicyC.cpp Wed Jul 05 08:47:48 2000
++++ PolicyC.cpp.mod Wed Jul 05 08:42:42 2000
+@@ -7,52 +7,40 @@
+ // Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "PolicyC.h"
+#include "tao/PolicyC.h"
+#include "tao/Stub.h"
-+#include "tao/Servant_Base.h"
-+#include "tao/POA_CORBA.h"
+#include "tao/Invocation.h"
++#include "tao/NVList.h"
#if !defined (__ACE_INLINE__)
- #include "PolicyC.i"
+-#include "PolicyC.i"
++#include "tao/PolicyC.i"
#endif /* !defined INLINE */
-static const CORBA::Long _oc_CORBA_PolicyErrorCode[] =
@@ -33,2076 +21,179 @@
- 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4572726f), ACE_NTOHL (0x72436f64), ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/PolicyErrorCode:1.0
- 16, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63794572), ACE_NTOHL (0x726f7243), ACE_NTOHL (0x6f646500), // name = PolicyErrorCode
- CORBA::tk_short,
--
++// ****************************************************************
+
-};
-static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyErrorCode (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyErrorCode), (char *) &_oc_CORBA_PolicyErrorCode, 0, sizeof (CORBA::PolicyErrorCode));
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyErrorCode, &_tc_TAO_tc_CORBA_PolicyErrorCode)
--TAO_NAMESPACE_END
--TAO_NAMESPACE_TYPE (const CORBA::Short)
-+ACE_RCSID(tao, PolicyC, "$Id$")
-+
-+// ****************************************************************
-+
+TAO_NAMESPACE_TYPE (const CORBA::PolicyErrorCode)
TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (const CORBA::Short, BAD_POLICY, 0)
+-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyErrorCode, &_tc_TAO_tc_CORBA_PolicyErrorCode)
+TAO_NAMESPACE_DEFINE (const CORBA::PolicyErrorCode, BAD_POLICY, 0)
TAO_NAMESPACE_END
--TAO_NAMESPACE_TYPE (const CORBA::Short)
+-static const CORBA::Long _oc_CORBA_PolicyType[] =
+-{
+- TAO_ENCAP_BYTE_ORDER, // byte order
+- 33, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x54797065), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyType:1.0
+- 11, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795479), ACE_NTOHL (0x70650000), // name = PolicyType
+- CORBA::tk_ulong,
+-
+-};
+-static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyType (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyType), (char *) &_oc_CORBA_PolicyType, 0, sizeof (CORBA::PolicyType));
+-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_TYPE (const CORBA::PolicyErrorCode)
TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (const CORBA::Short, UNSUPPORTED_POLICY, 1)
+-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyType, &_tc_TAO_tc_CORBA_PolicyType)
+TAO_NAMESPACE_DEFINE (const CORBA::PolicyErrorCode, UNSUPPORTED_POLICY, 1)
TAO_NAMESPACE_END
--TAO_NAMESPACE_TYPE (const CORBA::Short)
+-static const CORBA::Long _oc_CORBA_SetOverrideType[] =
+-{
+- TAO_ENCAP_BYTE_ORDER, // byte order
+- 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f5365), ACE_NTOHL (0x744f7665), ACE_NTOHL (0x72726964), ACE_NTOHL (0x65547970), ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/SetOverrideType:1.0
+- 16, ACE_NTOHL (0x5365744f), ACE_NTOHL (0x76657272), ACE_NTOHL (0x69646554), ACE_NTOHL (0x79706500), // name = SetOverrideType
+- 2, // member count
+- 13, ACE_NTOHL (0x5345545f), ACE_NTOHL (0x4f564552), ACE_NTOHL (0x52494445), ACE_NTOHL (0x0), // name = SET_OVERRIDE
+- 13, ACE_NTOHL (0x4144445f), ACE_NTOHL (0x4f564552), ACE_NTOHL (0x52494445), ACE_NTOHL (0x0), // name = ADD_OVERRIDE
+-};
+-static CORBA::TypeCode _tc_TAO_tc_CORBA_SetOverrideType (CORBA::tk_enum, sizeof (_oc_CORBA_SetOverrideType), (char *) &_oc_CORBA_SetOverrideType, 0, sizeof (CORBA::SetOverrideType));
+-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
+TAO_NAMESPACE_TYPE (const CORBA::PolicyErrorCode)
- TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (const CORBA::Short, BAD_POLICY_TYPE, 2)
++TAO_NAMESPACE_BEGIN (CORBA)
+TAO_NAMESPACE_DEFINE (const CORBA::PolicyErrorCode, BAD_POLICY_TYPE, 2)
- TAO_NAMESPACE_END
--TAO_NAMESPACE_TYPE (const CORBA::Short)
++TAO_NAMESPACE_END
+TAO_NAMESPACE_TYPE (const CORBA::PolicyErrorCode)
TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (const CORBA::Short, BAD_POLICY_VALUE, 3)
+-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_SetOverrideType, &_tc_TAO_tc_CORBA_SetOverrideType)
+TAO_NAMESPACE_DEFINE (const CORBA::PolicyErrorCode, BAD_POLICY_VALUE, 3)
TAO_NAMESPACE_END
--TAO_NAMESPACE_TYPE (const CORBA::Short)
+TAO_NAMESPACE_TYPE (const CORBA::PolicyErrorCode)
- TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (const CORBA::Short, UNSUPPORTED_POLICY_VALUE, 4)
++TAO_NAMESPACE_BEGIN (CORBA)
+TAO_NAMESPACE_DEFINE (const CORBA::PolicyErrorCode, UNSUPPORTED_POLICY_VALUE, 4)
- TAO_NAMESPACE_END
++TAO_NAMESPACE_END
+
+// ****************************************************************
+
// default constructor
--CORBA::PolicyError::PolicyError (void)
-- : CORBA_UserException (::CORBA::_tc_PolicyError)
-+CORBA_PolicyError::CORBA_PolicyError (void)
-+ : CORBA_UserException (CORBA::_tc_PolicyError)
- {
- }
-
- // destructor - all members are of self managing types
--CORBA::PolicyError::~PolicyError (void)
-+CORBA_PolicyError::~CORBA_PolicyError (void)
- {
- }
-
--void CORBA::PolicyError::_tao_any_destructor (void *x)
--{
-- PolicyError *tmp = ACE_static_cast (PolicyError*,x);
-- delete tmp;
--}
--
- // copy constructor
--CORBA::PolicyError::PolicyError (const ::CORBA::PolicyError &_tao_excp)
-+CORBA_PolicyError::CORBA_PolicyError (const CORBA_PolicyError &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
- {
- this->reason = _tao_excp.reason;
- }
-
- // assignment operator
--CORBA::PolicyError&
--CORBA::PolicyError::operator= (const ::CORBA::PolicyError &_tao_excp)
-+CORBA_PolicyError&
-+CORBA_PolicyError::operator= (const CORBA_PolicyError &_tao_excp)
- {
-
- this->CORBA_UserException::operator= (_tao_excp);
-@@ -81,35 +75,30 @@
- }
-
- // narrow
--CORBA::PolicyError *
--CORBA::PolicyError::_downcast (CORBA::Exception *exc)
-+CORBA_PolicyError_ptr
-+CORBA_PolicyError::_downcast (CORBA::Exception *exc)
- {
- if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/PolicyError:1.0", exc->_id ())) // same type
-- return ACE_dynamic_cast (PolicyError *, exc);
-+ return ACE_dynamic_cast (CORBA_PolicyError_ptr, exc);
+ CORBA_PolicyError::CORBA_PolicyError (void)
+ : CORBA_UserException (::_tc_CORBA_PolicyError)
+@@ -91,7 +79,7 @@
+ CORBA_PolicyError *
+ CORBA_PolicyError::_downcast (CORBA::Exception *exc)
+ {
+- if (!ACE_OS::strcmp ("IDL:omg.org/CORBA_PolicyError:1.0", exc->_id ())) // same type
++ if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/PolicyError:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (CORBA_PolicyError *, exc);
else
return 0;
- }
-
--
--void CORBA::PolicyError::_raise ()
-+void CORBA_PolicyError::_raise (void)
- {
- TAO_RAISE(*this);
- }
-
--
--void CORBA::PolicyError::_tao_encode (
-- TAO_OutputCDR &cdr,
-- CORBA::Environment &ACE_TRY_ENV) const
-+void CORBA_PolicyError::_tao_encode (TAO_OutputCDR &cdr,
-+ CORBA::Environment &ACE_TRY_ENV) const
- {
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
- }
-
--
--void CORBA::PolicyError::_tao_decode (
-- TAO_InputCDR &cdr,
-- CORBA::Environment &ACE_TRY_ENV)
-+void CORBA_PolicyError::_tao_decode (TAO_InputCDR &cdr,
-+ CORBA::Environment &ACE_TRY_ENV)
- {
- if (cdr >> *this)
- return;
-@@ -117,165 +106,47 @@
- }
-
- // TAO extension - the _alloc method
--CORBA::Exception *CORBA::PolicyError::_alloc (void)
-+CORBA::Exception *CORBA_PolicyError::_alloc (void)
- {
- CORBA::Exception *retval = 0;
-- ACE_NEW_RETURN (retval, ::CORBA::PolicyError, 0);
-+
-+ ACE_NEW_RETURN (retval,
-+ CORBA_PolicyError,
-+ 0);
- return retval;
- }
-
--CORBA::PolicyError::PolicyError (
-- CORBA::PolicyErrorCode _tao_reason
--)
-+CORBA_PolicyError::CORBA_PolicyError(
-+ CORBA::PolicyErrorCode _tao_reason)
-+
- : CORBA_UserException (CORBA::TypeCode::_duplicate (CORBA::_tc_PolicyError))
+@@ -292,7 +280,7 @@
+ CORBA_InvalidPolicies *
+ CORBA_InvalidPolicies::_downcast (CORBA::Exception *exc)
{
- this->reason = _tao_reason;
- }
-
--static const CORBA::Long _oc_CORBA_PolicyError[] =
--{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 34, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4572726f), ACE_NTOHL (0x723a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/PolicyError:1.0
-- 12, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63794572), ACE_NTOHL (0x726f7200), // name = PolicyError
-- 1, // member count
-- 7, ACE_NTOHL (0x72656173), ACE_NTOHL (0x6f6e0000), // name = reason
-- CORBA::tk_alias, // typecode kind for typedefs
-- 72, // encapsulation length
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4572726f), ACE_NTOHL (0x72436f64), ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/PolicyErrorCode:1.0
-- 16, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63794572), ACE_NTOHL (0x726f7243), ACE_NTOHL (0x6f646500), // name = PolicyErrorCode
-- CORBA::tk_short,
--
--
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyError (CORBA::tk_except, sizeof (_oc_CORBA_PolicyError), (char *) &_oc_CORBA_PolicyError, 0, sizeof (CORBA::PolicyError));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyError, &_tc_TAO_tc_CORBA_PolicyError)
--TAO_NAMESPACE_END
--
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
--
--#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_)
--#define __TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_
--
-- void
-- CORBA::InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_allocate_buffer (CORBA::ULong length)
-- {
-- CORBA::UShort* tmp = 0;
-- tmp = _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::allocbuf (length);
--
-- if (this->buffer_ != 0)
-- {
-- CORBA::UShort *old = ACE_reinterpret_cast (CORBA::UShort *,this->buffer_);
--
-- for (CORBA::ULong i = 0; i < this->length_; ++i)
-- tmp[i] = old[i];
--
-- if (this->release_)
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::freebuf (old);
--
-- }
-- this->buffer_ = tmp;
-- }
--
-- void
-- CORBA::InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::_deallocate_buffer (void)
-- {
-- if (this->buffer_ == 0 || this->release_ == 0)
-- return;
--
-- CORBA::UShort *tmp = ACE_reinterpret_cast (CORBA::UShort *,this->buffer_);
--
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::freebuf (tmp);
-- this->buffer_ = 0;
-- }
--
-- CORBA::InvalidPolicies::_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort::~_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (void) // Dtor.
-- {
-- this->_deallocate_buffer ();
-- }
--
--
--#endif /* end #if !defined */
--
--
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
--
--#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_)
--#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CS_
--
--// *************************************************************
--// CORBA::InvalidPolicies::_tao_seq_UShort
--// *************************************************************
--
--CORBA::InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (void)
--{}
--CORBA::InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (CORBA::ULong max) // uses max size
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::UShort>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (max)
--{}
--CORBA::InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (CORBA::ULong max, CORBA::ULong length, CORBA::UShort *buffer, CORBA::Boolean release)
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::UShort>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (max, length, buffer, release)
--{}
--CORBA::InvalidPolicies::_tao_seq_UShort::_tao_seq_UShort (const _tao_seq_UShort &seq) // copy ctor
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::UShort>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (seq)
--{}
--CORBA::InvalidPolicies::_tao_seq_UShort::~_tao_seq_UShort (void) // dtor
--{}
--void CORBA::InvalidPolicies::_tao_seq_UShort::_tao_any_destructor (void *x)
--{
-- _tao_seq_UShort *tmp = ACE_static_cast (_tao_seq_UShort*,x);
-- delete tmp;
--}
--
--
--#endif /* end #if !defined */
-+// ****************************************************************
-
- // default constructor
--CORBA::InvalidPolicies::InvalidPolicies (void)
-- : CORBA_UserException (::CORBA::_tc_InvalidPolicies)
-+CORBA_InvalidPolicies::CORBA_InvalidPolicies (void)
-+ : CORBA_UserException (CORBA::_tc_InvalidPolicies)
- {
- }
-
- // destructor - all members are of self managing types
--CORBA::InvalidPolicies::~InvalidPolicies (void)
-+CORBA_InvalidPolicies::~CORBA_InvalidPolicies (void)
- {
- }
-
--void CORBA::InvalidPolicies::_tao_any_destructor (void *x)
--{
-- InvalidPolicies *tmp = ACE_static_cast (InvalidPolicies*,x);
-- delete tmp;
--}
--
- // copy constructor
--CORBA::InvalidPolicies::InvalidPolicies (const ::CORBA::InvalidPolicies &_tao_excp)
-+CORBA_InvalidPolicies::CORBA_InvalidPolicies (const CORBA_InvalidPolicies &_tao_excp)
- : CORBA_UserException (_tao_excp._type ())
- {
- this->indices = _tao_excp.indices;
- }
-
- // assignment operator
--CORBA::InvalidPolicies&
--CORBA::InvalidPolicies::operator= (const ::CORBA::InvalidPolicies &_tao_excp)
-+CORBA_InvalidPolicies&
-+CORBA_InvalidPolicies::operator= (const CORBA_InvalidPolicies &_tao_excp)
- {
-
- this->CORBA_UserException::operator= (_tao_excp);
-@@ -284,35 +155,30 @@
- }
-
- // narrow
--CORBA::InvalidPolicies *
--CORBA::InvalidPolicies::_downcast (CORBA::Exception *exc)
-+CORBA_InvalidPolicies_ptr
-+CORBA_InvalidPolicies::_downcast (CORBA::Exception *exc)
- {
- if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/InvalidPolicies:1.0", exc->_id ())) // same type
-- return ACE_dynamic_cast (InvalidPolicies *, exc);
-+ return ACE_dynamic_cast (CORBA_InvalidPolicies_ptr, exc);
+- if (!ACE_OS::strcmp ("IDL:omg.org/CORBA_InvalidPolicies:1.0", exc->_id ())) // same type
++ if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/InvalidPolicies:1.0", exc->_id ())) // same type
+ return ACE_dynamic_cast (CORBA_InvalidPolicies *, exc);
else
return 0;
- }
-
--
--void CORBA::InvalidPolicies::_raise ()
-+void CORBA_InvalidPolicies::_raise (void)
- {
- TAO_RAISE(*this);
- }
-
--
--void CORBA::InvalidPolicies::_tao_encode (
-- TAO_OutputCDR &cdr,
-- CORBA::Environment &ACE_TRY_ENV) const
-+void CORBA_InvalidPolicies::_tao_encode (TAO_OutputCDR &cdr,
-+ CORBA::Environment &ACE_TRY_ENV) const
- {
- if (cdr << *this)
- return;
- ACE_THROW (CORBA::MARSHAL ());
- }
-
--
--void CORBA::InvalidPolicies::_tao_decode (
-- TAO_InputCDR &cdr,
-- CORBA::Environment &ACE_TRY_ENV)
-+void CORBA_InvalidPolicies::_tao_decode (TAO_InputCDR &cdr,
-+ CORBA::Environment &ACE_TRY_ENV)
- {
- if (cdr >> *this)
- return;
-@@ -320,269 +186,143 @@
- }
-
- // TAO extension - the _alloc method
--CORBA::Exception *CORBA::InvalidPolicies::_alloc (void)
-+CORBA::Exception *CORBA_InvalidPolicies::_alloc (void)
- {
- CORBA::Exception *retval = 0;
-- ACE_NEW_RETURN (retval, ::CORBA::InvalidPolicies, 0);
-+
-+ ACE_NEW_RETURN (retval,
-+ CORBA_InvalidPolicies,
-+ 0);
-+
- return retval;
- }
-
--CORBA::InvalidPolicies::InvalidPolicies (
-- const CORBA::InvalidPolicies::_tao_seq_UShort & _tao_indices
--)
-+CORBA_InvalidPolicies::CORBA_InvalidPolicies(
-+ const CORBA_InvalidPolicies::_tao_seq_UShort & _tao_indices)
-+
- : CORBA_UserException (CORBA::TypeCode::_duplicate (CORBA::_tc_InvalidPolicies))
- {
- this->indices = _tao_indices;
- }
-
--static const CORBA::Long _oc_CORBA_InvalidPolicies[] =
--{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f496e), ACE_NTOHL (0x76616c69), ACE_NTOHL (0x64506f6c), ACE_NTOHL (0x69636965), ACE_NTOHL (0x733a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/InvalidPolicies:1.0
-- 16, ACE_NTOHL (0x496e7661), ACE_NTOHL (0x6c696450), ACE_NTOHL (0x6f6c6963), ACE_NTOHL (0x69657300), // name = InvalidPolicies
-- 1, // member count
-- 8, ACE_NTOHL (0x696e6469), ACE_NTOHL (0x63657300), // name = indices
-- CORBA::tk_sequence, // typecode kind
-- 12, // encapsulation length
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- CORBA::tk_ushort,
--
-- 0U,
--
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_InvalidPolicies (CORBA::tk_except, sizeof (_oc_CORBA_InvalidPolicies), (char *) &_oc_CORBA_InvalidPolicies, 0, sizeof (CORBA::InvalidPolicies));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_InvalidPolicies, &_tc_TAO_tc_CORBA_InvalidPolicies)
--TAO_NAMESPACE_END
--static const CORBA::Long _oc_CORBA_PolicyType[] =
--{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 33, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x54797065), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyType:1.0
-- 11, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795479), ACE_NTOHL (0x70650000), // name = PolicyType
-- CORBA::tk_ulong,
--
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyType (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyType), (char *) &_oc_CORBA_PolicyType, 0, sizeof (CORBA::PolicyType));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyType, &_tc_TAO_tc_CORBA_PolicyType)
--TAO_NAMESPACE_END
--
--// default constructor
--CORBA::Policy::Policy (void)
--{}
--
--// destructor
--CORBA::Policy::~Policy (void)
--{}
--
--void CORBA::Policy::_tao_any_destructor (void *x)
--{
-- Policy *tmp = ACE_static_cast (Policy*,x);
-- CORBA::release (tmp);
--}
-+// ****************************************************************
-
--CORBA::Policy_ptr CORBA::Policy::_narrow (
-+CORBA_Policy_ptr CORBA_Policy::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
- {
- if (CORBA::is_nil (obj))
-- return Policy::_nil ();
-- if (! obj->_is_local ())
-- {
-- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/Policy:1.0", ACE_TRY_ENV);
-- ACE_CHECK_RETURN (Policy::_nil ());
-- if (is_a == 0)
-- return Policy::_nil ();
-- }
-- return Policy::_unchecked_narrow (obj, ACE_TRY_ENV);
--}
--
--CORBA::Policy_ptr CORBA::Policy::_unchecked_narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &
-- )
--{
-- if (CORBA::is_nil (obj))
-- return Policy::_nil ();
-- if (! obj->_is_local ())
-- {
-- TAO_Stub* stub = obj->_stubobj ();
-- if (stub)
-- stub->_incr_refcnt ();
-- Policy_ptr default_proxy = Policy::_nil ();
--
-- if (obj->_is_collocated () && _TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer != 0)
-- {
-- default_proxy = _TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer (obj);
-- }
-- if (CORBA::is_nil (default_proxy))
-- ACE_NEW_RETURN (default_proxy, Policy (stub), Policy::_nil ());
-- #if (TAO_HAS_SMART_PROXIES == 1)
-- return TAO_CORBA_Policy_PROXY_FACTORY_ADAPTER::instance ()->create_proxy (default_proxy);
-- #else
-- return default_proxy;
-- #endif /*TAO_HAS_SMART_PROXIES == 1*/
-- }
-- else
-- return
-- ACE_reinterpret_cast
-- (
-- Policy_ptr,
-- obj->_tao_QueryInterface
-- (
-- ACE_reinterpret_cast
-- (
-- ptr_arith_t,
-- &Policy::_narrow
-- )
-- )
-- );
--}
-+ return CORBA_Policy::_nil ();
-+ CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/Policy:1.0", ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (CORBA_Policy::_nil ());
-+ if (is_a == 0)
-+ return CORBA_Policy::_nil ();
-+ TAO_Stub* stub = obj->_stubobj ();
-+ void* servant = 0;
-+ if (obj->_is_collocated () && obj->_servant() != 0)
-+ servant = obj->_servant()->_downcast ("IDL:omg.org/CORBA/Policy:1.0");
-+#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-+ if (servant == 0)
-+ ACE_THROW_RETURN (CORBA::MARSHAL (), CORBA::Policy::_nil ());
-+#else
-+ stub->_incr_refcnt ();
-+ if (servant == 0)
-+ {
-+ CORBA_Policy_ptr rval =
-+ CORBA_Policy::_nil ();
-+
-+ ACE_NEW_RETURN (rval,
-+ CORBA_Policy (stub),
-+ CORBA_Policy::_nil ());
-+
-+ return rval;
-+ }
-+
-+#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-+
-+ CORBA_Policy_ptr retval =
-+ CORBA_Policy::_nil ();
-+
-+ ACE_NEW_RETURN (
-+ retval,
-+ POA_CORBA::_tao_collocated_Policy (
-+ ACE_reinterpret_cast (POA_CORBA::Policy_ptr,
-+ servant),
-+ stub
-+ ),
-+ CORBA_Policy::_nil ()
-+ );
-
--CORBA::Policy_ptr
--CORBA::Policy::_duplicate (Policy_ptr obj)
--{
-- if (!CORBA::is_nil (obj))
-- obj->_add_ref ();
-- return obj;
-+ return retval;
- }
-
--CORBA::PolicyType CORBA::Policy::policy_type (
-+#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-+CORBA::PolicyType CORBA_Policy::policy_type (
- CORBA::Environment &ACE_TRY_ENV
- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ))
--{
--
-- CORBA::PolicyType _tao_retval = 0;
--
--
-+{
-+ CORBA::PolicyType _tao_retval = 0;
-+
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-
--
-+
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
-- "_get_policy_type",
-+ "_get_""policy_type",
- 16,
- istub->orb_core ()
- );
-
--#if (TAO_HAS_INTERCEPTORS == 1)
-- TAO_ClientRequestInterceptor_Adapter
-- _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
-- ACE_CHECK_RETURN (_tao_retval);
-- PortableInterceptor::Cookies _tao_cookies;
-- CORBA::NVList_var _tao_interceptor_args;
-- if (_tao_vfr.valid ())
-- {
-- istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
-- ACE_CHECK_RETURN (_tao_retval);
-- }
--
-- ACE_TRY
-- {
--#endif /* TAO_HAS_INTERCEPTORS */
--
-- for (;;)
-- {
-- _tao_call.start (ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.preinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "_get_policy_type",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
-- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
--
-- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
--
-- int _invoke_status =
-- _tao_call.invoke (0, 0, ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
--
-- if (_invoke_status == TAO_INVOKE_RESTART)
-- continue;
-- if (_invoke_status != TAO_INVOKE_OK)
-- {
-- TAO_INTERCEPTOR_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
--
-- }
-- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
-- if (!(
-- (_tao_in >> _tao_retval)
-- ))
-- TAO_INTERCEPTOR_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.postinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "_get_policy_type",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK_RETURN (_tao_retval);
-- break;
--
-- }
--#if (TAO_HAS_INTERCEPTORS == 1)
--
-- }
-- ACE_CATCHANY
-+
-+ for (;;)
-+ {
-+ _tao_call.start (ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (_tao_retval);
-+
-+ CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-+
-+ _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
-+ ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (_tao_retval);
-+
-+ int _invoke_status =
-+ _tao_call.invoke (0, 0, ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (_tao_retval);
-+
-+ if (_invoke_status == TAO_INVOKE_RESTART)
-+ continue;
-+ // if (_invoke_status == TAO_INVOKE_EXCEPTION)
-+ // cannot happen
-+ if (_invoke_status != TAO_INVOKE_OK)
+@@ -382,7 +370,7 @@
+ return CORBA_Policy::_nil ();
+ if (! obj->_is_local ())
{
-- _tao_vfr.exception_occurred (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "_get_policy_type",
-- _tao_cookies,
-- ACE_TRY_ENV
-- );
-- ACE_RETHROW;
-+ ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-+
- }
-- ACE_ENDTRY;
-- ACE_CHECK_RETURN (_tao_retval);
--#endif /* TAO_HAS_INTERCEPTORS */
-+ break;
-+
-+ }
-+ TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
-+ if (!(
-+ (_tao_in >> _tao_retval)
-+ ))
-+ ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
- return _tao_retval;
- }
-
--CORBA::Policy_ptr CORBA::Policy::copy (
-+CORBA_Policy_ptr CORBA_Policy::copy (
- CORBA::Environment &ACE_TRY_ENV
- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ))
--{
--
-- CORBA::Policy_ptr _tao_retval = CORBA::Policy::_nil ();
-- CORBA::Policy_var _tao_safe_retval (_tao_retval);
--
--
-+{
-+ CORBA_Policy_ptr _tao_retval = CORBA_Policy::_nil ();
-+
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
-- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
-+ ACE_THROW_RETURN (CORBA::INTERNAL (), _tao_retval);
-+
-
--
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "copy",
-@@ -590,115 +330,52 @@
- istub->orb_core ()
- );
-
--#if (TAO_HAS_INTERCEPTORS == 1)
-- TAO_ClientRequestInterceptor_Adapter
-- _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
-- ACE_CHECK_RETURN (0);
-- PortableInterceptor::Cookies _tao_cookies;
-- CORBA::NVList_var _tao_interceptor_args;
-- if (_tao_vfr.valid ())
-- {
-- istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
-- ACE_CHECK_RETURN (0);
-- }
--
-- ACE_TRY
-- {
--#endif /* TAO_HAS_INTERCEPTORS */
--
-- for (;;)
-- {
-- _tao_call.start (ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.preinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "copy",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
-- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
--
-- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
--
-- int _invoke_status =
-- _tao_call.invoke (0, 0, ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
--
-- if (_invoke_status == TAO_INVOKE_RESTART)
-- continue;
-- if (_invoke_status != TAO_INVOKE_OK)
-- {
-- TAO_INTERCEPTOR_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), 0);
--
-- }
-- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
-- if (!(
-- (_tao_in >> _tao_safe_retval.inout ())
-- ))
-- TAO_INTERCEPTOR_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), 0);
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.postinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "copy",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
-- break;
--
-- }
--#if (TAO_HAS_INTERCEPTORS == 1)
--
-- }
-- ACE_CATCHANY
-+
-+ for (;;)
-+ {
-+ _tao_call.start (ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (_tao_retval);
-+
-+ CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-+
-+ _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
-+ ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (_tao_retval);
-+
-+ int _invoke_status =
-+ _tao_call.invoke (0, 0, ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (_tao_retval);
-+
-+ if (_invoke_status == TAO_INVOKE_RESTART)
-+ continue;
-+ // if (_invoke_status == TAO_INVOKE_EXCEPTION)
-+ // cannot happen
-+ if (_invoke_status != TAO_INVOKE_OK)
- {
-- _tao_vfr.exception_occurred (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "copy",
-- _tao_cookies,
-- ACE_TRY_ENV
-- );
-- ACE_RETHROW;
-+ ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-+
- }
-- ACE_ENDTRY;
-- ACE_CHECK_RETURN (0);
--#endif /* TAO_HAS_INTERCEPTORS */
-- return _tao_safe_retval._retn ();
-+ break;
-+
-+ }
-+ TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
-+ if (!(
-+ (_tao_in >> _tao_retval)
-+ ))
-+ ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
-+ return _tao_retval;
- }
-
--void CORBA::Policy::destroy (
-+void CORBA_Policy::destroy (
- CORBA::Environment &ACE_TRY_ENV
- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ))
- {
--
-
--
--
- TAO_Stub *istub = this->_stubobj ();
- if (istub == 0)
- ACE_THROW (CORBA::INTERNAL ());
-
--
-+
- TAO_GIOP_Twoway_Invocation _tao_call (
- istub,
- "destroy",
-@@ -706,1109 +383,336 @@
- istub->orb_core ()
- );
-
--#if (TAO_HAS_INTERCEPTORS == 1)
-- TAO_ClientRequestInterceptor_Adapter
-- _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
-- ACE_CHECK;
-- PortableInterceptor::Cookies _tao_cookies;
-- CORBA::NVList_var _tao_interceptor_args;
-- if (_tao_vfr.valid ())
-- {
-- istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
-+
-+ for (;;)
-+ {
-+ _tao_call.start (ACE_TRY_ENV);
- ACE_CHECK;
-- }
-
-- ACE_TRY
-- {
--#endif /* TAO_HAS_INTERCEPTORS */
-+ CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
-
-- for (;;)
-- {
-- _tao_call.start (ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK;
-+ _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
-+ ACE_TRY_ENV);
-+ ACE_CHECK;
-
-- TAO_INTERCEPTOR (
-- _tao_vfr.preinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "destroy",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK;
-- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
--
-- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK;
--
-- int _invoke_status =
-- _tao_call.invoke (0, 0, ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK;
--
-- if (_invoke_status == TAO_INVOKE_RESTART)
-- continue;
-- if (_invoke_status != TAO_INVOKE_OK)
-- {
-- TAO_INTERCEPTOR_THROW (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES));
-- }
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.postinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "destroy",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK;
-- break;
--
-- }
--#if (TAO_HAS_INTERCEPTORS == 1)
--
-- }
-- ACE_CATCHANY
-+ int _invoke_status =
-+ _tao_call.invoke (0, 0, ACE_TRY_ENV);
-+ ACE_CHECK;
-+
-+ if (_invoke_status == TAO_INVOKE_RESTART)
-+ continue;
-+ // if (_invoke_status == TAO_INVOKE_EXCEPTION)
-+ // cannot happen
-+ if (_invoke_status != TAO_INVOKE_OK)
- {
-- _tao_vfr.exception_occurred (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "destroy",
-- _tao_cookies,
-- ACE_TRY_ENV
-- );
-- ACE_RETHROW;
-+ ACE_THROW (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES));
-+
- }
-- ACE_ENDTRY;
-- ACE_CHECK;
--#endif /* TAO_HAS_INTERCEPTORS */
-+ break;
-+
-+ }
-
- }
-+#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
--CORBA::Boolean CORBA::Policy::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
-+CORBA::Boolean CORBA_Policy::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
+- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA_Policy:1.0", ACE_TRY_ENV);
++ CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/Policy:1.0", ACE_TRY_ENV);
+ ACE_CHECK_RETURN (CORBA_Policy::_nil ());
+ if (is_a == 0)
+ return CORBA_Policy::_nil ();
+@@ -786,7 +774,7 @@
+ CORBA::Boolean CORBA_Policy::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
{
if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Policy:1.0")) ||
+- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA_Policy:1.0")) ||
++ (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Policy:1.0")) ||
(!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
return 1; // success using local knowledge
else
-- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV);
-+ return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call
- }
+@@ -811,7 +799,19 @@
--void *CORBA::Policy::_tao_QueryInterface (ptr_arith_t type)
-+const char* CORBA_Policy::_interface_repository_id (void) const
+ const char* CORBA_Policy::_interface_repository_id (void) const
{
-- void *retv = 0;
-- if (type == ACE_reinterpret_cast
-- (ptr_arith_t,
-- &ACE_NESTED_CLASS (::CORBA, Policy)::_narrow))
-- retv = ACE_reinterpret_cast (void*, this);
-- else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
-- retv = ACE_reinterpret_cast (void *,
-- ACE_static_cast (CORBA::Object_ptr, this));
--
-- if (retv)
-- this->_add_ref ();
-- return retv;
+- return "IDL:omg.org/CORBA_Policy:1.0";
+ return "IDL:omg.org/CORBA/Policy:1.0";
- }
-
--const char* CORBA::Policy::_interface_repository_id (void) const
-+CORBA_Policy_ptr
-+CORBA_Policy::_duplicate (CORBA_Policy_ptr obj)
- {
-- return "IDL:omg.org/CORBA/Policy:1.0";
-+ if (!CORBA::is_nil (obj))
-+ obj->_add_ref ();
-+ return obj;
- }
-
--static const CORBA::Long _oc_CORBA_Policy[] =
-+CORBA_Policy_ptr
-+CORBA_Policy::_nil (void)
- {
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 29, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/Policy:1.0
-- 7, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63790000), // name = Policy
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_Policy (CORBA::tk_objref, sizeof (_oc_CORBA_Policy), (char *) &_oc_CORBA_Policy, 0, sizeof (CORBA::Policy));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_Policy, &_tc_TAO_tc_CORBA_Policy)
--TAO_NAMESPACE_END
--
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
--
--#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CS_)
--#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CS_
--
-- // The Base_Sequence functions, please see tao/Sequence.h
-- void
-- CORBA::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_allocate_buffer (CORBA::ULong length)
-- {
-- CORBA::Policy **tmp = 0;
-- tmp = _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::allocbuf (length);
--
-- if (this->buffer_ != 0)
-- {
-- CORBA::Policy **old = ACE_reinterpret_cast (CORBA::Policy**, this->buffer_);
-- for (CORBA::ULong i = 0; i < this->length_; ++i)
-- if (!this->release_)
-- tmp[i] = CORBA::Policy::_duplicate (old[i]);
-- else
-- tmp[i] = old[i];
--
-- if (this->release_)
-- delete[] old;
--
-- }
-- this->buffer_ = tmp;
-- }
--
-- void
-- CORBA::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_deallocate_buffer (void)
-- {
-- if (this->buffer_ == 0 || this->release_ == 0)
-- return;
-- CORBA::Policy **tmp = ACE_reinterpret_cast (CORBA::Policy**, this->buffer_);
-- for (CORBA::ULong i = 0; i < this->length_; ++i)
-- {
-- CORBA::release (tmp[i]);
-- tmp[i] = CORBA::Policy::_nil ();
-- }
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList::freebuf (tmp);
-- this->buffer_ = 0;
-- }
--
-- CORBA::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList::~_TAO_Unbounded_Object_Sequence_CORBA_PolicyList (void)
-- {
-- this->_deallocate_buffer ();
-- }
--
-- void
-- CORBA::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_shrink_buffer (CORBA::ULong nl, CORBA::ULong ol)
-- {
-- CORBA::Policy **tmp = ACE_reinterpret_cast (CORBA::Policy**, this->buffer_);
--
-- for (CORBA::ULong i = nl; i < ol; ++i)
-- {
-- CORBA::release (tmp[i]);
-- tmp[i] = CORBA::Policy::_nil ();
-- }
-- }
-- void
-- CORBA::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_downcast (
-- void* target,
-- CORBA_Object *src,
-- CORBA_Environment &ACE_TRY_ENV
-- )
-- {
-- CORBA::Policy **tmp = ACE_static_cast (CORBA::Policy**, target);
-- *tmp = CORBA::Policy::_narrow (src, ACE_TRY_ENV);
-- }
--
-- CORBA_Object*
-- CORBA::_TAO_Unbounded_Object_Sequence_CORBA_PolicyList::_upcast (void *src) const
-- {
-- CORBA::Policy **tmp = ACE_static_cast (CORBA::Policy**, src);
-- return *tmp;
-- }
--
--#endif /* end #if !defined */
-+ return (CORBA_Policy_ptr)0;
+}
-
-+////////////////////////////////////////////////////////////////
-+// Serialization Support Methods
-+//
-+CORBA::Boolean
++
++CORBA::Boolean
+CORBA_Policy::_tao_encode (TAO_OutputCDR &)
+{
-+ return 0;
++ return 0;
+}
-
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-+CORBA::Boolean
++
++CORBA::Boolean
+CORBA_Policy::_tao_decode (TAO_InputCDR &)
+{
+ return 0;
-+}
-
--#if !defined (_CORBA_POLICYLIST_CS_)
--#define _CORBA_POLICYLIST_CS_
-
- // *************************************************************
--// CORBA::PolicyList
-+// CORBA_PolicyList
- // *************************************************************
-
--CORBA::PolicyList::PolicyList (void)
-+CORBA_PolicyList::CORBA_PolicyList (void)
- {}
--CORBA::PolicyList::PolicyList (CORBA::ULong max) // uses max size
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Object_Sequence<CORBA::Policy,CORBA::Policy_var>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (max)
-+CORBA_PolicyList::CORBA_PolicyList (CORBA::ULong max) // uses max size
-+ : TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var> (max)
- {}
--CORBA::PolicyList::PolicyList (CORBA::ULong max, CORBA::ULong length, CORBA::Policy_ptr *buffer, CORBA::Boolean release)
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Object_Sequence<CORBA::Policy,CORBA::Policy_var>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (max, length, buffer, release)
-+CORBA_PolicyList::CORBA_PolicyList (CORBA::ULong max, CORBA::ULong length, CORBA_Policy_ptr *buffer, CORBA::Boolean release)
-+ : TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var> (max, length, buffer, release)
- {}
--CORBA::PolicyList::PolicyList (const PolicyList &seq) // copy ctor
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Object_Sequence<CORBA::Policy,CORBA::Policy_var>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (seq)
-+CORBA_PolicyList::CORBA_PolicyList (const CORBA_PolicyList &seq) // copy ctor
-+ : TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var> (seq)
- {}
--CORBA::PolicyList::~PolicyList (void) // dtor
-+CORBA_PolicyList::~CORBA_PolicyList (void) // dtor
- {}
--void CORBA::PolicyList::_tao_any_destructor (void *x)
--{
-- PolicyList *tmp = ACE_static_cast (PolicyList*,x);
-- delete tmp;
--}
--
--
--#endif /* end #if !defined */
--
--static const CORBA::Long _oc_CORBA_PolicyList[] =
--{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 33, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4c697374), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyList:1.0
-- 11, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63794c69), ACE_NTOHL (0x73740000), // name = PolicyList
-- CORBA::tk_sequence, // typecode kind
-- 68, // encapsulation length
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- CORBA::tk_objref, // typecode kind
-- 52, // encapsulation length
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 29, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/Policy:1.0
-- 7, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63790000), // name = Policy
--
-- 0U,
--
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyList (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyList), (char *) &_oc_CORBA_PolicyList, 0, sizeof (CORBA::PolicyList));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyList, &_tc_TAO_tc_CORBA_PolicyList)
--TAO_NAMESPACE_END
--
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
--
--#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CS_)
--#define __TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CS_
--
-- void
-- CORBA::_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_allocate_buffer (CORBA::ULong length)
-- {
-- CORBA::ULong* tmp = 0;
-- tmp = _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::allocbuf (length);
--
-- if (this->buffer_ != 0)
-- {
-- CORBA::ULong *old = ACE_reinterpret_cast (CORBA::ULong *,this->buffer_);
--
-- for (CORBA::ULong i = 0; i < this->length_; ++i)
-- tmp[i] = old[i];
--
-- if (this->release_)
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::freebuf (old);
--
-- }
-- this->buffer_ = tmp;
-- }
--
-- void
-- CORBA::_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::_deallocate_buffer (void)
-- {
-- if (this->buffer_ == 0 || this->release_ == 0)
-- return;
--
-- CORBA::ULong *tmp = ACE_reinterpret_cast (CORBA::ULong *,this->buffer_);
--
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::freebuf (tmp);
-- this->buffer_ = 0;
-- }
--
-- CORBA::_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq::~_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (void) // Dtor.
-- {
-- this->_deallocate_buffer ();
-- }
--
--
--#endif /* end #if !defined */
--
--
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
--
--#if !defined (_CORBA_POLICYTYPESEQ_CS_)
--#define _CORBA_POLICYTYPESEQ_CS_
-
- // *************************************************************
--// CORBA::PolicyTypeSeq
-+// CORBA_PolicyTypeSeq
- // *************************************************************
-
--CORBA::PolicyTypeSeq::PolicyTypeSeq (void)
-+CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (void)
- {}
--CORBA::PolicyTypeSeq::PolicyTypeSeq (CORBA::ULong max) // uses max size
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::ULong>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-+CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (CORBA::ULong max) // uses max size
-+ : TAO_Unbounded_Sequence<CORBA::ULong>
- (max)
- {}
--CORBA::PolicyTypeSeq::PolicyTypeSeq (CORBA::ULong max, CORBA::ULong length, CORBA::ULong *buffer, CORBA::Boolean release)
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::ULong>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (max, length, buffer, release)
-+CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (CORBA::ULong max, CORBA::ULong length, CORBA::ULong *buffer, CORBA::Boolean release)
-+ : TAO_Unbounded_Sequence<CORBA::ULong> (max, length, buffer, release)
- {}
--CORBA::PolicyTypeSeq::PolicyTypeSeq (const PolicyTypeSeq &seq) // copy ctor
-- :
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::ULong>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-- (seq)
-+CORBA_PolicyTypeSeq::CORBA_PolicyTypeSeq (const CORBA_PolicyTypeSeq &seq)
-+ : TAO_Unbounded_Sequence<CORBA::ULong> (seq)
- {}
--CORBA::PolicyTypeSeq::~PolicyTypeSeq (void) // dtor
-+CORBA_PolicyTypeSeq::~CORBA_PolicyTypeSeq (void)
- {}
--void CORBA::PolicyTypeSeq::_tao_any_destructor (void *x)
--{
-- PolicyTypeSeq *tmp = ACE_static_cast (PolicyTypeSeq*,x);
-- delete tmp;
--}
--
-
--#endif /* end #if !defined */
-+// ****************************************************************
-
--static const CORBA::Long _oc_CORBA_PolicyTypeSeq[] =
--{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 36, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x54797065), ACE_NTOHL (0x5365713a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/PolicyTypeSeq:1.0
-- 14, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795479), ACE_NTOHL (0x70655365), ACE_NTOHL (0x71000000), // name = PolicyTypeSeq
-- CORBA::tk_sequence, // typecode kind
-- 80, // encapsulation length
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- CORBA::tk_alias, // typecode kind for typedefs
-- 64, // encapsulation length
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 33, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x54797065), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyType:1.0
-- 11, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63795479), ACE_NTOHL (0x70650000), // name = PolicyType
-- CORBA::tk_ulong,
--
--
-- 0U,
--
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyTypeSeq (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyTypeSeq), (char *) &_oc_CORBA_PolicyTypeSeq, 0, sizeof (CORBA::PolicyTypeSeq));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyTypeSeq, &_tc_TAO_tc_CORBA_PolicyTypeSeq)
--TAO_NAMESPACE_END
--static const CORBA::Long _oc_CORBA_SetOverrideType[] =
-+CORBA::PolicyManager_ptr CORBA_PolicyManager::_narrow (
-+ CORBA::Object_ptr obj,
-+ CORBA::Environment &ACE_TRY_ENV
-+ )
- {
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 38, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f5365), ACE_NTOHL (0x744f7665), ACE_NTOHL (0x72726964), ACE_NTOHL (0x65547970), ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/SetOverrideType:1.0
-- 16, ACE_NTOHL (0x5365744f), ACE_NTOHL (0x76657272), ACE_NTOHL (0x69646554), ACE_NTOHL (0x79706500), // name = SetOverrideType
-- 2, // member count
-- 13, ACE_NTOHL (0x5345545f), ACE_NTOHL (0x4f564552), ACE_NTOHL (0x52494445), ACE_NTOHL (0x0), // name = SET_OVERRIDE
-- 13, ACE_NTOHL (0x4144445f), ACE_NTOHL (0x4f564552), ACE_NTOHL (0x52494445), ACE_NTOHL (0x0), // name = ADD_OVERRIDE
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_SetOverrideType (CORBA::tk_enum, sizeof (_oc_CORBA_SetOverrideType), (char *) &_oc_CORBA_SetOverrideType, 0, sizeof (CORBA::SetOverrideType));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_SetOverrideType, &_tc_TAO_tc_CORBA_SetOverrideType)
--TAO_NAMESPACE_END
--
--// default constructor
--CORBA::PolicyManager::PolicyManager (void)
--{}
-+ if (CORBA::is_nil (obj))
-+ return CORBA_PolicyManager::_nil ();
-+ CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/PolicyManager:1.0", ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (CORBA_PolicyManager::_nil ());
-+ if (is_a == 0)
-+ return CORBA_PolicyManager::_nil ();
-+ void* servant = 0;
-+ if (!obj->_is_collocated () || !obj->_servant() ||
-+ (servant = obj->_servant()->_downcast ("IDL:omg.org/CORBA/PolicyManager:1.0")) == 0)
-+ ACE_THROW_RETURN (CORBA::MARSHAL (), CORBA_PolicyManager::_nil ());
-+
-+ CORBA::PolicyManager_ptr retval =
-+ CORBA_PolicyManager::_nil ();
-+
-+ ACE_NEW_RETURN (
-+ retval,
-+ POA_CORBA::_tao_collocated_PolicyManager (
-+ ACE_reinterpret_cast (POA_CORBA::PolicyManager_ptr,
-+ servant),
-+ 0
-+ ),
-+ CORBA_PolicyManager::_nil ()
-+ );
-
--// destructor
--CORBA::PolicyManager::~PolicyManager (void)
--{}
-+ return retval;
-+}
-
--void CORBA::PolicyManager::_tao_any_destructor (void *x)
-+CORBA_PolicyList * CORBA_PolicyManager::get_policy_overrides (
-+ const CORBA_PolicyTypeSeq & ts,
-+ CORBA::Environment &ACE_TRY_ENV
-+ )
- {
-- PolicyManager *tmp = ACE_static_cast (PolicyManager*,x);
-- CORBA::release (tmp);
-+ CORBA_PolicyList* _tao_retval = 0;
-+ ACE_UNUSED_ARG (_tao_retval);
-+ ACE_UNUSED_ARG (ts);
-+ ACE_THROW_RETURN (CORBA::MARSHAL (), _tao_retval);
}
--CORBA::PolicyManager_ptr CORBA::PolicyManager::_narrow (
-- CORBA::Object_ptr obj,
-+void CORBA_PolicyManager::set_policy_overrides (
-+ const CORBA_PolicyList & policies,
-+ CORBA::SetOverrideType set_add,
- CORBA::Environment &ACE_TRY_ENV
- )
- {
-- if (CORBA::is_nil (obj))
-- return PolicyManager::_nil ();
-- if (! obj->_is_local ())
-- {
-- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/PolicyManager:1.0", ACE_TRY_ENV);
-- ACE_CHECK_RETURN (PolicyManager::_nil ());
-- if (is_a == 0)
-- return PolicyManager::_nil ();
-- }
-- return PolicyManager::_unchecked_narrow (obj, ACE_TRY_ENV);
-+ ACE_UNUSED_ARG (policies);
-+ ACE_UNUSED_ARG (set_add);
-+
-+ ACE_THROW (CORBA::MARSHAL ());
- }
-
--CORBA::PolicyManager_ptr CORBA::PolicyManager::_unchecked_narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &
-- )
-+CORBA::Boolean CORBA_PolicyManager::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
- {
-- if (CORBA::is_nil (obj))
-- return PolicyManager::_nil ();
-- if (! obj->_is_local ())
-- {
-- TAO_Stub* stub = obj->_stubobj ();
-- if (stub)
-- stub->_incr_refcnt ();
-- PolicyManager_ptr default_proxy = PolicyManager::_nil ();
--
-- if (obj->_is_collocated () && _TAO_collocation_CORBA_PolicyManager_Stub_Factory_function_pointer != 0)
-- {
-- default_proxy = _TAO_collocation_CORBA_PolicyManager_Stub_Factory_function_pointer (obj);
-- }
-- if (CORBA::is_nil (default_proxy))
-- ACE_NEW_RETURN (default_proxy, PolicyManager (stub), PolicyManager::_nil ());
-- #if (TAO_HAS_SMART_PROXIES == 1)
-- return TAO_CORBA_PolicyManager_PROXY_FACTORY_ADAPTER::instance ()->create_proxy (default_proxy);
-- #else
-- return default_proxy;
-- #endif /*TAO_HAS_SMART_PROXIES == 1*/
-- }
-- else
-- return
-- ACE_reinterpret_cast
-- (
-- PolicyManager_ptr,
-- obj->_tao_QueryInterface
-- (
-- ACE_reinterpret_cast
-- (
-- ptr_arith_t,
-- &PolicyManager::_narrow
-- )
-- )
-- );
-+ if (
-+ (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) ||
-+ (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
-+ return 1; // success using local knowledge
-+ else
-+ return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call
- }
+ static const CORBA::Long _oc_CORBA_Policy[] =
+@@ -1156,75 +1156,7 @@
--CORBA::PolicyManager_ptr
--CORBA::PolicyManager::_duplicate (PolicyManager_ptr obj)
-+const char* CORBA_PolicyManager::_interface_repository_id (void) const
+ const char* CORBA_PolicyManager::_interface_repository_id (void) const
{
-- if (!CORBA::is_nil (obj))
-- obj->_add_ref ();
-- return obj;
-+ return "IDL:omg.org/CORBA/PolicyManager:1.0";
- }
-
--CORBA::PolicyList * CORBA::PolicyManager::get_policy_overrides (
-- const CORBA::PolicyTypeSeq & ts,
-+// ****************************************************************
-+
-+
-+CORBA_PolicyCurrent_ptr CORBA_PolicyCurrent::_narrow (
-+ CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ))
--{
--
-- CORBA::PolicyList *_tao_retval = 0;
--
--
-- TAO_Stub *istub = this->_stubobj ();
-- if (istub == 0)
-- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
--
--
-- ACE_NEW_RETURN (_tao_retval, CORBA::PolicyList, _tao_retval);
-- CORBA::PolicyList_var _tao_safe_retval (_tao_retval);
-- TAO_GIOP_Twoway_Invocation _tao_call (
-- istub,
-- "get_policy_overrides",
-- 20,
-- istub->orb_core ()
-- );
--
--#if (TAO_HAS_INTERCEPTORS == 1)
-- TAO_ClientRequestInterceptor_Adapter
-- _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
-- ACE_CHECK_RETURN (0);
-- PortableInterceptor::Cookies _tao_cookies;
-- CORBA::NVList_var _tao_interceptor_args;
-- if (_tao_vfr.valid ())
-- {
-- istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
-- ACE_CHECK_RETURN (0);
-- }
--
-- ACE_TRY
-- {
--#endif /* TAO_HAS_INTERCEPTORS */
--
-- for (;;)
-- {
-- _tao_call.start (ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.preinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "get_policy_overrides",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
-- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
--
-- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
--
-- TAO_OutputCDR &_tao_out = _tao_call.out_stream ();
-- if (!(
-- (_tao_out << ts)
-- ))
-- TAO_INTERCEPTOR_THROW_RETURN (CORBA::MARSHAL (), 0);
--
-- int _invoke_status =
-- _tao_call.invoke (0, 0, ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
--
-- if (_invoke_status == TAO_INVOKE_RESTART)
-- continue;
-- if (_invoke_status != TAO_INVOKE_OK)
-- {
-- TAO_INTERCEPTOR_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), 0);
--
-- }
-- TAO_InputCDR &_tao_in = _tao_call.inp_stream ();
-- if (!(
-- (_tao_in >> _tao_safe_retval.inout ())
-- ))
-- TAO_INTERCEPTOR_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), 0);
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.postinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "get_policy_overrides",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK_RETURN (0);
-- break;
--
-- }
--#if (TAO_HAS_INTERCEPTORS == 1)
--
-- }
-- ACE_CATCHANY
-- {
-- _tao_vfr.exception_occurred (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "get_policy_overrides",
-- _tao_cookies,
-- ACE_TRY_ENV
-- );
-- ACE_RETHROW;
-- }
-- ACE_ENDTRY;
-- ACE_CHECK_RETURN (0);
--#endif /* TAO_HAS_INTERCEPTORS */
-- return _tao_safe_retval._retn ();
+- return "IDL:omg.org/CORBA_PolicyManager:1.0";
-}
-
--void CORBA::PolicyManager::set_policy_overrides (
-- const CORBA::PolicyList & policies,
-- CORBA::SetOverrideType set_add,
-- CORBA::Environment &ACE_TRY_ENV
-- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException,
-- CORBA::InvalidPolicies
-- ))
--{
--
-- static TAO_Exception_Data _tao_CORBA_PolicyManager_set_policy_overrides_exceptiondata [] =
-- {
-- {CORBA::_tc_InvalidPolicies, CORBA::InvalidPolicies::_alloc}
-- };
--
--
--
--
-- TAO_Stub *istub = this->_stubobj ();
-- if (istub == 0)
-- ACE_THROW (CORBA::INTERNAL ());
--
--
-- TAO_GIOP_Twoway_Invocation _tao_call (
-- istub,
-- "set_policy_overrides",
-- 20,
-- istub->orb_core ()
-- );
--
--#if (TAO_HAS_INTERCEPTORS == 1)
-- TAO_ClientRequestInterceptor_Adapter
-- _tao_vfr (istub->orb_core ()->orb ()->_get_client_interceptor (ACE_TRY_ENV));
-- ACE_CHECK;
-- PortableInterceptor::Cookies _tao_cookies;
-- CORBA::NVList_var _tao_interceptor_args;
-- if (_tao_vfr.valid ())
-- {
-- istub->orb_core ()->orb ()->create_list (0, _tao_interceptor_args.inout (), ACE_TRY_ENV);
-- ACE_CHECK;
-- }
--
-- ACE_TRY
-- {
--#endif /* TAO_HAS_INTERCEPTORS */
--
-- for (;;)
-- {
-- _tao_call.start (ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK;
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.preinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "set_policy_overrides",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK;
-- CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
--
-- _tao_call.prepare_header (ACE_static_cast (CORBA::Octet, flag), ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK;
--
-- TAO_OutputCDR &_tao_out = _tao_call.out_stream ();
-- if (!(
-- (_tao_out << policies) &&
-- (_tao_out << set_add)
-- ))
-- TAO_INTERCEPTOR_THROW (CORBA::MARSHAL ());
-- int _invoke_status =
-- _tao_call.invoke (_tao_CORBA_PolicyManager_set_policy_overrides_exceptiondata, 1, ACE_TRY_ENV);
-- TAO_INTERCEPTOR_CHECK;
--
-- if (_invoke_status == TAO_INVOKE_RESTART)
-- continue;
-- if (_invoke_status != TAO_INVOKE_OK)
-- {
-- TAO_INTERCEPTOR_THROW (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES));
-- }
--
-- TAO_INTERCEPTOR (
-- _tao_vfr.postinvoke (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "set_policy_overrides",
-- _tao_call.service_info (),
-- _tao_interceptor_args.inout (),
-- _tao_cookies,
-- ACE_TRY_ENV
-- )
-- );
-- TAO_INTERCEPTOR_CHECK;
-- break;
--
-- }
--#if (TAO_HAS_INTERCEPTORS == 1)
--
-- }
-- ACE_CATCHANY
-- {
-- _tao_vfr.exception_occurred (
-- _tao_call.request_id (),
-- 1,
-- this,
-- "set_policy_overrides",
-- _tao_cookies,
-- ACE_TRY_ENV
-- );
-- ACE_RETHROW;
-- }
-- ACE_ENDTRY;
-- ACE_CHECK;
--#endif /* TAO_HAS_INTERCEPTORS */
-+{
-+ if (CORBA::is_nil (obj))
-+ return CORBA_PolicyCurrent::_nil ();
-+ CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/PolicyCurrent:1.0", ACE_TRY_ENV);
-+ ACE_CHECK_RETURN (CORBA_PolicyCurrent::_nil ());
-+ if (is_a == 0)
-+ return CORBA_PolicyCurrent::_nil ();
-+ void* servant = 0;
-+ if (!obj->_is_collocated () || !obj->_servant() ||
-+ (servant = obj->_servant()->_downcast ("IDL:omg.org/CORBA/PolicyCurrent:1.0")) == 0)
-+ ACE_THROW_RETURN (CORBA::MARSHAL (), CORBA_PolicyCurrent::_nil ());
-+
-+ CORBA_PolicyCurrent_ptr retval =
-+ CORBA_PolicyCurrent::_nil ();
-+
-+ ACE_NEW_RETURN (
-+ retval,
-+ POA_CORBA::_tao_collocated_PolicyCurrent (
-+ ACE_reinterpret_cast (POA_CORBA::PolicyCurrent_ptr,
-+ servant),
-+ 0
-+ ),
-+ CORBA_PolicyCurrent::_nil ()
-+ );
-
-+ return retval;
- }
-
--CORBA::Boolean CORBA::PolicyManager::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
-+CORBA::Boolean CORBA_PolicyCurrent::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
- {
- if (
-+ (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyCurrent:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) ||
-- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
-- return 1; // success using local knowledge
-- else
-- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV);
--}
--
--void *CORBA::PolicyManager::_tao_QueryInterface (ptr_arith_t type)
--{
-- void *retv = 0;
-- if (type == ACE_reinterpret_cast
-- (ptr_arith_t,
-- &ACE_NESTED_CLASS (::CORBA, PolicyManager)::_narrow))
-- retv = ACE_reinterpret_cast (void*, this);
-- else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
-- retv = ACE_reinterpret_cast (void *,
-- ACE_static_cast (CORBA::Object_ptr, this));
--
-- if (retv)
-- this->_add_ref ();
-- return retv;
--}
--
--const char* CORBA::PolicyManager::_interface_repository_id (void) const
--{
-- return "IDL:omg.org/CORBA/PolicyManager:1.0";
--}
--
--static const CORBA::Long _oc_CORBA_PolicyManager[] =
--{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 36, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x4d616e61), ACE_NTOHL (0x6765723a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/PolicyManager:1.0
-- 14, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63794d61), ACE_NTOHL (0x6e616765), ACE_NTOHL (0x72000000), // name = PolicyManager
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyManager (CORBA::tk_objref, sizeof (_oc_CORBA_PolicyManager), (char *) &_oc_CORBA_PolicyManager, 0, sizeof (CORBA::PolicyManager));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyManager, &_tc_TAO_tc_CORBA_PolicyManager)
--TAO_NAMESPACE_END
-
-// default constructor
--CORBA::Current::Current (void)
+-CORBA_Current::CORBA_Current (void)
-{}
-
-// destructor
--CORBA::Current::~Current (void)
+-CORBA_Current::~CORBA_Current (void)
-{}
-
--void CORBA::Current::_tao_any_destructor (void *x)
--{
-- Current *tmp = ACE_static_cast (Current*,x);
-- CORBA::release (tmp);
--}
--
--CORBA::Current_ptr CORBA::Current::_narrow (
+-CORBA_Current_ptr CORBA_Current::_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV
- )
-{
-- if (CORBA::is_nil (obj))
-- return Current::_nil ();
-- if (! obj->_is_local ())
-- {
-- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/Current:1.0", ACE_TRY_ENV);
-- ACE_CHECK_RETURN (Current::_nil ());
-- if (is_a == 0)
-- return Current::_nil ();
-- }
-- return Current::_unchecked_narrow (obj, ACE_TRY_ENV);
+- return CORBA_Current::_unchecked_narrow (obj, ACE_TRY_ENV);
-}
-
--CORBA::Current_ptr CORBA::Current::_unchecked_narrow (
+-CORBA_Current_ptr CORBA_Current::_unchecked_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &
- )
-{
- if (CORBA::is_nil (obj))
-- return Current::_nil ();
-- if (! obj->_is_local ())
-- {
-- TAO_Stub* stub = obj->_stubobj ();
-- if (stub)
-- stub->_incr_refcnt ();
-- Current_ptr default_proxy = Current::_nil ();
--
-- if (obj->_is_collocated () && _TAO_collocation_CORBA_Current_Stub_Factory_function_pointer != 0)
-- {
-- default_proxy = _TAO_collocation_CORBA_Current_Stub_Factory_function_pointer (obj);
-- }
-- if (CORBA::is_nil (default_proxy))
-- ACE_NEW_RETURN (default_proxy, Current (stub), Current::_nil ());
-- #if (TAO_HAS_SMART_PROXIES == 1)
-- return TAO_CORBA_Current_PROXY_FACTORY_ADAPTER::instance ()->create_proxy (default_proxy);
-- #else
-- return default_proxy;
-- #endif /*TAO_HAS_SMART_PROXIES == 1*/
-- }
-- else
-- return
+- return CORBA_Current::_nil ();
+- return
- ACE_reinterpret_cast
- (
-- Current_ptr,
+- CORBA_Current_ptr,
- obj->_tao_QueryInterface
- (
- ACE_reinterpret_cast
- (
- ptr_arith_t,
-- &Current::_narrow
+- &CORBA_Current::_narrow
- )
- )
- );
-}
-
--CORBA::Current_ptr
--CORBA::Current::_duplicate (Current_ptr obj)
+-CORBA_Current_ptr
+-CORBA_Current::_duplicate (CORBA_Current_ptr obj)
-{
- if (!CORBA::is_nil (obj))
- obj->_add_ref ();
- return obj;
-}
-
--CORBA::Boolean CORBA::Current::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
--{
-- if (
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
- return 1; // success using local knowledge
- else
-- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV);
--}
--
--void *CORBA::Current::_tao_QueryInterface (ptr_arith_t type)
--{
-- void *retv = 0;
-- if (type == ACE_reinterpret_cast
-- (ptr_arith_t,
-- &ACE_NESTED_CLASS (::CORBA, Current)::_narrow))
-- retv = ACE_reinterpret_cast (void*, this);
-- else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
-- retv = ACE_reinterpret_cast (void *,
-- ACE_static_cast (CORBA::Object_ptr, this));
--
-- if (retv)
-- this->_add_ref ();
-- return retv;
--}
--
--const char* CORBA::Current::_interface_repository_id (void) const
--{
-- return "IDL:omg.org/CORBA/Current:1.0";
--}
--
--static const CORBA::Long _oc_CORBA_Current[] =
--{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 30, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f4375), ACE_NTOHL (0x7272656e), ACE_NTOHL (0x743a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/Current:1.0
-- 8, ACE_NTOHL (0x43757272), ACE_NTOHL (0x656e7400), // name = Current
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_Current (CORBA::tk_objref, sizeof (_oc_CORBA_Current), (char *) &_oc_CORBA_Current, 0, sizeof (CORBA::Current));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_Current, &_tc_TAO_tc_CORBA_Current)
--TAO_NAMESPACE_END
--
--// default constructor
--CORBA::PolicyCurrent::PolicyCurrent (void)
--{}
--
--// destructor
--CORBA::PolicyCurrent::~PolicyCurrent (void)
--{}
--
--void CORBA::PolicyCurrent::_tao_any_destructor (void *x)
--{
-- PolicyCurrent *tmp = ACE_static_cast (PolicyCurrent*,x);
-- CORBA::release (tmp);
--}
--
--CORBA::PolicyCurrent_ptr CORBA::PolicyCurrent::_narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &ACE_TRY_ENV
-- )
--{
-- if (CORBA::is_nil (obj))
-- return PolicyCurrent::_nil ();
-- if (! obj->_is_local ())
-- {
-- CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/PolicyCurrent:1.0", ACE_TRY_ENV);
-- ACE_CHECK_RETURN (PolicyCurrent::_nil ());
-- if (is_a == 0)
-- return PolicyCurrent::_nil ();
-- }
-- return PolicyCurrent::_unchecked_narrow (obj, ACE_TRY_ENV);
-+ return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call
- }
-
--CORBA::PolicyCurrent_ptr CORBA::PolicyCurrent::_unchecked_narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &
-- )
-+const char* CORBA_PolicyCurrent::_interface_repository_id (void) const
- {
-- if (CORBA::is_nil (obj))
-- return PolicyCurrent::_nil ();
-- if (! obj->_is_local ())
-- {
-- TAO_Stub* stub = obj->_stubobj ();
-- if (stub)
-- stub->_incr_refcnt ();
-- PolicyCurrent_ptr default_proxy = PolicyCurrent::_nil ();
--
-- if (obj->_is_collocated () && _TAO_collocation_CORBA_PolicyCurrent_Stub_Factory_function_pointer != 0)
-- {
-- default_proxy = _TAO_collocation_CORBA_PolicyCurrent_Stub_Factory_function_pointer (obj);
-- }
-- if (CORBA::is_nil (default_proxy))
-- ACE_NEW_RETURN (default_proxy, PolicyCurrent (stub), PolicyCurrent::_nil ());
-- #if (TAO_HAS_SMART_PROXIES == 1)
-- return TAO_CORBA_PolicyCurrent_PROXY_FACTORY_ADAPTER::instance ()->create_proxy (default_proxy);
-- #else
-- return default_proxy;
-- #endif /*TAO_HAS_SMART_PROXIES == 1*/
-- }
-- else
-- return
-- ACE_reinterpret_cast
-- (
-- PolicyCurrent_ptr,
-- obj->_tao_QueryInterface
-- (
-- ACE_reinterpret_cast
-- (
-- ptr_arith_t,
-- &PolicyCurrent::_narrow
-- )
-- )
-- );
-+ return "IDL:omg.org/CORBA/PolicyCurrent:1.0";
- }
-
--CORBA::PolicyCurrent_ptr
--CORBA::PolicyCurrent::_duplicate (PolicyCurrent_ptr obj)
--{
-- if (!CORBA::is_nil (obj))
-- obj->_add_ref ();
-- return obj;
--}
-+// ****************************************************************
-
--CORBA::Boolean CORBA::PolicyCurrent::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV)
+-void *CORBA_Current::_tao_QueryInterface (ptr_arith_t type)
-{
-- if (
-- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyCurrent:1.0")) ||
-- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) ||
-- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) ||
-- (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0")))
-- return 1; // success using local knowledge
-- else
-- return this->CORBA_Object::_is_a (value, ACE_TRY_ENV);
--}
-
--void *CORBA::PolicyCurrent::_tao_QueryInterface (ptr_arith_t type)
-+void operator<<= (CORBA::Any &_tao_any, const CORBA::PolicyError &_tao_elem) // copying
- {
- void *retv = 0;
- if (type == ACE_reinterpret_cast
- (ptr_arith_t,
-- &ACE_NESTED_CLASS (::CORBA, PolicyCurrent)::_narrow))
+- &CORBA_Current::_narrow))
- retv = ACE_reinterpret_cast (void*, this);
-- else if (type == ACE_reinterpret_cast
-- (ptr_arith_t,
-- &ACE_NESTED_CLASS (::CORBA, PolicyManager)::_narrow))
-- retv = ACE_reinterpret_cast
-- (
-- void *,
-- ACE_static_cast
-- (
-- CORBA::PolicyManager_ptr,
-- this
-- )
-- );
-- else if (type == ACE_reinterpret_cast
-- (ptr_arith_t,
-- &ACE_NESTED_CLASS (::CORBA, Current)::_narrow))
-- retv = ACE_reinterpret_cast
-- (
-- void *,
-- ACE_static_cast
-- (
-- CORBA::Current_ptr,
-- this
-- )
-+ TAO_OutputCDR stream;
-+ stream << _tao_elem;
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyError,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin ()
- );
- else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow))
- retv = ACE_reinterpret_cast (void *,
- ACE_static_cast (CORBA::Object_ptr, this));
@@ -2112,1181 +203,56 @@
- return retv;
-}
-
--const char* CORBA::PolicyCurrent::_interface_repository_id (void) const
--{
-- return "IDL:omg.org/CORBA/PolicyCurrent:1.0";
- }
-
--static const CORBA::Long _oc_CORBA_PolicyCurrent[] =
+-const char* CORBA_Current::_interface_repository_id (void) const
-{
-- TAO_ENCAP_BYTE_ORDER, // byte order
-- 36, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f506f), ACE_NTOHL (0x6c696379), ACE_NTOHL (0x43757272), ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/PolicyCurrent:1.0
-- 14, ACE_NTOHL (0x506f6c69), ACE_NTOHL (0x63794375), ACE_NTOHL (0x7272656e), ACE_NTOHL (0x74000000), // name = PolicyCurrent
--};
--static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyCurrent (CORBA::tk_objref, sizeof (_oc_CORBA_PolicyCurrent), (char *) &_oc_CORBA_PolicyCurrent, 0, sizeof (CORBA::PolicyCurrent));
--TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
--TAO_NAMESPACE_BEGIN (CORBA)
--TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_PolicyCurrent, &_tc_TAO_tc_CORBA_PolicyCurrent)
--TAO_NAMESPACE_END
--void operator<<= (CORBA::Any &_tao_any, const CORBA::PolicyError &_tao_elem) // copying
-+void CORBA::PolicyError::_tao_any_destructor (void *x)
- {
-- TAO_OutputCDR stream;
-- stream << _tao_elem;
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyError,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin ()
-- );
-+ CORBA::PolicyError *tmp = ACE_static_cast(CORBA::PolicyError*,x);
-+ delete tmp;
- }
-
- void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyError *_tao_elem) // non copying
- {
-- TAO_OutputCDR stream;
-- stream << *_tao_elem;
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyError,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- _tao_elem,
-- CORBA::PolicyError::_tao_any_destructor
-- );
-+ TAO_OutputCDR stream;
-+ stream << *_tao_elem;
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyError,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin (),
-+ 1,
-+ _tao_elem,
-+ CORBA::PolicyError::_tao_any_destructor
-+ );
- }
-
- CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyError *&_tao_elem)
- {
-- return _tao_any >>= ACE_const_cast(
-- const CORBA::PolicyError*&,
-- _tao_elem
-- );
-+ ACE_TRY_NEW_ENV
-+ {
-+ CORBA::TypeCode_var type = _tao_any.type ();
-+ if (!type->equivalent (CORBA::_tc_PolicyError, ACE_TRY_ENV)) // not equal
-+ {
-+ _tao_elem = 0;
-+ return 0;
-+ }
-+ ACE_TRY_CHECK;
-+ if (_tao_any.any_owns_data ())
-+ {
-+ _tao_elem = (CORBA::PolicyError *)_tao_any.value ();
-+ return 1;
-+ }
-+ else
-+ {
-+ ACE_NEW_RETURN (_tao_elem, CORBA::PolicyError, 0);
-+ TAO_InputCDR stream (
-+ _tao_any._tao_get_cdr (),
-+ _tao_any._tao_byte_order ()
-+ );
-+ if (stream >> *_tao_elem)
-+ {
-+ ((CORBA::Any *)&_tao_any)->_tao_replace (
-+ CORBA::_tc_PolicyError,
-+ 1,
-+ ACE_reinterpret_cast (void *, _tao_elem),
-+ CORBA::PolicyError::_tao_any_destructor
-+ );
-+ return 1;
-+ }
-+ else
-+ {
-+ delete _tao_elem;
-+ _tao_elem = 0;
-+ }
-+ }
-+ }
-+ ACE_CATCHANY
-+ {
-+ delete _tao_elem;
-+ _tao_elem = 0;
-+ return 0;
-+ }
-+ ACE_ENDTRY;
-+ return 0;
+- return "IDL:omg.org/CORBA_Current:1.0";
++ return "IDL:omg.org/CORBA/PolicyManager:1.0";
}
- CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyError *&_tao_elem)
- {
-- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyError, ACE_TRY_ENV)) // not equal
- {
-+ _tao_elem = 0;
- return 0;
- }
- ACE_TRY_CHECK;
-@@ -1819,38 +723,33 @@
- }
- else
- {
-- CORBA::PolicyError *tmp;
-- ACE_NEW_RETURN (tmp, CORBA::PolicyError, 0);
-+ ACE_NEW_RETURN (_tao_elem, CORBA::PolicyError, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
-- CORBA::String_var interface_repository_id;
-- if (!(stream >> interface_repository_id.out ()))
-- return 0;
-- if (ACE_OS::strcmp (
-- interface_repository_id.in (),
-- "IDL:omg.org/CORBA/PolicyError:1.0"))
-- return 0;
-- if (stream >> *tmp)
-+ if (stream >> *(CORBA::PolicyError *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyError,
- 1,
-- tmp,
-+ ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::PolicyError *&, _tao_elem)),
- CORBA::PolicyError::_tao_any_destructor
- );
-- _tao_elem = tmp;
- return 1;
- }
- else
- {
-- delete tmp;
-+ delete ACE_const_cast (CORBA::PolicyError *&, _tao_elem);
-+ _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
-+ delete ACE_const_cast (CORBA::PolicyError *&, _tao_elem);
-+ _tao_elem = 0;
-+ return 0;
- }
- ACE_ENDTRY;
- return 0;
-@@ -1858,45 +757,93 @@
- void operator<<= (CORBA::Any &_tao_any, const CORBA::InvalidPolicies &_tao_elem) // copying
- {
-- TAO_OutputCDR stream;
-- stream << _tao_elem;
-- _tao_any._tao_replace (
-- CORBA::_tc_InvalidPolicies,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin ()
-- );
-+ TAO_OutputCDR stream;
-+ stream << _tao_elem;
-+ _tao_any._tao_replace (
-+ CORBA::_tc_InvalidPolicies,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin ()
-+ );
-+}
-+
-+void CORBA::InvalidPolicies::_tao_any_destructor (void *x)
-+{
-+ CORBA::InvalidPolicies *tmp = ACE_static_cast(CORBA::InvalidPolicies*,x);
-+ delete tmp;
- }
-
- void operator<<= (CORBA::Any &_tao_any, CORBA::InvalidPolicies *_tao_elem) // non copying
- {
-- TAO_OutputCDR stream;
-- stream << *_tao_elem;
-- _tao_any._tao_replace (
-- CORBA::_tc_InvalidPolicies,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- _tao_elem,
-- CORBA::InvalidPolicies::_tao_any_destructor
-- );
-+ TAO_OutputCDR stream;
-+ stream << *_tao_elem;
-+ _tao_any._tao_replace (
-+ CORBA::_tc_InvalidPolicies,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin (),
-+ 1,
-+ _tao_elem,
-+ CORBA::InvalidPolicies::_tao_any_destructor
-+ );
- }
+@@ -1316,7 +1248,7 @@
- CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::InvalidPolicies *&_tao_elem)
+ const char* CORBA_PolicyCurrent::_interface_repository_id (void) const
{
-- return _tao_any >>= ACE_const_cast(
-- const CORBA::InvalidPolicies*&,
-- _tao_elem
-- );
-+ ACE_TRY_NEW_ENV
-+ {
-+ CORBA::TypeCode_var type = _tao_any.type ();
-+ if (!type->equivalent (CORBA::_tc_InvalidPolicies, ACE_TRY_ENV)) // not equal
-+ {
-+ _tao_elem = 0;
-+ return 0;
-+ }
-+ ACE_TRY_CHECK;
-+ if (_tao_any.any_owns_data ())
-+ {
-+ _tao_elem = (CORBA::InvalidPolicies *)_tao_any.value ();
-+ return 1;
-+ }
-+ else
-+ {
-+ ACE_NEW_RETURN (_tao_elem, CORBA::InvalidPolicies, 0);
-+ TAO_InputCDR stream (
-+ _tao_any._tao_get_cdr (),
-+ _tao_any._tao_byte_order ()
-+ );
-+ if (stream >> *_tao_elem)
-+ {
-+ ((CORBA::Any *)&_tao_any)->_tao_replace (
-+ CORBA::_tc_InvalidPolicies,
-+ 1,
-+ ACE_reinterpret_cast (void *, _tao_elem),
-+ CORBA::InvalidPolicies::_tao_any_destructor
-+ );
-+ return 1;
-+ }
-+ else
-+ {
-+ delete _tao_elem;
-+ _tao_elem = 0;
-+ }
-+ }
-+ }
-+ ACE_CATCHANY
-+ {
-+ delete _tao_elem;
-+ _tao_elem = 0;
-+ return 0;
-+ }
-+ ACE_ENDTRY;
-+ return 0;
+- return "IDL:omg.org/CORBA_PolicyCurrent:1.0";
++ return "IDL:omg.org/CORBA/PolicyCurrent:1.0";
}
- CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::InvalidPolicies *&_tao_elem)
- {
-- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_InvalidPolicies, ACE_TRY_ENV)) // not equal
- {
-+ _tao_elem = 0;
+ void operator<<= (CORBA::Any &_tao_any, CORBA::SetOverrideType _tao_elem)
+@@ -1419,7 +1351,7 @@
return 0;
- }
- ACE_TRY_CHECK;
-@@ -1907,278 +854,371 @@
- }
- else
- {
-- CORBA::InvalidPolicies *tmp;
-- ACE_NEW_RETURN (tmp, CORBA::InvalidPolicies, 0);
-+ ACE_NEW_RETURN (_tao_elem, CORBA::InvalidPolicies, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
-- CORBA::String_var interface_repository_id;
-- if (!(stream >> interface_repository_id.out ()))
-- return 0;
-- if (ACE_OS::strcmp (
-- interface_repository_id.in (),
-- "IDL:omg.org/CORBA/InvalidPolicies:1.0"))
-- return 0;
-- if (stream >> *tmp)
-+ if (stream >> *(CORBA::InvalidPolicies *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_InvalidPolicies,
- 1,
-- tmp,
-+ ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::InvalidPolicies *&, _tao_elem)),
- CORBA::InvalidPolicies::_tao_any_destructor
- );
-- _tao_elem = tmp;
- return 1;
- }
- else
- {
-- delete tmp;
-+ delete ACE_const_cast (CORBA::InvalidPolicies *&, _tao_elem);
-+ _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
-+ delete ACE_const_cast (CORBA::InvalidPolicies *&, _tao_elem);
-+ _tao_elem = 0;
-+ return 0;
- }
- ACE_ENDTRY;
- return 0;
- }
-
-+void CORBA::Policy::_tao_any_destructor (void *x)
-+{
-+ CORBA::Policy *tmp = ACE_static_cast(CORBA::Policy*,x);
-+ CORBA::release (tmp);
-+}
-+
- CORBA::Policy_ptr (*_TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer) (
- CORBA::Object_ptr obj
- ) = 0;
- void operator<<= (CORBA::Any &_tao_any, CORBA::Policy_ptr _tao_elem)
- {
-- TAO_OutputCDR stream;
-- if (stream << _tao_elem)
-+ TAO_OutputCDR stream;
-+ if (stream << _tao_elem)
-+ {
-+ _tao_any._tao_replace (
-+ CORBA::_tc_Policy,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin (),
-+ 1,
-+ _tao_elem,
-+ CORBA::Policy::_tao_any_destructor
-+ );
-+ }
-+}
-+
-+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::Policy_ptr &_tao_elem)
-+{
-+ ACE_TRY_NEW_ENV
-+ {
-+ _tao_elem = CORBA::Policy::_nil ();
-+ CORBA::TypeCode_var type = _tao_any.type ();
-+ if (!type->equivalent (CORBA::_tc_Policy, ACE_TRY_ENV)) // not equal
-+ {
-+ return 0;
-+ }
-+ ACE_TRY_CHECK;
-+ TAO_InputCDR stream (
-+ _tao_any._tao_get_cdr (),
-+ _tao_any._tao_byte_order ()
-+ );
-+ CORBA::Object_var _tao_obj_var;
-+ if (stream >> _tao_obj_var.out ())
-+ {
-+ _tao_elem = CORBA::Policy::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
-+ ACE_TRY_CHECK;
-+ ((CORBA::Any *)&_tao_any)->_tao_replace (
-+ CORBA::_tc_Policy,
-+ 1,
-+ _tao_elem,
-+ CORBA::Policy::_tao_any_destructor
-+ );
-+ return 1;
-+ }
-+ }
-+ ACE_CATCHANY
-+ {
-+ _tao_elem = CORBA::Policy::_nil ();
-+ return 0;
-+ }
-+ ACE_ENDTRY;
-+ _tao_elem = CORBA::Policy::_nil ();
-+ return 0;
-+}
-+
-+// ****************************************************************
-+
-+void operator<<= (
-+ CORBA::Any &_tao_any,
-+ const CORBA::PolicyList &_tao_elem
-+ ) // copying
-+{
-+ TAO_OutputCDR stream;
-+ if (stream << _tao_elem)
-+ {
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyList,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin ()
-+ );
-+ }
-+}
-+
-+void CORBA::PolicyList::_tao_any_destructor (void *x)
-+{
-+ CORBA::PolicyList *tmp = ACE_static_cast(CORBA::PolicyList*,x);
-+ delete tmp;
-+}
-+
-+void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyList *_tao_elem) // non copying
-+{
-+ TAO_OutputCDR stream;
-+ stream << *_tao_elem;
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyList,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin (),
-+ 1,
-+ _tao_elem,
-+ CORBA::PolicyList::_tao_any_destructor
-+ );
-+}
-+
-+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyList *&_tao_elem)
-+{
-+ ACE_TRY_NEW_ENV
-+ {
-+ CORBA::TypeCode_var type = _tao_any.type ();
-+ if (!type->equivalent (CORBA::_tc_PolicyList, ACE_TRY_ENV)) // not equal
-+ {
-+ _tao_elem = 0;
-+ return 0;
-+ }
-+ ACE_TRY_CHECK;
-+ if (_tao_any.any_owns_data ())
-+ {
-+ _tao_elem = (CORBA::PolicyList *)_tao_any.value ();
-+ return 1;
-+ }
-+ else
-+ {
-+ ACE_NEW_RETURN (_tao_elem, CORBA::PolicyList, 0);
-+ TAO_InputCDR stream (
-+ _tao_any._tao_get_cdr (),
-+ _tao_any._tao_byte_order ()
-+ );
-+ if (stream >> *_tao_elem)
-+ {
-+ ((CORBA::Any *)&_tao_any)->_tao_replace (
-+ CORBA::_tc_PolicyList,
-+ 1,
-+ ACE_reinterpret_cast (void *, _tao_elem),
-+ CORBA::PolicyList::_tao_any_destructor
-+ );
-+ return 1;
-+ }
-+ else
-+ {
-+ delete _tao_elem;
-+ _tao_elem = 0;
-+ }
-+ }
-+ }
-+ ACE_CATCHANY
- {
-- _tao_any._tao_replace (
-- CORBA::_tc_Policy,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- CORBA::Policy::_duplicate (_tao_elem),
-- CORBA::Policy::_tao_any_destructor
-- );
-+ delete _tao_elem;
-+ _tao_elem = 0;
-+ return 0;
- }
-+ ACE_ENDTRY;
-+ return 0;
- }
-
--CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::Policy_ptr &_tao_elem)
-+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyList *&_tao_elem)
- {
- ACE_TRY_NEW_ENV
- {
-- _tao_elem = CORBA::Policy::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
-- if (!type->equivalent (CORBA::_tc_Policy, ACE_TRY_ENV)) // not equal
-+ if (!type->equivalent (CORBA::_tc_PolicyList, ACE_TRY_ENV)) // not equal
- {
-+ _tao_elem = 0;
+ if (ACE_OS::strcmp (
+ interface_repository_id.in (),
+- "IDL:omg.org/CORBA_PolicyError:1.0"))
++ "IDL:omg.org/CORBA/PolicyError:1.0"))
return 0;
- }
- ACE_TRY_CHECK;
-- TAO_InputCDR stream (
-- _tao_any._tao_get_cdr (),
-- _tao_any._tao_byte_order ()
-- );
-- if (stream >> _tao_elem)
-+ if (_tao_any.any_owns_data ())
- {
-- ((CORBA::Any *)&_tao_any)->_tao_replace (
-- CORBA::_tc_Policy,
-- 1,
-- _tao_elem,
-- CORBA::Policy::_tao_any_destructor
-- );
-+ _tao_elem = (CORBA::PolicyList *)_tao_any.value ();
- return 1;
- }
-+ else
-+ {
-+ ACE_NEW_RETURN (_tao_elem, CORBA::PolicyList, 0);
-+ TAO_InputCDR stream (
-+ _tao_any._tao_get_cdr (),
-+ _tao_any._tao_byte_order ()
-+ );
-+ if (stream >> *(CORBA::PolicyList *)_tao_elem)
-+ {
-+ ((CORBA::Any *)&_tao_any)->_tao_replace (
-+ CORBA::_tc_PolicyList,
-+ 1,
-+ ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::PolicyList *&, _tao_elem)),
-+ CORBA::PolicyList::_tao_any_destructor
-+ );
-+ return 1;
-+ }
-+ else
-+ {
-+ delete ACE_const_cast (CORBA::PolicyList *&, _tao_elem);
-+ _tao_elem = 0;
-+ }
-+ }
- }
- ACE_CATCHANY
- {
-- _tao_elem = CORBA::Policy::_nil ();
-+ delete ACE_const_cast (CORBA::PolicyList *&, _tao_elem);
-+ _tao_elem = 0;
- return 0;
- }
- ACE_ENDTRY;
-- _tao_elem = CORBA::Policy::_nil ();
- return 0;
- }
-
--#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
-- defined (ACE_HAS_GNU_REPO)
-- template class TAO_Object_Manager<CORBA::Policy,CORBA::Policy_var>;
-- #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-- # pragma instantiate TAO_Object_Manager<CORBA::Policy,CORBA::Policy_var>
--#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
--
- void operator<<= (
- CORBA::Any &_tao_any,
-- const CORBA::PolicyList &_tao_elem
-+ const CORBA::PolicyTypeSeq &_tao_elem
- ) // copying
- {
-- TAO_OutputCDR stream;
-- if (stream << _tao_elem)
-- {
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyList,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin ()
-- );
-- }
-+ TAO_OutputCDR stream;
-+ if (stream << _tao_elem)
-+ {
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyTypeSeq,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin ()
-+ );
-+ }
- }
-
--void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyList *_tao_elem) // non copying
-+void CORBA::PolicyTypeSeq::_tao_any_destructor (void *x)
- {
-- TAO_OutputCDR stream;
-- stream << *_tao_elem;
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyList,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- _tao_elem,
-- CORBA::PolicyList::_tao_any_destructor
-- );
-+ CORBA::PolicyTypeSeq *tmp = ACE_static_cast(CORBA::PolicyTypeSeq*,x);
-+ delete tmp;
- }
-
--CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyList *&_tao_elem)
-+void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyTypeSeq *_tao_elem) // non copying
- {
-- return _tao_any >>= ACE_const_cast(
-- const CORBA::PolicyList*&,
-- _tao_elem
-- );
-+ TAO_OutputCDR stream;
-+ stream << *_tao_elem;
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyTypeSeq,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin (),
-+ 1,
-+ _tao_elem,
-+ CORBA::PolicyTypeSeq::_tao_any_destructor
-+ );
- }
-
--CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyList *&_tao_elem)
-+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyTypeSeq *&_tao_elem)
- {
-- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
-- if (!type->equivalent (CORBA::_tc_PolicyList, ACE_TRY_ENV)) // not equal
-+ if (!type->equivalent (CORBA::_tc_PolicyTypeSeq, ACE_TRY_ENV)) // not equal
+ if (stream >> *tmp)
{
-+ _tao_elem = 0;
+@@ -1507,7 +1439,7 @@
return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
-- _tao_elem = ACE_static_cast(
-- const CORBA::PolicyList*,
-- _tao_any.value ()
-- );
-+ _tao_elem = (CORBA::PolicyTypeSeq *)_tao_any.value ();
- return 1;
- }
- else
- {
-- CORBA::PolicyList *tmp;
-- ACE_NEW_RETURN (tmp, CORBA::PolicyList, 0);
-+ ACE_NEW_RETURN (_tao_elem, CORBA::PolicyTypeSeq, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
-- if (stream >> *tmp)
-+ if (stream >> *_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
-- CORBA::_tc_PolicyList,
-+ CORBA::_tc_PolicyTypeSeq,
- 1,
-- ACE_static_cast (void *, tmp),
-- CORBA::PolicyList::_tao_any_destructor
-+ ACE_reinterpret_cast (void *, _tao_elem),
-+ CORBA::PolicyTypeSeq::_tao_any_destructor
- );
-- _tao_elem = tmp;
- return 1;
- }
- else
- {
-- delete tmp;
-+ delete _tao_elem;
-+ _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
-+ delete _tao_elem;
-+ _tao_elem = 0;
-+ return 0;
- }
- ACE_ENDTRY;
- return 0;
- }
-
--void operator<<= (
-- CORBA::Any &_tao_any,
-- const CORBA::PolicyTypeSeq &_tao_elem
-- ) // copying
--{
-- TAO_OutputCDR stream;
-- if (stream << _tao_elem)
-- {
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyTypeSeq,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin ()
-- );
-- }
--}
--
--void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyTypeSeq *_tao_elem) // non copying
--{
-- TAO_OutputCDR stream;
-- stream << *_tao_elem;
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyTypeSeq,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- _tao_elem,
-- CORBA::PolicyTypeSeq::_tao_any_destructor
-- );
--}
--
--CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyTypeSeq *&_tao_elem)
--{
-- return _tao_any >>= ACE_const_cast(
-- const CORBA::PolicyTypeSeq*&,
-- _tao_elem
-- );
--}
--
- CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::PolicyTypeSeq *&_tao_elem)
- {
-- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (CORBA::_tc_PolicyTypeSeq, ACE_TRY_ENV)) // not equal
- {
-+ _tao_elem = 0;
+ if (ACE_OS::strcmp (
+ interface_repository_id.in (),
+- "IDL:omg.org/CORBA_InvalidPolicies:1.0"))
++ "IDL:omg.org/CORBA/InvalidPolicies:1.0"))
return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
-- _tao_elem = ACE_static_cast(
-- const CORBA::PolicyTypeSeq*,
-- _tao_any.value ()
-- );
-+ _tao_elem = (CORBA::PolicyTypeSeq *)_tao_any.value ();
- return 1;
- }
- else
- {
-- CORBA::PolicyTypeSeq *tmp;
-- ACE_NEW_RETURN (tmp, CORBA::PolicyTypeSeq, 0);
-+ ACE_NEW_RETURN (_tao_elem, CORBA::PolicyTypeSeq, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
-- if (stream >> *tmp)
-+ if (stream >> *(CORBA::PolicyTypeSeq *)_tao_elem)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyTypeSeq,
- 1,
-- ACE_static_cast (void *, tmp),
-+ ACE_reinterpret_cast (void *, ACE_const_cast (CORBA::PolicyTypeSeq *&, _tao_elem)),
- CORBA::PolicyTypeSeq::_tao_any_destructor
- );
-- _tao_elem = tmp;
- return 1;
- }
- else
+ if (stream >> *tmp)
{
-- delete tmp;
-+ delete ACE_const_cast (CORBA::PolicyTypeSeq *&, _tao_elem);
-+ _tao_elem = 0;
- }
- }
- }
- ACE_CATCHANY
- {
-+ delete ACE_const_cast (CORBA::PolicyTypeSeq *&, _tao_elem);
-+ _tao_elem = 0;
-+ return 0;
- }
- ACE_ENDTRY;
- return 0;
-@@ -2186,13 +1226,13 @@
-
- void operator<<= (CORBA::Any &_tao_any, CORBA::SetOverrideType _tao_elem)
- {
-- TAO_OutputCDR stream;
-- stream << _tao_elem;
-- _tao_any._tao_replace (
-- CORBA::_tc_SetOverrideType,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin ()
-- );
-+ TAO_OutputCDR stream;
-+ stream << _tao_elem;
-+ _tao_any._tao_replace (
-+ CORBA::_tc_SetOverrideType,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin ()
-+ );
- }
-
- CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::SetOverrideType &_tao_elem)
-@@ -2222,94 +1262,75 @@
- return 0;
- }
-
--CORBA::PolicyManager_ptr (*_TAO_collocation_CORBA_PolicyManager_Stub_Factory_function_pointer) (
-- CORBA::Object_ptr obj
-- ) = 0;
--void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyManager_ptr _tao_elem)
-+// ****************************************************************
-+
-+CORBA::Boolean
-+operator<< (
-+ TAO_OutputCDR &strm,
-+ const CORBA_Policy_ptr _tao_objref
-+ )
- {
-- TAO_OutputCDR stream;
-- if (stream << _tao_elem)
-- {
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyManager,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- CORBA::PolicyManager::_duplicate (_tao_elem),
-- CORBA::PolicyManager::_tao_any_destructor
-- );
-- }
-+ CORBA::Object_ptr _tao_corba_obj = _tao_objref;
-+ return (strm << _tao_corba_obj);
- }
-
--CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyManager_ptr &_tao_elem)
-+CORBA::Boolean
-+operator>> (
-+ TAO_InputCDR &strm,
-+ CORBA_Policy_ptr &_tao_objref
-+ )
- {
- ACE_TRY_NEW_ENV
- {
-- _tao_elem = CORBA::PolicyManager::_nil ();
-- CORBA::TypeCode_var type = _tao_any.type ();
-- if (!type->equivalent (CORBA::_tc_PolicyManager, ACE_TRY_ENV)) // not equal
-- {
-- return 0;
-- }
-- ACE_TRY_CHECK;
-- TAO_InputCDR stream (
-- _tao_any._tao_get_cdr (),
-- _tao_any._tao_byte_order ()
-- );
-- if (stream >> _tao_elem)
-- {
-- ((CORBA::Any *)&_tao_any)->_tao_replace (
-- CORBA::_tc_PolicyManager,
-- 1,
-- _tao_elem,
-- CORBA::PolicyManager::_tao_any_destructor
-+ CORBA::Object_var obj;
-+ if ((strm >> obj.inout ()) == 0)
-+ return 0;
-+ // narrow to the right type
-+ _tao_objref =
-+ CORBA_Policy::_narrow (
-+ obj.in (),
-+ ACE_TRY_ENV
- );
-- return 1;
-- }
-+ ACE_TRY_CHECK;
-+ return 1;
- }
- ACE_CATCHANY
- {
-- _tao_elem = CORBA::PolicyManager::_nil ();
-- return 0;
-+ // do nothing
- }
- ACE_ENDTRY;
-- _tao_elem = CORBA::PolicyManager::_nil ();
- return 0;
- }
+@@ -1782,13 +1714,6 @@
--#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
-- defined (ACE_HAS_GNU_REPO)
-- template class TAO_Object_Manager<CORBA::PolicyManager,CORBA::PolicyManager_var>;
+ #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+- template class TAO_Object_Manager<CORBA_Current,CORBA_Current_var>;
- #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-- # pragma instantiate TAO_Object_Manager<CORBA::PolicyManager,CORBA::PolicyManager_var>
+- # pragma instantiate TAO_Object_Manager<CORBA_Current,CORBA_Current_var>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-+void CORBA::PolicyManager::_tao_any_destructor (void *x)
-+{
-+ CORBA::PolicyManager *tmp = ACE_static_cast(CORBA::PolicyManager*,x);
-+ CORBA::release (tmp);
-+}
-
--CORBA::Current_ptr (*_TAO_collocation_CORBA_Current_Stub_Factory_function_pointer) (
-- CORBA::Object_ptr obj
-- ) = 0;
--void operator<<= (CORBA::Any &_tao_any, CORBA::Current_ptr _tao_elem)
-+void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyManager_ptr _tao_elem)
- {
-- TAO_OutputCDR stream;
-- if (stream << _tao_elem)
-- {
-- _tao_any._tao_replace (
-- CORBA::_tc_Current,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- CORBA::Current::_duplicate (_tao_elem),
-- CORBA::Current::_tao_any_destructor
-- );
-- }
-+ TAO_OutputCDR stream;
-+ if (stream << _tao_elem)
-+ {
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyManager,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin (),
-+ 1,
-+ _tao_elem,
-+ CORBA::PolicyManager::_tao_any_destructor
-+ );
-+ }
- }
-
--CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::Current_ptr &_tao_elem)
-+CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyManager_ptr &_tao_elem)
- {
- ACE_TRY_NEW_ENV
- {
-- _tao_elem = CORBA::Current::_nil ();
-+ _tao_elem = CORBA::PolicyManager::_nil ();
- CORBA::TypeCode_var type = _tao_any.type ();
-- if (!type->equivalent (CORBA::_tc_Current, ACE_TRY_ENV)) // not equal
-+ if (!type->equivalent (CORBA::_tc_PolicyManager, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
-@@ -2318,51 +1339,50 @@
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
-- if (stream >> _tao_elem)
-+ CORBA::Object_var _tao_obj_var;
-+ if (stream >> _tao_obj_var.out ())
- {
-+ _tao_elem = CORBA::PolicyManager::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
-+ ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
-- CORBA::_tc_Current,
-+ CORBA::_tc_PolicyManager,
- 1,
- _tao_elem,
-- CORBA::Current::_tao_any_destructor
-+ CORBA::PolicyManager::_tao_any_destructor
- );
- return 1;
- }
- }
- ACE_CATCHANY
- {
-- _tao_elem = CORBA::Current::_nil ();
-+ _tao_elem = CORBA::PolicyManager::_nil ();
- return 0;
- }
- ACE_ENDTRY;
-- _tao_elem = CORBA::Current::_nil ();
-+ _tao_elem = CORBA::PolicyManager::_nil ();
- return 0;
- }
-
+-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
- defined (ACE_HAS_GNU_REPO)
-- template class TAO_Object_Manager<CORBA::Current,CORBA::Current_var>;
-- #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-- # pragma instantiate TAO_Object_Manager<CORBA::Current,CORBA::Current_var>
--#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-+void CORBA::PolicyCurrent::_tao_any_destructor (void *x)
-+{
-+ CORBA::PolicyCurrent *tmp = ACE_static_cast(CORBA::PolicyCurrent*,x);
-+ CORBA::release (tmp);
-+}
-
--CORBA::PolicyCurrent_ptr (*_TAO_collocation_CORBA_PolicyCurrent_Stub_Factory_function_pointer) (
-- CORBA::Object_ptr obj
-- ) = 0;
- void operator<<= (CORBA::Any &_tao_any, CORBA::PolicyCurrent_ptr _tao_elem)
- {
-- TAO_OutputCDR stream;
-- if (stream << _tao_elem)
-- {
-- _tao_any._tao_replace (
-- CORBA::_tc_PolicyCurrent,
-- TAO_ENCAP_BYTE_ORDER,
-- stream.begin (),
-- 1,
-- CORBA::PolicyCurrent::_duplicate (_tao_elem),
-- CORBA::PolicyCurrent::_tao_any_destructor
-- );
-- }
-+ TAO_OutputCDR stream;
-+ if (stream << _tao_elem)
-+ {
-+ _tao_any._tao_replace (
-+ CORBA::_tc_PolicyCurrent,
-+ TAO_ENCAP_BYTE_ORDER,
-+ stream.begin (),
-+ 1,
-+ _tao_elem,
-+ CORBA::PolicyCurrent::_tao_any_destructor
-+ );
-+ }
- }
-
- CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::PolicyCurrent_ptr &_tao_elem)
-@@ -2380,8 +1400,11 @@
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
-- if (stream >> _tao_elem)
-+ CORBA::Object_var _tao_obj_var;
-+ if (stream >> _tao_obj_var.out ())
- {
-+ _tao_elem = CORBA::PolicyCurrent::_narrow (_tao_obj_var.in (), ACE_TRY_ENV);
-+ ACE_TRY_CHECK;
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- CORBA::_tc_PolicyCurrent,
- 1,
-@@ -2401,122 +1424,20 @@
- return 0;
+ template class TAO_Object_Manager<CORBA_PolicyCurrent,CORBA_PolicyCurrent_var>;
+ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+ # pragma instantiate TAO_Object_Manager<CORBA_PolicyCurrent,CORBA_PolicyCurrent_var>
+@@ -1905,4 +1830,3 @@
+ }
+ return 0; // error
}
-
--#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
-- defined (ACE_HAS_GNU_REPO)
-- template class TAO_Object_Manager<CORBA::PolicyCurrent,CORBA::PolicyCurrent_var>;
-- #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-- # pragma instantiate TAO_Object_Manager<CORBA::PolicyCurrent,CORBA::PolicyCurrent_var>
--#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
--
--
--#if !defined _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_CPP_
--#define _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_CPP_
--
--CORBA::Boolean operator<< (
-- TAO_OutputCDR &strm,
-- const CORBA::InvalidPolicies::_tao_seq_UShort &_tao_sequence
-- )
--{
-- if (strm << _tao_sequence.length ())
-- {
-- // encode all elements
-- return strm.write_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
-- }
-- return 0; // error
--}
--
--CORBA::Boolean operator>> (
-- TAO_InputCDR &strm,
-- CORBA::InvalidPolicies::_tao_seq_UShort &_tao_sequence
-- )
--{
-- CORBA::ULong _tao_seq_len;
-- if (strm >> _tao_seq_len)
-- {
-- // set the length of the sequence
-- _tao_sequence.length (_tao_seq_len);
-- // If length is 0 we return true.
-- if (0 >= _tao_seq_len)
-- return 1;
-- // retrieve all the elements
-- return strm.read_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
-- }
-- return 0; // error
--}
-
--#endif /* _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_CPP_ */
-+// ****************************************************************
-
--CORBA::Boolean operator<< (
-- TAO_OutputCDR &strm,
-- const CORBA::PolicyList &_tao_sequence
-- )
--{
-- if (strm << _tao_sequence.length ())
-- {
-- // encode all elements
-- CORBA::Boolean _tao_marshal_flag = 1;
-- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
-- {
-- _tao_marshal_flag = (strm << _tao_sequence[i].in ());
-- }
-- return _tao_marshal_flag;
-- }
-- return 0; // error
--}
-+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
--CORBA::Boolean operator>> (
-- TAO_InputCDR &strm,
-- CORBA::PolicyList &_tao_sequence
-- )
--{
-- CORBA::ULong _tao_seq_len;
-- if (strm >> _tao_seq_len)
-- {
-- // set the length of the sequence
-- _tao_sequence.length (_tao_seq_len);
-- // If length is 0 we return true.
-- if (0 >= _tao_seq_len)
-- return 1;
-- // retrieve all the elements
-- CORBA::Boolean _tao_marshal_flag = 1;
-- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
-- {
-- _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
-- }
-- return _tao_marshal_flag;
-- }
-- return 0; // error
--}
-+template class TAO_Unbounded_Sequence<CORBA::UShort>;
-+template class TAO_Unbounded_Sequence<CORBA::ULong>;
-+template class TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>;
-+template class TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var>;
-
--CORBA::Boolean operator<< (
-- TAO_OutputCDR &strm,
-- const CORBA::PolicyTypeSeq &_tao_sequence
-- )
--{
-- if (strm << _tao_sequence.length ())
-- {
-- // encode all elements
-- return strm.write_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
-- }
-- return 0; // error
--}
-+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
--CORBA::Boolean operator>> (
-- TAO_InputCDR &strm,
-- CORBA::PolicyTypeSeq &_tao_sequence
-- )
--{
-- CORBA::ULong _tao_seq_len;
-- if (strm >> _tao_seq_len)
-- {
-- // set the length of the sequence
-- _tao_sequence.length (_tao_seq_len);
-- // If length is 0 we return true.
-- if (0 >= _tao_seq_len)
-- return 1;
-- // retrieve all the elements
-- return strm.read_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
-- }
-- return 0; // error
--}
-+#pragma instantiate TAO_Unbounded_Sequence<CORBA::UShort>
-+#pragma instantiate TAO_Unbounded_Sequence<CORBA::ULong>
-+#pragma instantiate TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
-+#pragma instantiate TAO_Object_Manager<CORBA_Policy,CORBA_Policy_var>
-
-+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tao/diffs/PolicyC.h.diff b/TAO/tao/diffs/PolicyC.h.diff
index 61b6a63a443..76c3cc2f2fb 100644
--- a/TAO/tao/diffs/PolicyC.h.diff
+++ b/TAO/tao/diffs/PolicyC.h.diff
@@ -1,1726 +1,199 @@
---- orig/PolicyC.h Thu Jun 15 14:01:44 2000
-+++ PolicyC.h Fri Jun 9 13:00:52 2000
-@@ -1,1290 +1,638 @@
--/* -*- C++ -*- $Id$ */
-+/* -*- C++ -*- */
-+// $Id$
+--- PolicyC.h Sat Jun 24 01:58:09 2000
++++ PolicyC.h.mod Sat Jun 24 02:09:13 2000
+@@ -11,7 +11,7 @@
+ #define _TAO_IDL_POLICYC_H_
--// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
--// TAO and the TAO IDL Compiler have been developed by the Center for
--// Distributed Object Computing at Washington University, St. Louis.
-+// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-+// TAO ORB and the TAO IDL Compiler have been developed by Washington
-+// University Computer Science's Distributed Object Computing Group.
- //
--// Information about TAO is available at:
-+// Information on TAO is available at
- // http://www.cs.wustl.edu/~schmidt/TAO.html
-
--#ifndef _TAO_IDL_ORIG_POLICYC_H_
--#define _TAO_IDL_ORIG_POLICYC_H_
--
-+#ifndef TAO_IDL_POLICYC_H
-+#define TAO_IDL_POLICYC_H
#include "ace/pre.h"
-#include "tao/corba.h"
-
--#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
--#include "ace/streams.h"
--#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */
+#include "tao/CurrentC.h"
- #if !defined (ACE_LACKS_PRAGMA_ONCE)
+ #if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
+ #include "ace/streams.h"
+@@ -21,7 +21,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
--#include "corbafwd.h"
-+#include "tao/CDR.h"
-+#include "tao/Environment.h"
+-#include "tao/corbafwd.h"
++#include "tao/Encodable.h"
+#include "tao/Exception.h"
+#include "tao/Sequence.h"
++#include "tao/CDR.h"
++#include "tao/Typecode.h"
++#include "tao/Environment.h"
--#if defined (TAO_EXPORT_MACRO)
--#undef TAO_EXPORT_MACRO
--#endif
--#define TAO_EXPORT_MACRO TAO_Export
--
--#if defined (TAO_EXPORT_NESTED_CLASSES)
--# if defined (TAO_EXPORT_NESTED_MACRO)
--# undef TAO_EXPORT_NESTED_MACRO
--# endif /* defined (TAO_EXPORT_NESTED_MACRO) */
--# define TAO_EXPORT_NESTED_MACRO TAO_Export
--#endif /* TAO_EXPORT_NESTED_CLASSES */
--
--#if defined(_MSC_VER)
--#if (_MSC_VER >= 1200)
--#pragma warning(push)
--#endif /* _MSC_VER >= 1200 */
--#pragma warning(disable:4250)
--#endif /* _MSC_VER */
-+#include "tao/Encodable.h"
+ #if defined (TAO_EXPORT_MACRO)
+ #undef TAO_EXPORT_MACRO
+@@ -42,30 +47,6 @@
+ #pragma warning(disable:4250)
+ #endif /* _MSC_VER */
-TAO_NAMESPACE CORBA
-+class TAO_Export CORBA_PolicyError : public CORBA::UserException
- {
+-{
- typedef CORBA::Short PolicyErrorCode;
- typedef CORBA::Short_out PolicyErrorCode_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyErrorCode;
-
-- TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short BAD_POLICY;
--
-- TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short UNSUPPORTED_POLICY;
+- typedef CORBA::ULong PolicyType;
+- typedef CORBA::ULong_out PolicyType_out;
+- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyType;
-
-- TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short BAD_POLICY_TYPE;
--
-- TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short BAD_POLICY_VALUE;
--
-- TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short UNSUPPORTED_POLICY_VALUE;
--
-+public:
-+ CORBA::PolicyErrorCode reason;
-
--#if !defined (_CORBA_POLICYERROR_CH_)
--#define _CORBA_POLICYERROR_CH_
-+ CORBA_PolicyError (void); // default ctor
-+ CORBA_PolicyError (const CORBA::PolicyError &); // copy ctor
-+ ~CORBA_PolicyError (void); // dtor
-+ CORBA_PolicyError &operator= (const CORBA_PolicyError &);
-
-- class TAO_Export PolicyError : public CORBA::UserException
+- enum SetOverrideType
- {
-- public:
-+ virtual void _raise (void);
-
-- ACE_NESTED_CLASS (CORBA, PolicyErrorCode) reason;
-+ virtual void _tao_encode (TAO_OutputCDR &cdr,
-+ CORBA::Environment &) const;
-+ virtual void _tao_decode (TAO_InputCDR &cdr,
-+ CORBA::Environment &);
-
-- PolicyError (void); // default ctor
-- PolicyError (const PolicyError &); // copy ctor
-- ~PolicyError (void);
-+ static CORBA_PolicyError *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-- PolicyError &operator= (const PolicyError &);
--
-
-- virtual void _raise (void);
--
-- virtual void _tao_encode (
-- TAO_OutputCDR &,
-- CORBA::Environment &) const;
-- virtual void _tao_decode (
-- TAO_InputCDR &,
-- CORBA::Environment &);
--
-- static PolicyError *_downcast (CORBA::Exception *);
--
-- PolicyError (
-- ACE_NESTED_CLASS (CORBA, PolicyErrorCode) _tao_reason
-- );
-+ CORBA_PolicyError(
-+ CORBA::PolicyErrorCode _tao_reason);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
--
- }; // exception CORBA::PolicyError
-
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyError;
-+// ****************************************************************
-
-+class CORBA_InvalidPolicies;
-+typedef CORBA_InvalidPolicies *CORBA_InvalidPolicies_ptr;
-
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_INVALIDPOLICIES_CH_)
--#define _CORBA_INVALIDPOLICIES_CH_
--
--class TAO_Export InvalidPolicies : public CORBA::UserException
-+class TAO_Export CORBA_InvalidPolicies : public CORBA::UserException
- {
- public:
--
--
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
--
--#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_)
--#define __TAO_UNBOUNDED_SEQUENCE_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_
--
-- class TAO_EXPORT_NESTED_MACRO _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort : public TAO_Unbounded_Base_Sequence
-+ class TAO_Export _tao_seq_UShort : public TAO_Unbounded_Sequence<CORBA::UShort>
- {
- public:
-- // = Initialization and termination methods.
--
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (void); // Default constructor.
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (CORBA::ULong maximum);
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (CORBA::ULong maximum,
-- CORBA::ULong length,
-- CORBA::UShort *data,
-- CORBA::Boolean release = 0);
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (const _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &rhs);
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &operator= (const _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort &rhs);
-- virtual ~_TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort (void); // Dtor.
-- // = Accessors.
-- CORBA::UShort &operator[] (CORBA::ULong i);
-- const CORBA::UShort &operator[] (CORBA::ULong i) const;
-- // = Static operations.
-- static CORBA::UShort *allocbuf (CORBA::ULong size);
-- static void freebuf (CORBA::UShort *buffer);
-- virtual void _allocate_buffer (CORBA::ULong length);
-- virtual void _deallocate_buffer (void);
-- // Implement the TAO_Base_Sequence methods (see Sequence.h)
--
-- CORBA::UShort *get_buffer (CORBA::Boolean orphan = 0);
-- const CORBA::UShort *get_buffer (void) const;
-- void replace (CORBA::ULong max,
-- CORBA::ULong length,
-- CORBA::UShort *data,
-- CORBA::Boolean release);
-+ _tao_seq_UShort (void); // default ctor
-+ _tao_seq_UShort (CORBA::ULong max); // uses max size
-+ _tao_seq_UShort (
-+ CORBA::ULong max,
-+ CORBA::ULong length,
-+ CORBA::UShort *buffer,
-+ CORBA::Boolean release=0
-+ );
-+ _tao_seq_UShort (const _tao_seq_UShort &); // copy ctor
-+ ~_tao_seq_UShort (void); // dtor
- };
-+ typedef _tao_seq_UShort *_tao_seq_UShort_ptr;
-+ static CORBA::TypeCode_ptr _tc__tao_seq_UShort;
-
--#endif /* end #if !defined */
--
--
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
--
--#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_)
--#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT_CH_
--
--class _tao_seq_UShort;
--class _tao_seq_UShort_var;
--
--// *************************************************************
--// _tao_seq_UShort
--// *************************************************************
--
--class TAO_Export _tao_seq_UShort : public
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_InvalidPolicies__tao_seq_UShort
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::UShort>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
--{
--public:
-- _tao_seq_UShort (void); // default ctor
-- _tao_seq_UShort (CORBA::ULong max); // uses max size
-- _tao_seq_UShort (
-- CORBA::ULong max,
-- CORBA::ULong length,
-- CORBA::UShort *buffer,
-- CORBA::Boolean release=0
-- );
-- _tao_seq_UShort (const _tao_seq_UShort &); // copy ctor
-- ~_tao_seq_UShort (void);
-- static void _tao_any_destructor (void*);
--
--#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef _tao_seq_UShort_var _var_type;
--#endif /* ! __GNUC__ || g++ >= 2.8 */
--
--};
--
--#endif /* end #if !defined */
--
-+ _tao_seq_UShort indices;
-
--#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___VAR_CH_)
--#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___VAR_CH_
-+ CORBA_InvalidPolicies (void); // default ctor
-+ CORBA_InvalidPolicies (const CORBA_InvalidPolicies &); // copy ctor
-+ ~CORBA_InvalidPolicies (void); // dtor
-+ CORBA_InvalidPolicies &operator= (const CORBA_InvalidPolicies &);
-
--// *************************************************************
--// class CORBA::InvalidPolicies::_tao_seq_UShort_var
--// *************************************************************
--
--class TAO_Export _tao_seq_UShort_var
--{
--public:
-- _tao_seq_UShort_var (void); // default constructor
-- _tao_seq_UShort_var (_tao_seq_UShort *);
-- _tao_seq_UShort_var (const _tao_seq_UShort_var &); // copy constructor
-- _tao_seq_UShort_var (const _tao_seq_UShort &); // fixed-size base types only
-- ~_tao_seq_UShort_var (void); // destructor
--
-- _tao_seq_UShort_var &operator= (_tao_seq_UShort *);
-- _tao_seq_UShort_var &operator= (const _tao_seq_UShort_var &);
-- _tao_seq_UShort_var &operator= (const _tao_seq_UShort &); // fixed-size base types only
-- _tao_seq_UShort *operator-> (void);
-- const _tao_seq_UShort *operator-> (void) const;
--
-- operator const _tao_seq_UShort &() const;
-- operator _tao_seq_UShort &();
-- operator _tao_seq_UShort &() const;
--
-- CORBA::UShort &operator[] (CORBA::ULong index);
-- // in, inout, out, _retn
-- const _tao_seq_UShort &in (void) const;
-- _tao_seq_UShort &inout (void);
-- _tao_seq_UShort *&out (void);
-- _tao_seq_UShort *_retn (void);
-- _tao_seq_UShort *ptr (void) const;
--
--private:
-- _tao_seq_UShort *ptr_;
--};
--
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___OUT_CH_)
--#define _CORBA_INVALIDPOLICIES__TAO_SEQ_USHORT___OUT_CH_
--
--class TAO_Export _tao_seq_UShort_out
--{
--public:
-- _tao_seq_UShort_out (_tao_seq_UShort *&);
-- _tao_seq_UShort_out (_tao_seq_UShort_var &);
-- _tao_seq_UShort_out (const _tao_seq_UShort_out &);
-- _tao_seq_UShort_out &operator= (const _tao_seq_UShort_out &);
-- _tao_seq_UShort_out &operator= (_tao_seq_UShort *);
-- operator _tao_seq_UShort *&();
-- _tao_seq_UShort *&ptr (void);
-- _tao_seq_UShort *operator-> (void);
-- CORBA::UShort &operator[] (CORBA::ULong index);
--
--private:
-- _tao_seq_UShort *&ptr_;
-- // assignment from T_var not allowed
-- void operator= (const _tao_seq_UShort_var &);
--};
--
--
--#endif /* end #if !defined */
--
--#if !defined (__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef _tao_seq_UShort _indices_seq;
--#endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */
-+ virtual void _raise (void);
-
-- _tao_seq_UShort indices;
-+ virtual void _tao_encode (TAO_OutputCDR &cdr,
-+ CORBA::Environment &) const;
-+ virtual void _tao_decode (TAO_InputCDR &cdr,
-+ CORBA::Environment &);
-
-- InvalidPolicies (void); // default ctor
-- InvalidPolicies (const InvalidPolicies &); // copy ctor
-- ~InvalidPolicies (void);
-+ static CORBA_InvalidPolicies *_downcast (CORBA::Exception *);
- static void _tao_any_destructor (void*);
-- InvalidPolicies &operator= (const InvalidPolicies &);
--
--
-- virtual void _raise (void);
-
-- virtual void _tao_encode (
-- TAO_OutputCDR &,
-- CORBA::Environment &) const;
-- virtual void _tao_decode (
-- TAO_InputCDR &,
-- CORBA::Environment &);
--
-- static InvalidPolicies *_downcast (CORBA::Exception *);
--
-- InvalidPolicies (
-- const _tao_seq_UShort & _tao_indices
-- );
-+ CORBA_InvalidPolicies(
-+ const _tao_seq_UShort & _tao_indices);
-
- // = TAO extension
- static CORBA::Exception *_alloc (void);
--
- }; // exception CORBA::InvalidPolicies
-
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_InvalidPolicies;
--
--
--#endif /* end #if !defined */
--
--typedef CORBA::ULong PolicyType;
--typedef CORBA::ULong_out PolicyType_out;
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyType;
--
-+// ****************************************************************
-
--#if !defined (_CORBA_POLICY___PTR_CH_)
--#define _CORBA_POLICY___PTR_CH_
-+class CORBA_Policy;
-+typedef CORBA_Policy *CORBA_Policy_ptr;
-
--class Policy;
--typedef Policy *Policy_ptr;
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICY___VAR_CH_)
--#define _CORBA_POLICY___VAR_CH_
--
--class TAO_Export Policy_var : public TAO_Base_var
-+class TAO_Export CORBA_Policy_var : public TAO_Base_var
- {
- public:
-- Policy_var (void); // default constructor
-- Policy_var (Policy_ptr);
-- Policy_var (const Policy_var &); // copy constructor
-- ~Policy_var (void); // destructor
--
-- Policy_var &operator= (Policy_ptr);
-- Policy_var &operator= (const Policy_var &);
-- Policy_ptr operator-> (void) const;
--
-- operator const Policy_ptr &() const;
-- operator Policy_ptr &();
-- // in, inout, out, _retn
-- Policy_ptr in (void) const;
-- Policy_ptr &inout (void);
-- Policy_ptr &out (void);
-- Policy_ptr _retn (void);
-- Policy_ptr ptr (void) const;
-+ CORBA_Policy_var (void); // default constructor
-+ CORBA_Policy_var (CORBA_Policy_ptr p) : ptr_ (p) {}
-+ CORBA_Policy_var (const CORBA_Policy_var &); // copy constructor
-+ ~CORBA_Policy_var (void); // destructor
-+
-+ CORBA_Policy_var &operator= (CORBA_Policy_ptr);
-+ CORBA_Policy_var &operator= (const CORBA_Policy_var &);
-+ CORBA_Policy_ptr operator-> (void) const;
-+
-+ operator const CORBA_Policy_ptr &() const;
-+ operator CORBA_Policy_ptr &();
-+ // in, inout, out, _retn
-+ CORBA_Policy_ptr in (void) const;
-+ CORBA_Policy_ptr &inout (void);
-+ CORBA_Policy_ptr &out (void);
-+ CORBA_Policy_ptr _retn (void);
-+ CORBA_Policy_ptr ptr (void) const;
-
- private:
-- Policy_ptr ptr_;
-+ CORBA_Policy_ptr ptr_;
- // Unimplemented - prevents widening assignment.
-- Policy_var (const TAO_Base_var &rhs);
-- Policy_var &operator= (const TAO_Base_var &rhs);
-+ CORBA_Policy_var (const TAO_Base_var &rhs);
-+ CORBA_Policy_var &operator= (const TAO_Base_var &rhs);
- };
-
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICY___OUT_CH_)
--#define _CORBA_POLICY___OUT_CH_
--
--class TAO_Export Policy_out
-+class TAO_Export CORBA_Policy_out
- {
- public:
-- Policy_out (Policy_ptr &);
-- Policy_out (Policy_var &);
-- Policy_out (const Policy_out &);
-- Policy_out &operator= (const Policy_out &);
-- Policy_out &operator= (const Policy_var &);
-- Policy_out &operator= (Policy_ptr);
-- operator Policy_ptr &();
-- Policy_ptr &ptr (void);
-- Policy_ptr operator-> (void);
--
-+ CORBA_Policy_out (CORBA_Policy_ptr &);
-+ CORBA_Policy_out (CORBA_Policy_var &);
-+ CORBA_Policy_out (CORBA_Policy_out &);
-+ CORBA_Policy_out &operator= (CORBA_Policy_out &);
-+ CORBA_Policy_out &operator= (const CORBA_Policy_var &);
-+ CORBA_Policy_out &operator= (CORBA_Policy_ptr);
-+ operator CORBA_Policy_ptr &();
-+ CORBA_Policy_ptr &ptr (void);
-+ CORBA_Policy_ptr operator-> (void);
-+
- private:
-- Policy_ptr &ptr_;
-+ CORBA_Policy_ptr &ptr_;
- };
-
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICY_CH_)
--#define _CORBA_POLICY_CH_
+- SET_OVERRIDE,
+- ADD_OVERRIDE,
+- SetOverrideType_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+- };
+- typedef SetOverrideType &SetOverrideType_out;
+- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_SetOverrideType;
-
--class TAO_Export Policy : public virtual CORBA_Object
-+class TAO_Export CORBA_Policy : public virtual CORBA_Object,
-+ public TAO_Encodable
- {
- public:
--#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef Policy_ptr _ptr_type;
-- typedef Policy_var _var_type;
--#endif /* ! __GNUC__ || g++ >= 2.8 */
-+#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
-+ typedef CORBA_Policy_ptr _ptr_type;
-+ typedef CORBA_Policy_var _var_type;
-+#endif /* __GNUC__ */
-
- // the static operations
-- static Policy_ptr _duplicate (Policy_ptr obj);
-- static Policy_ptr _narrow (
-+ static CORBA_Policy_ptr _duplicate (CORBA_Policy_ptr obj);
-+ static CORBA_Policy_ptr _narrow (
- CORBA::Object_ptr obj,
-- CORBA::Environment &ACE_TRY_ENV =
-+ CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
-- static Policy_ptr _unchecked_narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- static Policy_ptr _nil (void)
-- {
-- return (Policy_ptr)0;
-- }
-
-+ static CORBA_Policy_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-+#if !defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
- virtual CORBA::PolicyType policy_type (
-- CORBA::Environment &ACE_TRY_ENV =
-+ CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
-- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ));
+-}
+-TAO_NAMESPACE_CLOSE // module CORBA
-
-- virtual CORBA::Policy_ptr copy (
-- CORBA::Environment &ACE_TRY_ENV =
-+ );
-+ virtual CORBA_Policy_ptr copy (
-+ CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
-- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ));
-
-+ );
-+ virtual void destroy (
-+ CORBA_Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ );
-+#else
-+ virtual CORBA::PolicyType policy_type (
-+ CORBA_Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ ) = 0;
-+ virtual CORBA_Policy_ptr copy (
-+ CORBA_Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ ) = 0;
- virtual void destroy (
-- CORBA::Environment &ACE_TRY_ENV =
-+ CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
-- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ));
-+ ) = 0;
-+#endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
+ #if !defined (_CORBA_POLICYERROR_CH_)
+ #define _CORBA_POLICYERROR_CH_
- virtual CORBA::Boolean _is_a (
-- const CORBA::Char *type_id,
-- CORBA::Environment &ACE_TRY_ENV =
-+ const CORBA::Char *type_id,
-+ CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
-- virtual void *_tao_QueryInterface (ptr_arith_t type);
--
+@@ -434,6 +415,14 @@
+
virtual const char* _interface_repository_id (void) const;
-+ // The following methods are used for embedding client-exposed
-+ // policies into an IOR. These methods are not part of the idl
-+ // compiler generated code: they were added by hand.
-+
+ virtual CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr);
-+ // Encode the Policy into a CDR representation. Returns true
++ // Encode the Policy into a CDR representation. Returns true
+ // on success and false on failure.
+
+ virtual CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr);
-+ // Decode the Policy from a CDR representation. Returns true
++ // Decode the Policy from a CDR representation. Returns true
+ // on success and false on failure.
+
protected:
-- Policy (void);
-- Policy (TAO_Stub *objref,
-- TAO_ServantBase *_tao_servant = 0,
-- CORBA::Boolean _tao_collocated = 0
-- );
-- virtual ~Policy (void);
-+ CORBA_Policy (void); // default constructor
-+ CORBA_Policy (TAO_Stub *objref,
-+ TAO_ServantBase *_tao_servant = 0,
-+ CORBA::Boolean _tao_collocated = 0
-+ );
-+ virtual ~CORBA_Policy (void);
- private:
-- Policy (const Policy &);
-- void operator= (const Policy &);
-+ CORBA_Policy (const CORBA_Policy &);
-+ void operator= (const CORBA_Policy &);
- };
+ CORBA_Policy (void);
+ CORBA_Policy (TAO_Stub *objref,
+@@ -886,118 +875,6 @@
+ #endif /* end #if !defined */
+
+-#if !defined (_CORBA_CURRENT___PTR_CH_)
+-#define _CORBA_CURRENT___PTR_CH_
-
--#endif /* end #if !defined */
--
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_Policy;
--
--
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
--
--#if !defined (__TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CH_)
--#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_CORBA_POLICYLIST_CH_
--
-- class _TAO_Unbounded_Object_Sequence_CORBA_PolicyList : public TAO_Unbounded_Base_Sequence
-- {
-- public:
-- // = Initialization and termination methods.
--
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList (void);
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList (CORBA::ULong maximum);
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList (CORBA::ULong maximum,
-- CORBA::ULong length,
-- Policy* *value,
-- CORBA::Boolean release = 0);
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList(const _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &rhs);
-- virtual ~_TAO_Unbounded_Object_Sequence_CORBA_PolicyList (void);
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &operator= (const _TAO_Unbounded_Object_Sequence_CORBA_PolicyList &rhs);
-- TAO_Object_Manager<CORBA::Policy,CORBA::Policy_var> operator[] (CORBA::ULong index) const;
-- static Policy **allocbuf (CORBA::ULong nelems);
-- static void freebuf (Policy **buffer);
-- // The Base_Sequence functions, please see tao/Sequence.h
-- virtual void _allocate_buffer (CORBA::ULong length);
-- virtual void _deallocate_buffer (void);
-- Policy* *get_buffer (CORBA::Boolean orphan = 0);
-- const Policy* *get_buffer (void) const;
-- virtual void _shrink_buffer (CORBA::ULong nl, CORBA::ULong ol);
-- virtual void _downcast (
-- void* target,
-- CORBA_Object *src,
-- CORBA_Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- virtual CORBA_Object* _upcast (void *src) const;
--
-- };
--
--#endif /* end #if !defined */
--
--
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
--
--#if !defined (_CORBA_POLICYLIST_CH_)
--#define _CORBA_POLICYLIST_CH_
--
--class PolicyList;
--class PolicyList_var;
+-class CORBA_Current;
+-typedef CORBA_Current *CORBA_Current_ptr;
-
- // *************************************************************
--// PolicyList
-+// CORBA_PolicyList
- // *************************************************************
-
--class TAO_Export PolicyList : public
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Object_Sequence_CORBA_PolicyList
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Object_Sequence<Policy,Policy_var>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-+class TAO_Export CORBA_PolicyList : public TAO_Unbounded_Object_Sequence<CORBA_Policy,CORBA_Policy_var>
- {
- public:
-- PolicyList (void); // default ctor
-- PolicyList (CORBA::ULong max); // uses max size
-- PolicyList (
-- CORBA::ULong max,
-- CORBA::ULong length,
-- Policy_ptr *buffer,
-- CORBA::Boolean release=0
-- );
-- PolicyList (const PolicyList &); // copy ctor
-- ~PolicyList (void);
-- static void _tao_any_destructor (void*);
-+#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
-+ typedef CORBA_PolicyList_var _var_type;
-+#endif /* __GNUC__ */
-
--#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef PolicyList_var _var_type;
--#endif /* ! __GNUC__ || g++ >= 2.8 */
-+ CORBA_PolicyList (void); // default ctor
-+ CORBA_PolicyList (CORBA::ULong max); // uses max size
-+ CORBA_PolicyList (
-+ CORBA::ULong max,
-+ CORBA::ULong length,
-+ CORBA_Policy_ptr *buffer,
-+ CORBA::Boolean release=0
-+ );
-+ CORBA_PolicyList (const CORBA_PolicyList &); // copy ctor
-+ ~CORBA_PolicyList (void); // dtor
-
-+ static void _tao_any_destructor (void*);
- };
-
-#endif /* end #if !defined */
-
-
--#if !defined (_CORBA_POLICYLIST___VAR_CH_)
--#define _CORBA_POLICYLIST___VAR_CH_
+-#if !defined (_CORBA_CURRENT___VAR_CH_)
+-#define _CORBA_CURRENT___VAR_CH_
-
- // *************************************************************
- // class CORBA::PolicyList_var
- // *************************************************************
-
--class TAO_Export PolicyList_var
-+class TAO_Export CORBA_PolicyList_var
- {
- public:
-- PolicyList_var (void); // default constructor
-- PolicyList_var (PolicyList *);
-- PolicyList_var (const PolicyList_var &); // copy constructor
-- ~PolicyList_var (void); // destructor
--
-- PolicyList_var &operator= (PolicyList *);
-- PolicyList_var &operator= (const PolicyList_var &);
-- PolicyList *operator-> (void);
-- const PolicyList *operator-> (void) const;
+-class TAO_Export CORBA_Current_var : public TAO_Base_var
+-{
+-public:
+- CORBA_Current_var (void); // default constructor
+- CORBA_Current_var (CORBA_Current_ptr p) : ptr_ (p) {}
+- CORBA_Current_var (const CORBA_Current_var &); // copy constructor
+- ~CORBA_Current_var (void); // destructor
-
-- operator const PolicyList &() const;
-- operator PolicyList &();
-- operator PolicyList &() const;
-- operator PolicyList *&(); // variable-size base types only
+- CORBA_Current_var &operator= (CORBA_Current_ptr);
+- CORBA_Current_var &operator= (const CORBA_Current_var &);
+- CORBA_Current_ptr operator-> (void) const;
-
-- TAO_Object_Manager<Policy, Policy_var> operator[] (CORBA::ULong index);
+- operator const CORBA_Current_ptr &() const;
+- operator CORBA_Current_ptr &();
- // in, inout, out, _retn
-- const PolicyList &in (void) const;
-- PolicyList &inout (void);
-- PolicyList *&out (void);
-- PolicyList *_retn (void);
-- PolicyList *ptr (void) const;
+- CORBA_Current_ptr in (void) const;
+- CORBA_Current_ptr &inout (void);
+- CORBA_Current_ptr &out (void);
+- CORBA_Current_ptr _retn (void);
+- CORBA_Current_ptr ptr (void) const;
-
-private:
-- PolicyList *ptr_;
+- CORBA_Current_ptr ptr_;
+- // Unimplemented - prevents widening assignment.
+- CORBA_Current_var (const TAO_Base_var &rhs);
+- CORBA_Current_var &operator= (const TAO_Base_var &rhs);
-};
-+ CORBA_PolicyList_var (void); // default constructor
-+ CORBA_PolicyList_var (CORBA_PolicyList *);
-+ CORBA_PolicyList_var (const CORBA_PolicyList_var &); // copy constructor
-+ ~CORBA_PolicyList_var (void); // destructor
-
-+ CORBA_PolicyList_var &operator= (CORBA_PolicyList *);
-+ CORBA_PolicyList_var &operator= (const CORBA_PolicyList_var &);
-+ CORBA_PolicyList *operator-> (void);
-+ const CORBA_PolicyList *operator-> (void) const;
-
--#endif /* end #if !defined */
-+ operator const CORBA_PolicyList &() const;
-+ operator CORBA_PolicyList &();
-+ operator CORBA_PolicyList &() const;
-+ TAO_Object_Manager <CORBA_Policy,CORBA_Policy_var > operator[] (CORBA::ULong index);
-+ // in, inout, out, _retn
-+ const CORBA_PolicyList &in (void) const;
-+ CORBA_PolicyList &inout (void);
-+ CORBA_PolicyList *&out (void);
-+ CORBA_PolicyList *_retn (void);
-+ CORBA_PolicyList *ptr (void) const;
-
-+private:
-+ CORBA_PolicyList *ptr_;
-+};
-
--#if !defined (_CORBA_POLICYLIST___OUT_CH_)
--#define _CORBA_POLICYLIST___OUT_CH_
-
--class TAO_Export PolicyList_out
-+class TAO_Export CORBA_PolicyList_out
- {
- public:
-- PolicyList_out (PolicyList *&);
-- PolicyList_out (PolicyList_var &);
-- PolicyList_out (const PolicyList_out &);
-- PolicyList_out &operator= (const PolicyList_out &);
-- PolicyList_out &operator= (PolicyList *);
-- operator PolicyList *&();
-- PolicyList *&ptr (void);
-- PolicyList *operator-> (void);
-- TAO_Object_Manager<Policy, Policy_var> operator[] (CORBA::ULong index);
--
-+ CORBA_PolicyList_out (CORBA_PolicyList *&);
-+ CORBA_PolicyList_out (CORBA_PolicyList_var &);
-+ CORBA_PolicyList_out (const CORBA_PolicyList_out &);
-+ CORBA_PolicyList_out &operator= (CORBA_PolicyList_out &);
-+ CORBA_PolicyList_out &operator= (CORBA_PolicyList *);
-+ operator CORBA_PolicyList *&();
-+ CORBA_PolicyList *&ptr (void);
-+ CORBA_PolicyList *operator-> (void);
-+ TAO_Object_Manager <CORBA_Policy,CORBA_Policy_var> operator[] (CORBA::ULong index);
-+
- private:
-- PolicyList *&ptr_;
-+ CORBA_PolicyList *&ptr_;
- // assignment from T_var not allowed
-- void operator= (const PolicyList_var &);
-+ void operator= (const CORBA_PolicyList_var &);
- };
-
-
-#endif /* end #if !defined */
-
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyList;
--
--
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
--
--#if !defined (__TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CH_)
--#define __TAO_UNBOUNDED_SEQUENCE_CORBA_POLICYTYPESEQ_CH_
--
-- class TAO_EXPORT_NESTED_MACRO _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq : public TAO_Unbounded_Base_Sequence
-- {
-- public:
-- // = Initialization and termination methods.
--
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (void); // Default constructor.
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (CORBA::ULong maximum);
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (CORBA::ULong maximum,
-- CORBA::ULong length,
-- CORBA::ULong *data,
-- CORBA::Boolean release = 0);
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (const _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &rhs);
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &operator= (const _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq &rhs);
-- virtual ~_TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq (void); // Dtor.
-- // = Accessors.
-- CORBA::ULong &operator[] (CORBA::ULong i);
-- const CORBA::ULong &operator[] (CORBA::ULong i) const;
-- // = Static operations.
-- static CORBA::ULong *allocbuf (CORBA::ULong size);
-- static void freebuf (CORBA::ULong *buffer);
-- virtual void _allocate_buffer (CORBA::ULong length);
-- virtual void _deallocate_buffer (void);
-- // Implement the TAO_Base_Sequence methods (see Sequence.h)
--
-- CORBA::ULong *get_buffer (CORBA::Boolean orphan = 0);
-- const CORBA::ULong *get_buffer (void) const;
-- void replace (CORBA::ULong max,
-- CORBA::ULong length,
-- CORBA::ULong *data,
-- CORBA::Boolean release);
-- };
--
--#endif /* end #if !defined */
--
--
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
--
--#if !defined (_CORBA_POLICYTYPESEQ_CH_)
--#define _CORBA_POLICYTYPESEQ_CH_
--
--class PolicyTypeSeq;
--class PolicyTypeSeq_var;
--
- // *************************************************************
- // PolicyTypeSeq
- // *************************************************************
-
--class TAO_Export PolicyTypeSeq : public
--#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-- _TAO_Unbounded_Sequence_CORBA_PolicyTypeSeq
--#else /* TAO_USE_SEQUENCE_TEMPLATES */
-- TAO_Unbounded_Sequence<CORBA::ULong>
--#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-+class TAO_Export CORBA_PolicyTypeSeq : public TAO_Unbounded_Sequence<CORBA::ULong>
- {
- public:
-- PolicyTypeSeq (void); // default ctor
-- PolicyTypeSeq (CORBA::ULong max); // uses max size
-- PolicyTypeSeq (
-- CORBA::ULong max,
-- CORBA::ULong length,
-- CORBA::ULong *buffer,
-- CORBA::Boolean release=0
-- );
-- PolicyTypeSeq (const PolicyTypeSeq &); // copy ctor
-- ~PolicyTypeSeq (void);
-- static void _tao_any_destructor (void*);
--
--#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef PolicyTypeSeq_var _var_type;
--#endif /* ! __GNUC__ || g++ >= 2.8 */
-+ CORBA_PolicyTypeSeq (void); // default ctor
-+ CORBA_PolicyTypeSeq (CORBA::ULong max); // uses max size
-+ CORBA_PolicyTypeSeq (
-+ CORBA::ULong max,
-+ CORBA::ULong length,
-+ CORBA::ULong *buffer,
-+ CORBA::Boolean release=0
-+ );
-+ CORBA_PolicyTypeSeq (const CORBA_PolicyTypeSeq &); // copy ctor
-+ ~CORBA_PolicyTypeSeq (void); // dtor
-
-+ static void _tao_any_destructor (void*);
- };
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICYTYPESEQ___VAR_CH_)
--#define _CORBA_POLICYTYPESEQ___VAR_CH_
-+typedef CORBA_PolicyTypeSeq *CORBA_PolicyTypeSeq_ptr;
-
- // *************************************************************
- // class CORBA::PolicyTypeSeq_var
- // *************************************************************
-
--class TAO_Export PolicyTypeSeq_var
-+class TAO_Export CORBA_PolicyTypeSeq_var
- {
- public:
-- PolicyTypeSeq_var (void); // default constructor
-- PolicyTypeSeq_var (PolicyTypeSeq *);
-- PolicyTypeSeq_var (const PolicyTypeSeq_var &); // copy constructor
-- PolicyTypeSeq_var (const PolicyTypeSeq &); // fixed-size base types only
-- ~PolicyTypeSeq_var (void); // destructor
--
-- PolicyTypeSeq_var &operator= (PolicyTypeSeq *);
-- PolicyTypeSeq_var &operator= (const PolicyTypeSeq_var &);
-- PolicyTypeSeq_var &operator= (const PolicyTypeSeq &); // fixed-size base types only
-- PolicyTypeSeq *operator-> (void);
-- const PolicyTypeSeq *operator-> (void) const;
--
-- operator const PolicyTypeSeq &() const;
-- operator PolicyTypeSeq &();
-- operator PolicyTypeSeq &() const;
--
-- PolicyType &operator[] (CORBA::ULong index);
-- // in, inout, out, _retn
-- const PolicyTypeSeq &in (void) const;
-- PolicyTypeSeq &inout (void);
-- PolicyTypeSeq *&out (void);
-- PolicyTypeSeq *_retn (void);
-- PolicyTypeSeq *ptr (void) const;
--
--private:
-- PolicyTypeSeq *ptr_;
--};
-
-+ CORBA_PolicyTypeSeq_var (void); // default constructor
-+ CORBA_PolicyTypeSeq_var (CORBA_PolicyTypeSeq *);
-+ CORBA_PolicyTypeSeq_var (const CORBA_PolicyTypeSeq_var &);
-+ ~CORBA_PolicyTypeSeq_var (void); // destructor
-
--#endif /* end #if !defined */
-+ CORBA_PolicyTypeSeq_var &operator= (CORBA_PolicyTypeSeq *);
-+ CORBA_PolicyTypeSeq_var &operator= (const CORBA_PolicyTypeSeq_var &);
-+ CORBA_PolicyTypeSeq *operator-> (void);
-+ const CORBA_PolicyTypeSeq *operator-> (void) const;
-
-+ operator const CORBA_PolicyTypeSeq &() const;
-+ operator CORBA_PolicyTypeSeq &();
-+ operator CORBA_PolicyTypeSeq &() const;
-+ CORBA::PolicyType &operator[] (CORBA::ULong slot);
-+ // in, inout, out, _retn
-+ const CORBA_PolicyTypeSeq &in (void) const;
-+ CORBA_PolicyTypeSeq &inout (void);
-+ CORBA_PolicyTypeSeq *&out (void);
-+ CORBA_PolicyTypeSeq *_retn (void);
-+ CORBA_PolicyTypeSeq *ptr (void) const;
-
--#if !defined (_CORBA_POLICYTYPESEQ___OUT_CH_)
--#define _CORBA_POLICYTYPESEQ___OUT_CH_
+-#if !defined (_CORBA_CURRENT___OUT_CH_)
+-#define _CORBA_CURRENT___OUT_CH_
-
--class TAO_Export PolicyTypeSeq_out
+-class TAO_Export CORBA_Current_out
-{
-public:
-- PolicyTypeSeq_out (PolicyTypeSeq *&);
-- PolicyTypeSeq_out (PolicyTypeSeq_var &);
-- PolicyTypeSeq_out (const PolicyTypeSeq_out &);
-- PolicyTypeSeq_out &operator= (const PolicyTypeSeq_out &);
-- PolicyTypeSeq_out &operator= (PolicyTypeSeq *);
-- operator PolicyTypeSeq *&();
-- PolicyTypeSeq *&ptr (void);
-- PolicyTypeSeq *operator-> (void);
-- PolicyType &operator[] (CORBA::ULong index);
+- CORBA_Current_out (CORBA_Current_ptr &);
+- CORBA_Current_out (CORBA_Current_var &);
+- CORBA_Current_out (const CORBA_Current_out &);
+- CORBA_Current_out &operator= (const CORBA_Current_out &);
+- CORBA_Current_out &operator= (const CORBA_Current_var &);
+- CORBA_Current_out &operator= (CORBA_Current_ptr);
+- operator CORBA_Current_ptr &();
+- CORBA_Current_ptr &ptr (void);
+- CORBA_Current_ptr operator-> (void);
-
- private:
-- PolicyTypeSeq *&ptr_;
-- // assignment from T_var not allowed
-- void operator= (const PolicyTypeSeq_var &);
+-private:
+- CORBA_Current_ptr &ptr_;
-};
-
-
-#endif /* end #if !defined */
-
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyTypeSeq;
--
--enum SetOverrideType
--{
-- SET_OVERRIDE,
-- ADD_OVERRIDE,
-- SetOverrideType_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
-+ CORBA_PolicyTypeSeq *ptr_;
- };
--typedef SetOverrideType &SetOverrideType_out;
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_SetOverrideType;
--
--
--#if !defined (_CORBA_POLICYMANAGER___PTR_CH_)
--#define _CORBA_POLICYMANAGER___PTR_CH_
-
--class PolicyManager;
--typedef PolicyManager *PolicyManager_ptr;
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICYMANAGER___VAR_CH_)
--#define _CORBA_POLICYMANAGER___VAR_CH_
--
--class TAO_Export PolicyManager_var : public TAO_Base_var
-+class TAO_Export CORBA_PolicyTypeSeq_out
- {
- public:
-- PolicyManager_var (void); // default constructor
-- PolicyManager_var (PolicyManager_ptr);
-- PolicyManager_var (const PolicyManager_var &); // copy constructor
-- ~PolicyManager_var (void); // destructor
--
-- PolicyManager_var &operator= (PolicyManager_ptr);
-- PolicyManager_var &operator= (const PolicyManager_var &);
-- PolicyManager_ptr operator-> (void) const;
--
-- operator const PolicyManager_ptr &() const;
-- operator PolicyManager_ptr &();
-- // in, inout, out, _retn
-- PolicyManager_ptr in (void) const;
-- PolicyManager_ptr &inout (void);
-- PolicyManager_ptr &out (void);
-- PolicyManager_ptr _retn (void);
-- PolicyManager_ptr ptr (void) const;
-+ CORBA_PolicyTypeSeq_out (CORBA_PolicyTypeSeq *&);
-+ CORBA_PolicyTypeSeq_out (CORBA_PolicyTypeSeq_var &);
-+ CORBA_PolicyTypeSeq_out (const CORBA_PolicyTypeSeq_out &);
-+ CORBA_PolicyTypeSeq_out &operator= (const CORBA_PolicyTypeSeq_out &);
-+ CORBA_PolicyTypeSeq_out &operator= (CORBA_PolicyTypeSeq *);
-+ operator CORBA_PolicyTypeSeq *&();
-+ CORBA_PolicyTypeSeq *&ptr (void);
-+ CORBA_PolicyTypeSeq *operator-> (void);
-+ CORBA::PolicyType &operator[] (CORBA::ULong slot);
-
- private:
-- PolicyManager_ptr ptr_;
-- // Unimplemented - prevents widening assignment.
-- PolicyManager_var (const TAO_Base_var &rhs);
-- PolicyManager_var &operator= (const TAO_Base_var &rhs);
-+ CORBA_PolicyTypeSeq *&ptr_;
-+ // assignment from T_var not allowed
-+ void operator= (const CORBA_PolicyTypeSeq_var &);
- };
-
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICYMANAGER___OUT_CH_)
--#define _CORBA_POLICYMANAGER___OUT_CH_
--
--class TAO_Export PolicyManager_out
-+class TAO_Export CORBA_PolicyManager_var : public TAO_Base_var
- {
- public:
-- PolicyManager_out (PolicyManager_ptr &);
-- PolicyManager_out (PolicyManager_var &);
-- PolicyManager_out (const PolicyManager_out &);
-- PolicyManager_out &operator= (const PolicyManager_out &);
-- PolicyManager_out &operator= (const PolicyManager_var &);
-- PolicyManager_out &operator= (PolicyManager_ptr);
-- operator PolicyManager_ptr &();
-- PolicyManager_ptr &ptr (void);
-- PolicyManager_ptr operator-> (void);
--
--private:
-- PolicyManager_ptr &ptr_;
--};
--
-
--#endif /* end #if !defined */
+-#if !defined (_CORBA_CURRENT_CH_)
+-#define _CORBA_CURRENT_CH_
-
-+ CORBA_PolicyManager_var (void); // default constructor
-+ CORBA_PolicyManager_var (CORBA_PolicyManager_ptr);
-+ CORBA_PolicyManager_var (const CORBA_PolicyManager_var &);
-+ ~CORBA_PolicyManager_var (void); // destructor
-
--#if !defined (_CORBA_POLICYMANAGER_CH_)
--#define _CORBA_POLICYMANAGER_CH_
-+ CORBA_PolicyManager_var &operator= (CORBA_PolicyManager_ptr);
-+ CORBA_PolicyManager_var &operator= (const CORBA_PolicyManager_var &);
-+ CORBA_PolicyManager_ptr operator-> (void) const;
-
--class TAO_Export PolicyManager : public virtual CORBA_Object
+-class TAO_Export CORBA_Current : public virtual CORBA_Object
-{
-public:
-#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef PolicyManager_ptr _ptr_type;
-- typedef PolicyManager_var _var_type;
+- typedef CORBA_Current_ptr _ptr_type;
+- typedef CORBA_Current_var _var_type;
-#endif /* ! __GNUC__ || g++ >= 2.8 */
-
- // the static operations
-- static PolicyManager_ptr _duplicate (PolicyManager_ptr obj);
-- static PolicyManager_ptr _narrow (
+- static CORBA_Current_ptr _duplicate (CORBA_Current_ptr obj);
+- static CORBA_Current_ptr _narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
-- static PolicyManager_ptr _unchecked_narrow (
+- static CORBA_Current_ptr _unchecked_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
-- static PolicyManager_ptr _nil (void)
+- static CORBA_Current_ptr _nil (void)
- {
-- return (PolicyManager_ptr)0;
+- return (CORBA_Current_ptr)0;
- }
-+ operator const CORBA_PolicyManager_ptr &() const;
-+ operator CORBA_PolicyManager_ptr &();
-+ // in, inout, out, _retn
-+ CORBA_PolicyManager_ptr in (void) const;
-+ CORBA_PolicyManager_ptr &inout (void);
-+ CORBA_PolicyManager_ptr &out (void);
-+ CORBA_PolicyManager_ptr _retn (void);
-+ CORBA_PolicyManager_ptr ptr (void) const;
-
-- static void _tao_any_destructor (void*);
--
-- virtual CORBA::PolicyList * get_policy_overrides (
-- const CORBA::PolicyTypeSeq & ts,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException
-- ));
--
-- virtual void set_policy_overrides (
-- const CORBA::PolicyList & policies,
-- CORBA::SetOverrideType set_add,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- )
-- ACE_THROW_SPEC ((
-- CORBA::SystemException,
-- CORBA::InvalidPolicies
-- ));
-
-- virtual CORBA::Boolean _is_a (
-- const CORBA::Char *type_id,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
- virtual void *_tao_QueryInterface (ptr_arith_t type);
-
- virtual const char* _interface_repository_id (void) const;
-
-protected:
-- PolicyManager (void);
-- PolicyManager (TAO_Stub *objref,
-- TAO_ServantBase *_tao_servant = 0,
-- CORBA::Boolean _tao_collocated = 0
-- );
-- virtual ~PolicyManager (void);
- private:
-- PolicyManager (const PolicyManager &);
-- void operator= (const PolicyManager &);
--};
--
--
--#endif /* end #if !defined */
--
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyManager;
--
--
--#if !defined (_CORBA_CURRENT___PTR_CH_)
--#define _CORBA_CURRENT___PTR_CH_
--
--class Current;
--typedef Current *Current_ptr;
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_CURRENT___VAR_CH_)
--#define _CORBA_CURRENT___VAR_CH_
--
--class TAO_Export Current_var : public TAO_Base_var
--{
--public:
-- Current_var (void); // default constructor
-- Current_var (Current_ptr);
-- Current_var (const Current_var &); // copy constructor
-- ~Current_var (void); // destructor
--
-- Current_var &operator= (Current_ptr);
-- Current_var &operator= (const Current_var &);
-- Current_ptr operator-> (void) const;
--
-- operator const Current_ptr &() const;
-- operator Current_ptr &();
-- // in, inout, out, _retn
-- Current_ptr in (void) const;
-- Current_ptr &inout (void);
-- Current_ptr &out (void);
-- Current_ptr _retn (void);
-- Current_ptr ptr (void) const;
--
+- CORBA_Current (void);
+- virtual ~CORBA_Current (void);
-private:
-- Current_ptr ptr_;
-+ CORBA_PolicyManager_ptr ptr_;
- // Unimplemented - prevents widening assignment.
-- Current_var (const TAO_Base_var &rhs);
-- Current_var &operator= (const TAO_Base_var &rhs);
-+ CORBA_PolicyManager_var (const TAO_Base_var &rhs);
-+ CORBA_PolicyManager_var &operator= (const TAO_Base_var &rhs);
- };
-
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_CURRENT___OUT_CH_)
--#define _CORBA_CURRENT___OUT_CH_
--
--class TAO_Export Current_out
-+class TAO_Export CORBA_PolicyManager_out
- {
- public:
-- Current_out (Current_ptr &);
-- Current_out (Current_var &);
-- Current_out (const Current_out &);
-- Current_out &operator= (const Current_out &);
-- Current_out &operator= (const Current_var &);
-- Current_out &operator= (Current_ptr);
-- operator Current_ptr &();
-- Current_ptr &ptr (void);
-- Current_ptr operator-> (void);
--
-+ CORBA_PolicyManager_out (CORBA_PolicyManager_ptr &);
-+ CORBA_PolicyManager_out (CORBA_PolicyManager_var &);
-+ CORBA_PolicyManager_out (const CORBA_PolicyManager_out &);
-+ CORBA_PolicyManager_out &operator= (const CORBA_PolicyManager_out &);
-+ CORBA_PolicyManager_out &operator= (const CORBA_PolicyManager_var &);
-+ CORBA_PolicyManager_out &operator= (CORBA_PolicyManager_ptr);
-+ operator CORBA_PolicyManager_ptr &();
-+ CORBA_PolicyManager_ptr &ptr (void);
-+ CORBA_PolicyManager_ptr operator-> (void);
-+
- private:
-- Current_ptr &ptr_;
-+ CORBA_PolicyManager_ptr &ptr_;
- };
-
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_CURRENT_CH_)
--#define _CORBA_CURRENT_CH_
--
--class TAO_Export Current : public virtual CORBA_Object
-+class TAO_Export CORBA_PolicyManager : public virtual CORBA_Object
- {
- public:
--#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef Current_ptr _ptr_type;
-- typedef Current_var _var_type;
--#endif /* ! __GNUC__ || g++ >= 2.8 */
-+#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
-+ typedef CORBA_PolicyManager_ptr _ptr_type;
-+ typedef CORBA_PolicyManager_var _var_type;
-+#endif /* __GNUC__ */
-
- // the static operations
-- static Current_ptr _duplicate (Current_ptr obj);
-- static Current_ptr _narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- static Current_ptr _unchecked_narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- static Current_ptr _nil (void)
-- {
-- return (Current_ptr)0;
-- }
--
-+ static CORBA_PolicyManager_ptr _duplicate (CORBA_PolicyManager_ptr obj);
-+ static CORBA_PolicyManager_ptr _narrow (
-+ CORBA::Object_ptr obj,
-+ CORBA::Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ );
-+ static CORBA_PolicyManager_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
-+ virtual CORBA_PolicyList * get_policy_overrides (
-+ const CORBA_PolicyTypeSeq & ts,
-+ CORBA::Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ );
-+ virtual void set_policy_overrides (
-+ const CORBA_PolicyList & policies,
-+ CORBA::SetOverrideType set_add,
-+ CORBA::Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ );
- virtual CORBA::Boolean _is_a (
-- const CORBA::Char *type_id,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- virtual void *_tao_QueryInterface (ptr_arith_t type);
--
-+ const CORBA::Char *type_id,
-+ CORBA::Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ );
- virtual const char* _interface_repository_id (void) const;
--
- protected:
-- Current (void);
-- Current (TAO_Stub *objref,
-- TAO_ServantBase *_tao_servant = 0,
-- CORBA::Boolean _tao_collocated = 0
-- );
-- virtual ~Current (void);
-+ CORBA_PolicyManager (void); // default constructor
-+ CORBA_PolicyManager (TAO_Stub *objref,
-+ TAO_ServantBase *_tao_servant = 0,
-+ CORBA::Boolean _tao_collocated = 0
-+ );
-+ virtual ~CORBA_PolicyManager (void);
- private:
-- Current (const Current &);
-- void operator= (const Current &);
-+ CORBA_PolicyManager (const CORBA_PolicyManager &);
-+ void operator= (const CORBA_PolicyManager &);
- };
-
-+// ****************************************************************
-
--#endif /* end #if !defined */
--
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_Current;
--
--
--#if !defined (_CORBA_POLICYCURRENT___PTR_CH_)
--#define _CORBA_POLICYCURRENT___PTR_CH_
--
--class PolicyCurrent;
--typedef PolicyCurrent *PolicyCurrent_ptr;
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICYCURRENT___VAR_CH_)
--#define _CORBA_POLICYCURRENT___VAR_CH_
--
--class TAO_Export PolicyCurrent_var : public TAO_Base_var
-+class TAO_Export CORBA_PolicyCurrent_var : public TAO_Base_var
- {
- public:
-- PolicyCurrent_var (void); // default constructor
-- PolicyCurrent_var (PolicyCurrent_ptr);
-- PolicyCurrent_var (const PolicyCurrent_var &); // copy constructor
-- ~PolicyCurrent_var (void); // destructor
--
-- PolicyCurrent_var &operator= (PolicyCurrent_ptr);
-- PolicyCurrent_var &operator= (const PolicyCurrent_var &);
-- PolicyCurrent_ptr operator-> (void) const;
--
-- operator const PolicyCurrent_ptr &() const;
-- operator PolicyCurrent_ptr &();
-- // in, inout, out, _retn
-- PolicyCurrent_ptr in (void) const;
-- PolicyCurrent_ptr &inout (void);
-- PolicyCurrent_ptr &out (void);
-- PolicyCurrent_ptr _retn (void);
-- PolicyCurrent_ptr ptr (void) const;
-+ CORBA_PolicyCurrent_var (void); // default constructor
-+ CORBA_PolicyCurrent_var (CORBA_PolicyCurrent_ptr);
-+ CORBA_PolicyCurrent_var (const CORBA_PolicyCurrent_var &);
-+ ~CORBA_PolicyCurrent_var (void); // destructor
-+
-+ CORBA_PolicyCurrent_var &operator= (CORBA_PolicyCurrent_ptr);
-+ CORBA_PolicyCurrent_var &operator= (const CORBA_PolicyCurrent_var &);
-+ CORBA_PolicyCurrent_ptr operator-> (void) const;
-+
-+ operator const CORBA_PolicyCurrent_ptr &() const;
-+ operator CORBA_PolicyCurrent_ptr &();
-+ // in, inout, out, _retn
-+ CORBA_PolicyCurrent_ptr in (void) const;
-+ CORBA_PolicyCurrent_ptr &inout (void);
-+ CORBA_PolicyCurrent_ptr &out (void);
-+ CORBA_PolicyCurrent_ptr _retn (void);
-+ CORBA_PolicyCurrent_ptr ptr (void) const;
-
- private:
-- PolicyCurrent_ptr ptr_;
-+ CORBA_PolicyCurrent_ptr ptr_;
- // Unimplemented - prevents widening assignment.
-- PolicyCurrent_var (const TAO_Base_var &rhs);
-- PolicyCurrent_var &operator= (const TAO_Base_var &rhs);
-+ CORBA_PolicyCurrent_var (const TAO_Base_var &rhs);
-+ CORBA_PolicyCurrent_var &operator= (const TAO_Base_var &rhs);
- };
-
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICYCURRENT___OUT_CH_)
--#define _CORBA_POLICYCURRENT___OUT_CH_
--
--class TAO_Export PolicyCurrent_out
-+class TAO_Export CORBA_PolicyCurrent_out
- {
- public:
-- PolicyCurrent_out (PolicyCurrent_ptr &);
-- PolicyCurrent_out (PolicyCurrent_var &);
-- PolicyCurrent_out (const PolicyCurrent_out &);
-- PolicyCurrent_out &operator= (const PolicyCurrent_out &);
-- PolicyCurrent_out &operator= (const PolicyCurrent_var &);
-- PolicyCurrent_out &operator= (PolicyCurrent_ptr);
-- operator PolicyCurrent_ptr &();
-- PolicyCurrent_ptr &ptr (void);
-- PolicyCurrent_ptr operator-> (void);
--
-+ CORBA_PolicyCurrent_out (CORBA_PolicyCurrent_ptr &);
-+ CORBA_PolicyCurrent_out (CORBA_PolicyCurrent_var &);
-+ CORBA_PolicyCurrent_out (const CORBA_PolicyCurrent_out &);
-+ CORBA_PolicyCurrent_out &operator= (const CORBA_PolicyCurrent_out &);
-+ CORBA_PolicyCurrent_out &operator= (const CORBA_PolicyCurrent_var &);
-+ CORBA_PolicyCurrent_out &operator= (CORBA_PolicyCurrent_ptr);
-+ operator CORBA_PolicyCurrent_ptr &();
-+ CORBA_PolicyCurrent_ptr &ptr (void);
-+ CORBA_PolicyCurrent_ptr operator-> (void);
-+
- private:
-- PolicyCurrent_ptr &ptr_;
-+ CORBA_PolicyCurrent_ptr &ptr_;
- };
-
--
--#endif /* end #if !defined */
--
--
--#if !defined (_CORBA_POLICYCURRENT_CH_)
--#define _CORBA_POLICYCURRENT_CH_
--
--class TAO_Export PolicyCurrent: public virtual PolicyManager, public virtual Current
-+class TAO_Export CORBA_PolicyCurrent: public virtual CORBA_PolicyManager, public virtual CORBA_Current
- {
- public:
--#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
-- typedef PolicyCurrent_ptr _ptr_type;
-- typedef PolicyCurrent_var _var_type;
--#endif /* ! __GNUC__ || g++ >= 2.8 */
-+#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
-+ typedef CORBA_PolicyCurrent_ptr _ptr_type;
-+ typedef CORBA_PolicyCurrent_var _var_type;
-+#endif /* __GNUC__ */
-
- // the static operations
-- static PolicyCurrent_ptr _duplicate (PolicyCurrent_ptr obj);
-- static PolicyCurrent_ptr _narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- static PolicyCurrent_ptr _unchecked_narrow (
-- CORBA::Object_ptr obj,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- static PolicyCurrent_ptr _nil (void)
-- {
-- return (PolicyCurrent_ptr)0;
-- }
+- CORBA_Current (const CORBA_Current &);
+- void operator= (const CORBA_Current &);
+-};
-
-+ static CORBA_PolicyCurrent_ptr _duplicate (CORBA_PolicyCurrent_ptr obj);
-+ static CORBA_PolicyCurrent_ptr _narrow (
-+ CORBA::Object_ptr obj,
-+ CORBA::Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ );
-+ static CORBA_PolicyCurrent_ptr _nil (void);
- static void _tao_any_destructor (void*);
-
- virtual CORBA::Boolean _is_a (
-- const CORBA::Char *type_id,
-- CORBA::Environment &ACE_TRY_ENV =
-- TAO_default_environment ()
-- );
-- virtual void *_tao_QueryInterface (ptr_arith_t type);
--
-+ const CORBA::Char *type_id,
-+ CORBA::Environment &ACE_TRY_ENV =
-+ TAO_default_environment ()
-+ );
- virtual const char* _interface_repository_id (void) const;
-
- protected:
-- PolicyCurrent (void);
-- PolicyCurrent (TAO_Stub *objref,
-- TAO_ServantBase *_tao_servant = 0,
-- CORBA::Boolean _tao_collocated = 0
-- );
-- virtual ~PolicyCurrent (void);
-+ CORBA_PolicyCurrent (void); // default constructor
-+ CORBA_PolicyCurrent (TAO_Stub *objref,
-+ TAO_ServantBase *_tao_servant = 0,
-+ CORBA::Boolean _tao_collocated = 0
-+ );
-+ virtual ~CORBA_PolicyCurrent (void);
- private:
-- PolicyCurrent (const PolicyCurrent &);
-- void operator= (const PolicyCurrent &);
-+ CORBA_PolicyCurrent (const CORBA_PolicyCurrent &);
-+ void operator= (const CORBA_PolicyCurrent &);
- };
-
-+// ****************************************************************
-
-#endif /* end #if !defined */
-
--TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PolicyCurrent;
-
-+TAO_Export void operator<<= (CORBA::Any &,
-+ const CORBA::PolicyError &);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::PolicyError*);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::PolicyError *&);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ const CORBA::PolicyError *&);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ const CORBA::InvalidPolicies &);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::InvalidPolicies*);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::InvalidPolicies *&);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ const CORBA::InvalidPolicies *&);
+ #if !defined (_CORBA_POLICYCURRENT___PTR_CH_)
+ #define _CORBA_POLICYCURRENT___PTR_CH_
--}
--TAO_NAMESPACE_CLOSE // module CORBA
--
--TAO_Export void operator<<= (CORBA::Any &, const CORBA::PolicyError &); // copying version
--TAO_Export void operator<<= (CORBA::Any &, CORBA::PolicyError*); // noncopying version
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::PolicyError *&); // deprecated
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::PolicyError *&);
--TAO_Export void operator<<= (CORBA::Any &, const CORBA::InvalidPolicies &); // copying version
--TAO_Export void operator<<= (CORBA::Any &, CORBA::InvalidPolicies*); // noncopying version
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::InvalidPolicies *&); // deprecated
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::InvalidPolicies *&);
--extern TAO_Export CORBA::Policy_ptr (*_TAO_collocation_CORBA_Policy_Stub_Factory_function_pointer) (
-- CORBA::Object_ptr obj
-- );
- // Any operators for interface CORBA::Policy
--TAO_Export void operator<<= (CORBA::Any &, CORBA::Policy_ptr);
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::Policy *&);
--TAO_Export void operator<<= (CORBA::Any &, const CORBA::PolicyList &); // copying version
--TAO_Export void operator<<= (CORBA::Any &, CORBA::PolicyList*); // noncopying version
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::PolicyList *&); // deprecated
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::PolicyList *&);
--TAO_Export void operator<<= (CORBA::Any &, const CORBA::PolicyTypeSeq &); // copying version
--TAO_Export void operator<<= (CORBA::Any &, CORBA::PolicyTypeSeq*); // noncopying version
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::PolicyTypeSeq *&); // deprecated
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::PolicyTypeSeq *&);
--TAO_Export void operator<<= (CORBA::Any &, CORBA::SetOverrideType);
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::SetOverrideType &);
--extern TAO_Export CORBA::PolicyManager_ptr (*_TAO_collocation_CORBA_PolicyManager_Stub_Factory_function_pointer) (
-- CORBA::Object_ptr obj
-- );
--// Any operators for interface CORBA::PolicyManager
--TAO_Export void operator<<= (CORBA::Any &, CORBA::PolicyManager_ptr);
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::PolicyManager *&);
--extern TAO_Export CORBA::Current_ptr (*_TAO_collocation_CORBA_Current_Stub_Factory_function_pointer) (
-- CORBA::Object_ptr obj
-- );
--// Any operators for interface CORBA::Current
--TAO_Export void operator<<= (CORBA::Any &, CORBA::Current_ptr);
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::Current *&);
--extern TAO_Export CORBA::PolicyCurrent_ptr (*_TAO_collocation_CORBA_PolicyCurrent_Stub_Factory_function_pointer) (
-- CORBA::Object_ptr obj
-- );
--// Any operators for interface CORBA::PolicyCurrent
--TAO_Export void operator<<= (CORBA::Any &, CORBA::PolicyCurrent_ptr);
--TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::PolicyCurrent *&);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::Policy_ptr);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::Policy *&);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ const CORBA::PolicyList &);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::PolicyList*);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::PolicyList *&);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ const CORBA::PolicyList *&);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ const CORBA::PolicyTypeSeq &);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::PolicyTypeSeq*);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::PolicyTypeSeq *&);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ const CORBA::PolicyTypeSeq *&);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::SetOverrideType);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::SetOverrideType &);
-+
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::PolicyManager_ptr);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::PolicyManager *&);
-+TAO_Export void operator<<= (CORBA::Any &,
-+ CORBA::PolicyCurrent_ptr);
-+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
-+ CORBA::PolicyCurrent *&);
+@@ -1206,7 +1083,7 @@
--#ifndef __ACE_INLINE__
-+// ****************************************************************
-+
-+#if defined (__ACE_INLINE__)
-+#include "tao/PolicyC.i"
-+#else
- TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyError &);
- TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyError &);
--
--# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
--
--TAO_Export ostream& operator<< (ostream &, const CORBA::PolicyError &);
--
--# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
- TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::InvalidPolicies &);
- TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::InvalidPolicies &);
--
--#if !defined _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_H_
--#define _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_H_
--
--TAO_Export CORBA::Boolean operator<< (
-- TAO_OutputCDR &,
-- const CORBA::InvalidPolicies::_tao_seq_UShort &
-- );
--TAO_Export CORBA::Boolean operator>> (
-- TAO_InputCDR &,
-- CORBA::InvalidPolicies::_tao_seq_UShort &
-- );
--
--#endif /* _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_UShort_H_ */
--
--
--# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
--
--TAO_Export ostream& operator<< (ostream &, const CORBA::InvalidPolicies &);
--
--# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
-+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::InvalidPolicies::_tao_seq_UShort &);
-+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::InvalidPolicies::_tao_seq_UShort &);
- TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::Policy_ptr );
- TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Policy_ptr &);
--
--#if !defined _TAO_CDR_OP_CORBA_PolicyList_H_
--#define _TAO_CDR_OP_CORBA_PolicyList_H_
--
--TAO_Export CORBA::Boolean operator<< (
-- TAO_OutputCDR &,
-- const CORBA::PolicyList &
-- );
--TAO_Export CORBA::Boolean operator>> (
-- TAO_InputCDR &,
-- CORBA::PolicyList &
-- );
--
--#endif /* _TAO_CDR_OP_CORBA_PolicyList_H_ */
--
--
--#if !defined _TAO_CDR_OP_CORBA_PolicyTypeSeq_H_
--#define _TAO_CDR_OP_CORBA_PolicyTypeSeq_H_
--
--TAO_Export CORBA::Boolean operator<< (
-- TAO_OutputCDR &,
-- const CORBA::PolicyTypeSeq &
-- );
--TAO_Export CORBA::Boolean operator>> (
-- TAO_InputCDR &,
-- CORBA::PolicyTypeSeq &
-- );
--
--#endif /* _TAO_CDR_OP_CORBA_PolicyTypeSeq_H_ */
--
--TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::SetOverrideType &); //
-+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyList &);
-+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyList &);
-+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyTypeSeq &);
-+TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyTypeSeq &);
-+TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::SetOverrideType &);
- TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::SetOverrideType &);
- TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyManager_ptr );
- TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyManager_ptr &);
--TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::Current_ptr );
--TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Current_ptr &);
- TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::PolicyCurrent_ptr );
- TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::PolicyCurrent_ptr &);
-
--#endif /* __ACE_INLINE__ */
--
--
--#if defined (__ACE_INLINE__)
+ #if defined (__ACE_INLINE__)
-#include "PolicyC.i"
++#include "tao/PolicyC.i"
#endif /* defined INLINE */
--#if defined(_MSC_VER) && (_MSC_VER >= 1200)
--#pragma warning(pop)
--#endif /* _MSC_VER */
--
- #include "ace/post.h"
--#endif /* ifndef */
-+#endif /* TAO_IDL_POLICYC_H */
+ #if defined(_MSC_VER) && (_MSC_VER >= 1200)
diff --git a/TAO/tao/diffs/PolicyC.i.diff b/TAO/tao/diffs/PolicyC.i.diff
index 17d5ad87e14..fea966f0588 100644
--- a/TAO/tao/diffs/PolicyC.i.diff
+++ b/TAO/tao/diffs/PolicyC.i.diff
@@ -1,8 +1,179 @@
-@@ -418,7 +418,2 @@
+--- PolicyC.i Tue Jul 11 00:38:13 2000
++++ PolicyC.i.mod Tue Jul 11 00:29:58 2000
+@@ -1475,176 +1475,6 @@
+ #endif /* end #if !defined */
+
+
+-#if !defined (_CORBA_CURRENT___VAR_CI_)
+-#define _CORBA_CURRENT___VAR_CI_
+-
+-// *************************************************************
+-// Inline operations for class CORBA_Current_var
+-// *************************************************************
+-
+-ACE_INLINE
+-CORBA_Current_var::CORBA_Current_var (void) // default constructor
+- : ptr_ (CORBA_Current::_nil ())
+-{}
+-
+-ACE_INLINE ::CORBA_Current_ptr
+-CORBA_Current_var::ptr (void) const
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE
+-CORBA_Current_var::CORBA_Current_var (const ::CORBA_Current_var &p) // copy constructor
+- : TAO_Base_var (),
+- ptr_ (CORBA_Current::_duplicate (p.ptr ()))
+-{}
+-
+-ACE_INLINE
+-CORBA_Current_var::~CORBA_Current_var (void) // destructor
+-{
+- CORBA::release (this->ptr_);
+-}
+-
+-ACE_INLINE CORBA_Current_var &
+-CORBA_Current_var::operator= (CORBA_Current_ptr p)
+-{
+- CORBA::release (this->ptr_);
+- this->ptr_ = p;
+- return *this;
+-}
+-
+-ACE_INLINE CORBA_Current_var &
+-CORBA_Current_var::operator= (const ::CORBA_Current_var &p)
+-{
+- if (this != &p)
+- {
+- CORBA::release (this->ptr_);
+- this->ptr_ = ::CORBA_Current::_duplicate (p.ptr ());
+- }
+- return *this;
+-}
+-
+-ACE_INLINE
+-CORBA_Current_var::operator const ::CORBA_Current_ptr &() const // cast
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE
+-CORBA_Current_var::operator ::CORBA_Current_ptr &() // cast
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE ::CORBA_Current_ptr
+-CORBA_Current_var::operator-> (void) const
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE ::CORBA_Current_ptr
+-CORBA_Current_var::in (void) const
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE ::CORBA_Current_ptr &
+-CORBA_Current_var::inout (void)
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE ::CORBA_Current_ptr &
+-CORBA_Current_var::out (void)
+-{
+- CORBA::release (this->ptr_);
+- this->ptr_ = ::CORBA_Current::_nil ();
+- return this->ptr_;
+-}
+-
+-ACE_INLINE ::CORBA_Current_ptr
+-CORBA_Current_var::_retn (void)
+-{
+- // yield ownership of managed obj reference
+- ::CORBA_Current_ptr val = this->ptr_;
+- this->ptr_ = ::CORBA_Current::_nil ();
+- return val;
+-}
+-
+-
+-#endif /* end #if !defined */
+-
+-
+-#if !defined (_CORBA_CURRENT___OUT_CI_)
+-#define _CORBA_CURRENT___OUT_CI_
+-
+-// *************************************************************
+-// Inline operations for class CORBA_Current_out
+-// *************************************************************
+-
-ACE_INLINE
--CORBA::Policy_var::Policy_var (Policy_ptr p)
+-CORBA_Current_out::CORBA_Current_out (CORBA_Current_ptr &p)
- : ptr_ (p)
+-{
+- this->ptr_ = ::CORBA_Current::_nil ();
+-}
+-
+-ACE_INLINE
+-CORBA_Current_out::CORBA_Current_out (CORBA_Current_var &p) // constructor from _var
+- : ptr_ (p.out ())
+-{
+- CORBA::release (this->ptr_);
+- this->ptr_ = ::CORBA_Current::_nil ();
+-}
+-
+-ACE_INLINE
+-CORBA_Current_out::CORBA_Current_out (const ::CORBA_Current_out &p) // copy constructor
+- : ptr_ (ACE_const_cast (CORBA_Current_out &, p).ptr_)
-{}
-
-ACE_INLINE ::CORBA::Policy_ptr
-CORBA::Policy_var::ptr (void) const
+-ACE_INLINE ::CORBA_Current_out &
+-CORBA_Current_out::operator= (const ::CORBA_Current_out &p)
+-{
+- this->ptr_ = ACE_const_cast (CORBA_Current_out&, p).ptr_;
+- return *this;
+-}
+-
+-ACE_INLINE CORBA_Current_out &
+-CORBA_Current_out::operator= (const ::CORBA_Current_var &p)
+-{
+- this->ptr_ = ::CORBA_Current::_duplicate (p.ptr ());
+- return *this;
+-}
+-
+-ACE_INLINE CORBA_Current_out &
+-CORBA_Current_out::operator= (CORBA_Current_ptr p)
+-{
+- this->ptr_ = p;
+- return *this;
+-}
+-
+-ACE_INLINE
+-CORBA_Current_out::operator ::CORBA_Current_ptr &() // cast
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE ::CORBA_Current_ptr &
+-CORBA_Current_out::ptr (void) // ptr
+-{
+- return this->ptr_;
+-}
+-
+-ACE_INLINE ::CORBA_Current_ptr
+-CORBA_Current_out::operator-> (void)
+-{
+- return this->ptr_;
+-}
+-
+-
+-#endif /* end #if !defined */
+-
+-
+ #if !defined (_CORBA_POLICYCURRENT___VAR_CI_)
+ #define _CORBA_POLICYCURRENT___VAR_CI_
+
diff --git a/TAO/tao/diffs/PolicyS.cpp.diff b/TAO/tao/diffs/PolicyS.cpp.diff
new file mode 100644
index 00000000000..1814441e2a1
--- /dev/null
+++ b/TAO/tao/diffs/PolicyS.cpp.diff
@@ -0,0 +1,318 @@
+--- PolicyS.cpp Sat Jun 24 03:24:53 2000
++++ PolicyS.cpp.mod Sat Jun 24 03:23:51 2000
+@@ -7,12 +7,16 @@
+ // Information about TAO is available at:
+ // http://www.cs.wustl.edu/~schmidt/TAO.html
+
+-#include "PolicyS.h"
++#include "tao/PolicyC.h"
++#include "tao/Operation_Table.h"
++#include "tao/Server_Request.h"
++#include "tao/NVList.h"
++#include "tao/Stub.h"
++#include "tao/POA_CORBA.h"
++#include "tao/Typecode.h"
++#include "tao/Object_Adapter.h"
++#include "tao/ORB_Core.h"
+
+-#if !defined (__ACE_INLINE__)
+-#include "PolicyS.i"
+-#endif /* !defined INLINE */
+-
+ class TAO_CORBA_Policy_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable
+ {
+ private:
+@@ -91,14 +95,14 @@
+ static const class TAO_operation_db_entry wordlist[] =
+ {
+ {"",0},{"",0},{"",0},{"",0},
+- {"copy", &POA_CORBA_Policy::copy_skel},
+- {"_is_a", &POA_CORBA_Policy::_is_a_skel},
++ {"copy", &POA_CORBA::Policy::copy_skel},
++ {"_is_a", &POA_CORBA::Policy::_is_a_skel},
+ {"",0},
+- {"destroy", &POA_CORBA_Policy::destroy_skel},
++ {"destroy", &POA_CORBA::Policy::destroy_skel},
+ {"",0},{"",0},{"",0},{"",0},{"",0},
+- {"_non_existent", &POA_CORBA_Policy::_non_existent_skel},
++ {"_non_existent", &POA_CORBA::Policy::_non_existent_skel},
+ {"",0},{"",0},
+- {"_get_policy_type", &POA_CORBA_Policy::_get_policy_type_skel},
++ {"_get_policy_type", &POA_CORBA::Policy::_get_policy_type_skel},
+ };
+
+ if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
+@@ -131,7 +135,7 @@
+ CORBA_Policy_ptr retval = 0;
+ ACE_NEW_RETURN (
+ retval,
+- _tao_thru_poa_collocated_CORBA_Policy (stub),
++ POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy (stub),
+ 0
+ );
+ return retval;
+@@ -158,29 +162,29 @@
+ _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer (ACE_reinterpret_cast (long, _TAO_collocation_POA_CORBA_Policy_Stub_Factory_Initializer));
+
+ // skeleton constructor
+-POA_CORBA_Policy::POA_CORBA_Policy (void)
++POA_CORBA::Policy::Policy (void)
+ {
+ this->optable_ = &tao_CORBA_Policy_optable;
+ }
+
+ // copy ctor
+-POA_CORBA_Policy::POA_CORBA_Policy (const POA_CORBA_Policy& rhs)
++POA_CORBA::Policy::Policy (const POA_CORBA::Policy& rhs)
+ : TAO_ServantBase (rhs)
+ {}
+
+ // skeleton destructor
+-POA_CORBA_Policy::~POA_CORBA_Policy (void)
++POA_CORBA::Policy::~Policy (void)
+ {
+ }
+
+-void POA_CORBA_Policy::_get_policy_type_skel (
++void POA_CORBA::Policy::_get_policy_type_skel (
+ CORBA::ServerRequest &_tao_server_request,
+ void *_tao_object_reference,
+ void * /* context */,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+ {
+- POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *)_tao_object_reference;
++ POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
+
+ CORBA::PolicyType _tao_retval = 0;
+ #if (TAO_HAS_INTERCEPTORS == 1)
+@@ -259,14 +263,14 @@
+
+ }
+
+-void POA_CORBA_Policy::copy_skel (
++void POA_CORBA::Policy::copy_skel (
+ CORBA::ServerRequest &_tao_server_request,
+ void *_tao_object_reference,
+ void * /* context */,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+ {
+- POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *)_tao_object_reference;
++ POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
+
+ CORBA_Policy_var _tao_retval;
+ #if (TAO_HAS_INTERCEPTORS == 1)
+@@ -345,14 +349,14 @@
+
+ }
+
+-void POA_CORBA_Policy::destroy_skel (
++void POA_CORBA::Policy::destroy_skel (
+ CORBA::ServerRequest &_tao_server_request,
+ void *_tao_object_reference,
+ void * /* context */,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+ {
+- POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *)_tao_object_reference;
++ POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *)_tao_object_reference;
+
+ #if (TAO_HAS_INTERCEPTORS == 1)
+ TAO_ServerRequestInterceptor_Adapter
+@@ -424,7 +428,7 @@
+ ACE_CHECK;
+ }
+
+-void POA_CORBA_Policy::_is_a_skel (
++void POA_CORBA::Policy::_is_a_skel (
+ CORBA::ServerRequest &_tao_server_request,
+ void * _tao_object_reference,
+ void * /* context */,
+@@ -432,7 +436,7 @@
+ )
+ {
+ TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
+- POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *) _tao_object_reference;
++ POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *) _tao_object_reference;
+ CORBA::Boolean _tao_retval = 0;
+ CORBA::String_var value;
+ if (!(_tao_in >> value.out ()))
+@@ -448,14 +452,14 @@
+ ACE_THROW (CORBA::MARSHAL ());
+ }
+
+-void POA_CORBA_Policy::_non_existent_skel (
++void POA_CORBA::Policy::_non_existent_skel (
+ CORBA::ServerRequest &_tao_server_request,
+ void * _tao_object_reference,
+ void * /* context */,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+ {
+- POA_CORBA_Policy *_tao_impl = (POA_CORBA_Policy *) _tao_object_reference;
++ POA_CORBA::Policy *_tao_impl = (POA_CORBA::Policy *) _tao_object_reference;
+ CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
+ ACE_CHECK;
+
+@@ -466,7 +470,7 @@
+ ACE_THROW (CORBA::MARSHAL ());
+ }
+
+-CORBA::Boolean POA_CORBA_Policy::_is_a (
++CORBA::Boolean POA_CORBA::Policy::_is_a (
+ const char* value,
+ CORBA::Environment &ACE_TRY_ENV
+ )
+@@ -479,18 +483,18 @@
+ return 0;
+ }
+
+-void* POA_CORBA_Policy::_downcast (
++void* POA_CORBA::Policy::_downcast (
+ const char* logical_type_id
+ )
+ {
+ if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA_Policy:1.0") == 0)
+- return ACE_static_cast (POA_CORBA_Policy_ptr, this);
++ return ACE_static_cast (POA_CORBA::Policy_ptr, this);
+ if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0)
+ return ACE_static_cast(PortableServer::Servant, this);
+ return 0;
+ }
+
+-void POA_CORBA_Policy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
++void POA_CORBA::Policy::_dispatch (CORBA::ServerRequest &req, void *context, CORBA::Environment &ACE_TRY_ENV)
+ {
+ TAO_Skeleton skel; // pointer to skeleton for operation
+ const char *opname = req.operation (); // retrieve operation name
+@@ -504,13 +508,13 @@
+ skel (req, this, context, ACE_TRY_ENV);
+ }
+
+-const char* POA_CORBA_Policy::_interface_repository_id (void) const
++const char* POA_CORBA::Policy::_interface_repository_id (void) const
+ {
+ return "IDL:omg.org/CORBA_Policy:1.0";
+ }
+
+ CORBA_Policy*
+-POA_CORBA_Policy::_this (CORBA_Environment &ACE_TRY_ENV)
++POA_CORBA::Policy::_this (CORBA_Environment &ACE_TRY_ENV)
+ {
+ TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
+ ACE_CHECK_RETURN (0);
+@@ -522,7 +526,7 @@
+ ::CORBA_Policy_ptr retval = 0;
+ ACE_NEW_RETURN (
+ retval,
+- _tao_thru_poa_collocated_CORBA_Policy (stub),
++ POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy (stub),
+ 0
+ );
+ return retval;
+@@ -542,14 +546,14 @@
+ }
+ }
+
+-_tao_thru_poa_collocated_CORBA_Policy::_tao_thru_poa_collocated_CORBA_Policy (
++POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_tao_thru_poa_collocated_CORBA_Policy (
+ TAO_Stub *stub
+ )
+ : CORBA_Object (stub, 0, 1)
+ {
+ }
+
+-CORBA::Boolean _tao_thru_poa_collocated_CORBA_Policy::_is_a(
++CORBA::Boolean POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_is_a(
+ const CORBA::Char *logical_type_id,
+ CORBA_Environment &ACE_TRY_ENV
+ )
+@@ -565,7 +569,7 @@
+ );
+ ACE_CHECK_RETURN (0);
+ return ACE_reinterpret_cast (
+- POA_CORBA_Policy_ptr,
++ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+@@ -573,7 +577,7 @@
+ }
+
+
+-CORBA::Boolean _tao_thru_poa_collocated_CORBA_Policy::_non_existent(
++CORBA::Boolean POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::_non_existent(
+ CORBA_Environment &ACE_TRY_ENV
+ )
+
+@@ -588,7 +592,7 @@
+ );
+ ACE_CHECK_RETURN (0);
+ return ACE_reinterpret_cast (
+- POA_CORBA_Policy_ptr,
++ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+@@ -596,7 +600,7 @@
+ }
+
+
+-CORBA::PolicyType _tao_thru_poa_collocated_CORBA_Policy::policy_type (
++CORBA::PolicyType POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::policy_type (
+ CORBA::Environment &ACE_TRY_ENV
+ )
+ ACE_THROW_SPEC ((
+@@ -615,7 +619,7 @@
+ );
+ ACE_CHECK_RETURN (_tao_retval);
+ return ACE_reinterpret_cast (
+- POA_CORBA_Policy_ptr,
++ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+@@ -625,7 +629,7 @@
+
+ }
+
+-CORBA_Policy_ptr _tao_thru_poa_collocated_CORBA_Policy::copy (
++CORBA_Policy_ptr POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::copy (
+ CORBA::Environment &ACE_TRY_ENV
+ )
+ ACE_THROW_SPEC ((
+@@ -644,7 +648,7 @@
+ );
+ ACE_CHECK_RETURN (0);
+ return ACE_reinterpret_cast (
+- POA_CORBA_Policy_ptr,
++ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+@@ -654,7 +658,7 @@
+
+ }
+
+-void _tao_thru_poa_collocated_CORBA_Policy::destroy (
++void POA_CORBA::_tao_thru_poa_collocated_CORBA_Policy::destroy (
+ CORBA::Environment &ACE_TRY_ENV
+ )
+ ACE_THROW_SPEC ((
+@@ -671,7 +675,7 @@
+ );
+ ACE_CHECK;
+ ACE_reinterpret_cast (
+- POA_CORBA_Policy_ptr,
++ POA_CORBA::Policy_ptr,
+ servant_upcall.servant ()->_downcast (
+ "IDL:omg.org/CORBA_Policy:1.0"
+ )
+@@ -680,6 +684,3 @@
+ );
+ return;
+ }
+-
+-
+-
diff --git a/TAO/tao/diffs/PortableServerC.cpp.diff b/TAO/tao/diffs/PortableServerC.cpp.diff
new file mode 100644
index 00000000000..b2877d1d07e
--- /dev/null
+++ b/TAO/tao/diffs/PortableServerC.cpp.diff
@@ -0,0 +1,198 @@
+--- PortableServerC.cpp Tue Jul 11 01:25:50 2000
++++ PortableServerC.cpp.mod Tue Jul 11 01:16:29 2000
+@@ -8,6 +8,8 @@
+ // http://www.cs.wustl.edu/~schmidt/TAO.html
+
+ #include "PortableServerC.h"
++#include "tao/ORB.h"
++#include "tao/POA.h"
+
+ #if !defined (__ACE_INLINE__)
+ #include "PortableServerC.i"
+@@ -209,6 +211,9 @@
+ TAO_NAMESPACE_BEGIN (PortableServer)
+ TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ObjectId, &_tc_TAO_tc_PortableServer_ObjectId)
+ TAO_NAMESPACE_END
++
++#if (TAO_HAS_MINIMUM_CORBA == 0)
++
+ // default constructor
+ PortableServer::ForwardRequest::ForwardRequest (void)
+ : CORBA_UserException (::PortableServer::_tc_ForwardRequest)
+@@ -314,6 +319,9 @@
+ TAO_NAMESPACE_BEGIN (PortableServer)
+ TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ForwardRequest, &_tc_TAO_tc_PortableServer_ForwardRequest)
+ TAO_NAMESPACE_END
++
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
++
+ TAO_NAMESPACE_TYPE (const CORBA::ULong)
+ TAO_NAMESPACE_BEGIN (PortableServer)
+ TAO_NAMESPACE_DEFINE (const CORBA::ULong, THREAD_POLICY_ID, 16U)
+@@ -342,6 +350,9 @@
+ TAO_NAMESPACE_BEGIN (PortableServer)
+ TAO_NAMESPACE_DEFINE (const CORBA::ULong, REQUEST_PROCESSING_POLICY_ID, 22U)
+ TAO_NAMESPACE_END
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ static const CORBA::Long _oc_PortableServer_ThreadPolicyValue[] =
+ {
+ TAO_ENCAP_BYTE_ORDER, // byte order
+@@ -436,6 +447,8 @@
+ return "IDL:PortableServer/ThreadPolicy:1.0";
+ }
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ static const CORBA::Long _oc_PortableServer_LifespanPolicyValue[] =
+ {
+ TAO_ENCAP_BYTE_ORDER, // byte order
+@@ -718,6 +731,8 @@
+ return "IDL:PortableServer/IdAssignmentPolicy:1.0";
+ }
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicyValue[] =
+ {
+ TAO_ENCAP_BYTE_ORDER, // byte order
+@@ -1001,6 +1016,7 @@
+ return "IDL:PortableServer/RequestProcessingPolicy:1.0";
+ }
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+ // default constructor
+ PortableServer::POAManager::POAManager (void)
+@@ -1048,6 +1064,8 @@
+ return obj;
+ }
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ // default constructor
+ PortableServer::POAManager::AdapterInactive::AdapterInactive (void)
+ {
+@@ -1430,6 +1448,7 @@
+ return "IDL:PortableServer/ServantLocator:1.0";
+ }
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+ // default constructor
+ PortableServer::POA::POA (void)
+@@ -1681,6 +1700,8 @@
+ this->index = _tao_index;
+ }
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ // default constructor
+ PortableServer::POA::NoServant::NoServant (void)
+ {
+@@ -1746,6 +1767,8 @@
+ return retval;
+ }
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ // default constructor
+ PortableServer::POA::ObjectAlreadyActive::ObjectAlreadyActive (void)
+ {
+@@ -2302,6 +2325,30 @@
+ return "IDL:PortableServer/Current:1.0";
+ }
+
++char *
++PortableServer::ObjectId_to_string (const PortableServer::ObjectId &id)
++{
++ return TAO_POA::ObjectId_to_string (id);
++}
++
++CORBA::WChar *
++PortableServer::ObjectId_to_wstring (const PortableServer::ObjectId &id)
++{
++ return TAO_POA::ObjectId_to_wstring (id);
++}
++
++PortableServer::ObjectId *
++PortableServer::string_to_ObjectId (const char *id)
++{
++ return TAO_POA::string_to_ObjectId (id);
++}
++
++PortableServer::ObjectId *
++PortableServer::wstring_to_ObjectId (const CORBA::WChar *id)
++{
++ return TAO_POA::wstring_to_ObjectId (id);
++}
++
+ void operator<<= (
+ CORBA::Any &_tao_any,
+ const PortableServer::ObjectId &_tao_elem
+@@ -2391,6 +2438,8 @@
+ return 0;
+ }
+
++#if (TAO_HAS_MINIMUM_CORBA == 0)
++
+ void operator<<= (CORBA::Any &_tao_any, const PortableServer::ForwardRequest &_tao_elem) // copying
+ {
+ TAO_OutputCDR stream;
+@@ -2479,6 +2528,10 @@
+ return 0;
+ }
+
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ void operator<<= (CORBA::Any &_tao_any, PortableServer::ThreadPolicyValue _tao_elem)
+ {
+ TAO_OutputCDR stream;
+@@ -2524,6 +2577,8 @@
+ # pragma instantiate TAO_Object_Manager<PortableServer::ThreadPolicy,PortableServer::ThreadPolicy_var>
+ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ void operator<<= (CORBA::Any &_tao_any, PortableServer::LifespanPolicyValue _tao_elem)
+ {
+ TAO_OutputCDR stream;
+@@ -2659,6 +2714,8 @@
+ # pragma instantiate TAO_Object_Manager<PortableServer::IdAssignmentPolicy,PortableServer::IdAssignmentPolicy_var>
+ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ void operator<<= (CORBA::Any &_tao_any, PortableServer::ImplicitActivationPolicyValue _tao_elem)
+ {
+ TAO_OutputCDR stream;
+@@ -2794,6 +2851,8 @@
+ # pragma instantiate TAO_Object_Manager<PortableServer::RequestProcessingPolicy,PortableServer::RequestProcessingPolicy_var>
+ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::POAManager,PortableServer::POAManager_var>;
+@@ -2801,6 +2860,8 @@
+ # pragma instantiate TAO_Object_Manager<PortableServer::POAManager,PortableServer::POAManager_var>
+ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::AdapterActivator,PortableServer::AdapterActivator_var>;
+@@ -2829,6 +2890,8 @@
+ # pragma instantiate TAO_Object_Manager<PortableServer::ServantLocator,PortableServer::ServantLocator_var>
+ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_GNU_REPO)
+ template class TAO_Object_Manager<PortableServer::POA,PortableServer::POA_var>;
diff --git a/TAO/tao/diffs/PortableServerC.h.diff b/TAO/tao/diffs/PortableServerC.h.diff
new file mode 100644
index 00000000000..9dff1bbe2c4
--- /dev/null
+++ b/TAO/tao/diffs/PortableServerC.h.diff
@@ -0,0 +1,438 @@
+--- PortableServerC.h Tue Jul 11 01:25:50 2000
++++ PortableServerC.h.mod Tue Jul 11 01:16:35 2000
+@@ -11,7 +11,7 @@
+ #define _TAO_IDL_PORTABLESERVERC_H_
+
+ #include "ace/pre.h"
+-#include "tao/corba.h"
++#include "tao/corbafwd.h"
+
+ #if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
+ #include "ace/streams.h"
+@@ -21,7 +21,10 @@
+ # pragma once
+ #endif /* ACE_LACKS_PRAGMA_ONCE */
+
+-#include "tao/corbafwd.h"
++#include "tao/CurrentC.h"
++#include "tao/PolicyC.h"
++#include "tao/Typecode.h"
++#include "tao/Any.h"
+
+ #if defined (TAO_EXPORT_MACRO)
+ #undef TAO_EXPORT_MACRO
+@@ -42,8 +45,22 @@
+ #pragma warning(disable:4250)
+ #endif /* _MSC_VER */
+
++class TAO_ServantBase;
++class TAO_ServantBase_var;
++class TAO_RefCountServantBase;
++class TAO_Local_ServantBase;
++class TAO_DynamicImplementation;
++
+ TAO_NAMESPACE PortableServer
+ {
++ typedef TAO_ServantBase ServantBase;
++ typedef TAO_ServantBase_var ServantBase_var;
++ typedef TAO_RefCountServantBase RefCountServantBase;
++ typedef ServantBase *Servant;
++
++ typedef TAO_Local_ServantBase LocalServantBase;
++ typedef TAO_DynamicImplementation DynamicImplementation;
++
+ class POA;
+
+ #if !defined (_PORTABLESERVER_POA___PTR_CH_)
+@@ -297,13 +314,13 @@
+ #endif /* ! __GNUC__ || g++ >= 2.8 */
+
+
+-#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
++#if defined(TAO_NO_COPY_OCTET_SEQUENCES)
+ ObjectId (
+ CORBA::ULong length,
+ const ACE_Message_Block* mb
+ )
+ : TAO_Unbounded_Sequence<CORBA::Octet> (length, mb) {}
+-#endif /* TAO_NO_COPY_OCTET_SEQUENCE == 1 */
++#endif /* TAO_NO_COPY_OCTET_SEQUENCE */
+
+ };
+
+@@ -380,6 +397,8 @@
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ObjectId;
+
+
++#if (TAO_HAS_MINIMUM_CORBA == 0)
++
+ #if !defined (_PORTABLESERVER_FORWARDREQUEST_CH_)
+ #define _PORTABLESERVER_FORWARDREQUEST_CH_
+
+@@ -421,6 +440,8 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
++
+ TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong THREAD_POLICY_ID;
+
+ TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong LIFESPAN_POLICY_ID;
+@@ -435,6 +456,8 @@
+
+ TAO_NAMESPACE_STORAGE_CLASS const CORBA::ULong REQUEST_PROCESSING_POLICY_ID;
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ enum ThreadPolicyValue
+ {
+ ORB_CTRL_MODEL,
+@@ -564,6 +587,8 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ enum LifespanPolicyValue
+ {
+ TRANSIENT,
+@@ -951,6 +976,8 @@
+
+ #endif /* end #if !defined */
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ enum ImplicitActivationPolicyValue
+ {
+ IMPLICIT_ACTIVATION,
+@@ -1080,12 +1107,17 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ enum ServantRetentionPolicyValue
+ {
+ RETAIN,
+ NON_RETAIN,
+ ServantRetentionPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+ };
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ typedef ServantRetentionPolicyValue &ServantRetentionPolicyValue_out;
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ServantRetentionPolicyValue;
+
+@@ -1209,6 +1241,8 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ enum RequestProcessingPolicyValue
+ {
+ USE_ACTIVE_OBJECT_MAP_ONLY,
+@@ -1216,6 +1250,9 @@
+ USE_SERVANT_MANAGER,
+ RequestProcessingPolicyValue_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF
+ };
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ typedef RequestProcessingPolicyValue &RequestProcessingPolicyValue_out;
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_RequestProcessingPolicyValue;
+
+@@ -1339,6 +1376,7 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+ #if !defined (_PORTABLESERVER_POAMANAGER___PTR_CH_)
+ #define _PORTABLESERVER_POAMANAGER___PTR_CH_
+@@ -1489,6 +1527,8 @@
+ PortableServer::POAManager::AdapterInactive
+ )) = 0;
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ virtual void hold_requests (
+ CORBA::Boolean wait_for_completion,
+ CORBA::Environment &ACE_TRY_ENV =
+@@ -1520,6 +1560,8 @@
+ PortableServer::POAManager::AdapterInactive
+ )) = 0;
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ virtual PortableServer::POAManager::State get_state (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+@@ -1544,6 +1586,8 @@
+ #endif /* end #if !defined */
+
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ #if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_)
+ #define _PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_
+
+@@ -1876,23 +1920,27 @@
+
+ virtual PortableServer::Servant incarnate (
+ const PortableServer::ObjectId & oid,
+- PortableServer::POA_ptr adapter,
+- CORBA::Environment &ACE_TRY_ENV =
+- TAO_default_environment ()
++ PortableServer::POA_ptr adapter
++ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
++#if (TAO_HAS_MINIMUM_CORBA == 0)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::ForwardRequest
+ )) = 0;
++#else
++ ACE_THROW_SPEC ((
++ CORBA::SystemException
++ )) = 0;
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+ virtual void etherealize (
+ const PortableServer::ObjectId & oid,
+ PortableServer::POA_ptr adapter,
+ PortableServer::Servant serv,
+ CORBA::Boolean cleanup_in_progress,
+- CORBA::Boolean remaining_activations,
+- CORBA::Environment &ACE_TRY_ENV =
+- TAO_default_environment ()
++ CORBA::Boolean remaining_activations
++ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+@@ -1988,6 +2036,9 @@
+ class TAO_Export ServantLocator: public virtual ServantManager
+ {
+ public:
++
++ typedef void *Cookie;
++
+ #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef ServantLocator_ptr _ptr_type;
+ typedef ServantLocator_var _var_type;
+@@ -2014,23 +2065,27 @@
+ const PortableServer::ObjectId & oid,
+ PortableServer::POA_ptr adapter,
+ const char * operation,
+- PortableServer::ServantLocator::Cookie & the_cookie,
+- CORBA::Environment &ACE_TRY_ENV =
+- TAO_default_environment ()
++ PortableServer::ServantLocator::Cookie & the_cookie
++ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
++#if (TAO_HAS_MINIMUM_CORBA == 0)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ PortableServer::ForwardRequest
+ )) = 0;
++#else
++ ACE_THROW_SPEC ((
++ CORBA::SystemException
++ )) = 0;
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
+
+ virtual void postinvoke (
+ const PortableServer::ObjectId & oid,
+ PortableServer::POA_ptr adapter,
+ const char * operation,
+ PortableServer::ServantLocator::Cookie the_cookie,
+- PortableServer::Servant the_servant,
+- CORBA::Environment &ACE_TRY_ENV =
+- TAO_default_environment ()
++ PortableServer::Servant the_servant
++ TAO_ENV_ARG_DECL_WITH_DEFAULTS
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+@@ -2052,6 +2107,8 @@
+ #endif /* end #if !defined */
+
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ #if !defined (_PORTABLESERVER_POA___PTR_CH_)
+ #define _PORTABLESERVER_POA___PTR_CH_
+
+@@ -2258,6 +2315,8 @@
+ #endif /* end #if !defined */
+
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ #if !defined (_PORTABLESERVER_POA_NOSERVANT_CH_)
+ #define _PORTABLESERVER_POA_NOSERVANT_CH_
+
+@@ -2292,6 +2351,7 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+ #if !defined (_PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_)
+ #define _PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_
+@@ -2536,6 +2596,8 @@
+ CORBA::SystemException
+ )) = 0;
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ virtual PortableServer::ThreadPolicy_ptr create_thread_policy (
+ PortableServer::ThreadPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+@@ -2545,6 +2607,8 @@
+ CORBA::SystemException
+ )) = 0;
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ virtual PortableServer::LifespanPolicy_ptr create_lifespan_policy (
+ PortableServer::LifespanPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+@@ -2572,6 +2636,8 @@
+ CORBA::SystemException
+ )) = 0;
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ virtual PortableServer::ImplicitActivationPolicy_ptr create_implicit_activation_policy (
+ PortableServer::ImplicitActivationPolicyValue value,
+ CORBA::Environment &ACE_TRY_ENV =
+@@ -2599,6 +2665,8 @@
+ CORBA::SystemException
+ )) = 0;
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ virtual char * the_name (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+@@ -2631,6 +2699,8 @@
+ CORBA::SystemException
+ )) = 0;
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ virtual PortableServer::AdapterActivator_ptr the_activator (
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+@@ -2687,6 +2757,8 @@
+ PortableServer::POA::WrongPolicy
+ )) = 0;
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ virtual PortableServer::ObjectId * activate_object (
+ PortableServer::Servant p_servant,
+ CORBA::Environment &ACE_TRY_ENV =
+@@ -2989,6 +3061,10 @@
+
+ #endif /* end #if !defined */
+
++ TAO_NAMESPACE_STORAGE_CLASS char *ObjectId_to_string (const PortableServer::ObjectId &id);
++ TAO_NAMESPACE_STORAGE_CLASS CORBA::WChar *ObjectId_to_wstring (const PortableServer::ObjectId &id);
++ TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId *string_to_ObjectId (const char *id);
++ TAO_NAMESPACE_STORAGE_CLASS PortableServer::ObjectId *wstring_to_ObjectId (const CORBA::WChar *id);
+
+ }
+ TAO_NAMESPACE_CLOSE // module PortableServer
+@@ -2997,18 +3073,32 @@
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::ObjectId*); // noncopying version
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ObjectId *&); // deprecated
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::ObjectId *&);
++
++#if (TAO_HAS_MINIMUM_CORBA == 0)
++
+ TAO_Export void operator<<= (CORBA::Any &, const PortableServer::ForwardRequest &); // copying version
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::ForwardRequest*); // noncopying version
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ForwardRequest *&); // deprecated
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::ForwardRequest *&);
++
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::ThreadPolicyValue);
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ThreadPolicyValue &);
++
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::LifespanPolicyValue);
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::LifespanPolicyValue &);
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdUniquenessPolicyValue);
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdUniquenessPolicyValue &);
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::IdAssignmentPolicyValue);
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdAssignmentPolicyValue &);
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::ImplicitActivationPolicyValue);
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ImplicitActivationPolicyValue &);
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::ServantRetentionPolicyValue);
+@@ -3016,6 +3106,8 @@
+ TAO_Export void operator<<= (CORBA::Any &, PortableServer::RequestProcessingPolicyValue);
+ TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::RequestProcessingPolicyValue &);
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ #ifndef __ACE_INLINE__
+
+
+@@ -3033,28 +3125,47 @@
+
+ #endif /* _TAO_CDR_OP_PortableServer_ObjectId_H_ */
+
++#if (TAO_HAS_MINIMUM_CORBA == 0)
++
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ForwardRequest &);
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ForwardRequest &);
+
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
++
+ # if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
+
++#if (TAO_HAS_MINIMUM_CORBA == 0)
++
+ TAO_Export ostream& operator<< (ostream &, const PortableServer::ForwardRequest &);
+
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
++
+ # endif /* ACE_LACKS_IOSTREAM_TOTALLY */
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ThreadPolicyValue &); //
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ThreadPolicyValue &);
++
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::LifespanPolicyValue &); //
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::LifespanPolicyValue &);
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdUniquenessPolicyValue &); //
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdUniquenessPolicyValue &);
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::IdAssignmentPolicyValue &); //
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::IdAssignmentPolicyValue &);
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ImplicitActivationPolicyValue &); //
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ImplicitActivationPolicyValue &);
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ServantRetentionPolicyValue &); //
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantRetentionPolicyValue &);
+ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::RequestProcessingPolicyValue &); //
+ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::RequestProcessingPolicyValue &);
++
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+ #endif /* __ACE_INLINE__ */
+
diff --git a/TAO/tao/diffs/PortableServerC.i.diff b/TAO/tao/diffs/PortableServerC.i.diff
new file mode 100644
index 00000000000..7efaed2a244
--- /dev/null
+++ b/TAO/tao/diffs/PortableServerC.i.diff
@@ -0,0 +1,96 @@
+--- PortableServerC.i Tue Jul 11 01:25:50 2000
++++ PortableServerC.i.mod Tue Jul 11 01:16:42 2000
+@@ -739,6 +744,8 @@
+ // *************************************************************
+
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ #if !defined (_PORTABLESERVER_THREADPOLICY___VAR_CI_)
+ #define _PORTABLESERVER_THREADPOLICY___VAR_CI_
+
+@@ -908,6 +920,7 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
+
+ #if !defined (_PORTABLESERVER_LIFESPANPOLICY___VAR_CI_)
+ #define _PORTABLESERVER_LIFESPANPOLICY___VAR_CI_
+@@ -1418,6 +1446,7 @@
+
+ #endif /* end #if !defined */
+
++#if (TAO_HAS_MINIMUM_POA == 0)
+
+ #if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CI_)
+ #define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CI_
+@@ -1928,6 +1972,8 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ // *************************************************************
+ // Inline operations for exception PortableServer::POAManager::AdapterInactive
+ // *************************************************************
+@@ -2102,6 +2153,7 @@
+
+ #endif /* end #if !defined */
+
++#if (TAO_HAS_MINIMUM_POA == 0)
+
+ #if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___VAR_CI_)
+ #define _PORTABLESERVER_ADAPTERACTIVATOR___VAR_CI_
+@@ -2782,6 +2854,8 @@
+
+ #endif /* end #if !defined */
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ // *************************************************************
+ // Inline operations for exception PortableServer::POA::AdapterAlreadyExists
+ // *************************************************************
+@@ -3021,6 +3100,8 @@
+
+ #endif /* _TAO_CDR_OP_PortableServer_ObjectId_I_ */
+
++#if (TAO_HAS_MINIMUM_CORBA == 0)
++
+ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ForwardRequest &_tao_aggregate)
+ {
+ // first marshal the repository ID
+@@ -3069,6 +3150,10 @@
+
+ #endif /* ACE_LACKS_IOSTREAM_TOTALLY */
+
++#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
++
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ThreadPolicyValue &_tao_enumval)
+ {
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+@@ -3086,6 +3171,8 @@
+ return 0;
+ }
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
++
+ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::LifespanPolicyValue &_tao_enumval)
+ {
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+@@ -3137,6 +3224,8 @@
+ return 0;
+ }
+
++#if (TAO_HAS_MINIMUM_POA == 0)
++
+ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const PortableServer::ImplicitActivationPolicyValue &_tao_enumval)
+ {
+ return strm.write_ulong ((CORBA::ULong) _tao_enumval);
+@@ -3188,3 +3277,4 @@
+ return 0;
+ }
+
++#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/orbconf.h b/TAO/tao/orbconf.h
index e6c9fca5c9b..b62e6f43077 100644
--- a/TAO/tao/orbconf.h
+++ b/TAO/tao/orbconf.h
@@ -226,13 +226,17 @@
# error "tao/orbconf.h: You can only use exceptions in TAO if ACE supports them"
#endif /* TAO_HAS_EXCEPTIONS */
-#if !defined(TAO_HAS_EXCEPTIONS)
+#if !defined (TAO_HAS_EXCEPTIONS)
#define TAO_ENV_ARG_DECL , CORBA::Environment &ACE_TRY_ENV
+#define TAO_ENV_ARG_DECL_WITH_DEFAULTS , CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()
#define TAO_ENV_ARG_DECL_NOT_USED , CORBA::Environment &
+#define TAO_ENV_ARG_PARAMETER , ACE_TRY_ENV
#define TAO_ENV_ARG_DEFN
#else
#define TAO_ENV_ARG_DECL
+#define TAO_ENV_ARG_DECL_WITH_DEFAULTS
#define TAO_ENV_ARG_DECL_NOT_USED
+#define TAO_ENV_ARG_PARAMETER
#define TAO_ENV_ARG_DEFN CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()
#endif /* TAO_HAS_EXCEPTIONS */
@@ -783,35 +787,6 @@ enum MCAST_SERVICEID
# define TAO_HAS_INTERFACE_REPOSITORY 0
#endif /* !TAO_HAS_INTERFACE_REPOSITORY */
-// REMOTE_POLICIES support is enabled by default if TAO is not
-// configured for minimum CORBA. If TAO is configured for minimum
-// CORBA, then REMOTE_POLICIES will be disabled by default.
-// To explicitly enable REMOTE_POLICIES support uncomment the following
-// #define TAO_HAS_REMOTE_POLICIES 1
-// To explicitly disable REMOTE_POLICIES support uncomment the following
-// #define TAO_HAS_REMOTE_POLICIES 0
-
-// Default REMOTE_POLICIES settings
-#if !defined (TAO_HAS_REMOTE_POLICIES)
-# if (TAO_HAS_MINIMUM_CORBA == 1)
-# define TAO_HAS_REMOTE_POLICIES 0
-# else
-# define TAO_HAS_REMOTE_POLICIES 1
-# endif /* TAO_HAS_MINIMUM_CORBA */
-#endif /* !TAO_HAS_REMOTE_POLICIES */
-
-// TAO_HAS_LOCALITY_CONSTRAINT_POLICIES is an internal macro and
-// should not be set by the user.
-#if defined (TAO_HAS_LOCALITY_CONSTRAINT_POLICIES)
-# undef TAO_HAS_LOCALITY_CONSTRAINT_POLICIES
-# warning TAO_HAS_LOCALITY_CONSTRAINT_POLICIES is an internal macro \
-and should not be set by the user. Please use TAO_HAS_REMOTE_POLICIES instead.
-#endif /* TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */
-
-#if (TAO_HAS_REMOTE_POLICIES == 0)
-# define TAO_HAS_LOCALITY_CONSTRAINT_POLICIES
-#endif /* TAO_HAS_REMOTE_POLICIES */
-
// With minimum CORBA, we don't have the ForwardRequest exception.
// Therefore, we can't support the INS forwarding agent. Otherwise,
// we allow user to supress it.
diff --git a/TAO/tests/MProfile_Forwarding/Manager.cpp b/TAO/tests/MProfile_Forwarding/Manager.cpp
index a063579fdd6..2dbe52784cc 100644
--- a/TAO/tests/MProfile_Forwarding/Manager.cpp
+++ b/TAO/tests/MProfile_Forwarding/Manager.cpp
@@ -17,22 +17,22 @@ parse_args (int argc, char *argv[])
switch (c)
{
case 'a':
- first_ior = get_opts.optarg;
- break;
+ first_ior = get_opts.optarg;
+ break;
case 'b':
- second_ior = get_opts.optarg;
- break;
+ second_ior = get_opts.optarg;
+ break;
case 'c':
- third_ior = get_opts.optarg;
- break;
+ third_ior = get_opts.optarg;
+ break;
case 'd':
- ior_output_file = get_opts.optarg;
- break;
+ ior_output_file = get_opts.optarg;
+ break;
case '?':
default:
ACE_ERROR_RETURN ((LM_ERROR,
"usage: %s "
- "-a <iorfile>"
+ "-a <iorfile>"
"-b <iorfile>"
"-c <iorfile>"
"\n",
@@ -179,13 +179,11 @@ Manager::activate_servant (CORBA::Environment &ACE_TRY_ENV)
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (-1);
- PortableServer::ServantLocator_var servant_locator_var =
- this->servant_locator_->_this (ACE_TRY_ENV);
- ACE_CHECK_RETURN (-1);
+ this->servant_locator_var_ = this->servant_locator_;
// Set ServantLocator object as the servant Manager of
// secondPOA.
- this->new_poa_var_->set_servant_manager (servant_locator_var.in (),
+ this->new_poa_var_->set_servant_manager (this->servant_locator_,
ACE_TRY_ENV);
ACE_CHECK_RETURN (-1);
diff --git a/TAO/tests/MProfile_Forwarding/Manager.h b/TAO/tests/MProfile_Forwarding/Manager.h
index 3c958836306..c83349cf76e 100644
--- a/TAO/tests/MProfile_Forwarding/Manager.h
+++ b/TAO/tests/MProfile_Forwarding/Manager.h
@@ -12,8 +12,8 @@ class Manager
// Ctor
- int init (int argc,
- char *argv[],
+ int init (int argc,
+ char *argv[],
CORBA::Environment & ACE_TRY_ENV);
// Initialize the ORB, POA etc.
@@ -30,14 +30,17 @@ class Manager
// Run the ORB event loop..
private:
CORBA::ORB_var orb_;
- // Our ORB
+ // Our ORB
PortableServer::POA_var new_poa_var_;
// The new poa that is created..
-
+
Servant_Locator *servant_locator_;
// Our servant locator
+ PortableServer::ServantLocator_var servant_locator_var_;
+ // Our servant locator var
+
CORBA::Object_var new_manager_ior_;
};
#endif /*_MANAGER_H_ */
diff --git a/TAO/tests/MProfile_Forwarding/Servant_Locator.h b/TAO/tests/MProfile_Forwarding/Servant_Locator.h
index 47f73b83a86..f251a33b662 100755
--- a/TAO/tests/MProfile_Forwarding/Servant_Locator.h
+++ b/TAO/tests/MProfile_Forwarding/Servant_Locator.h
@@ -22,7 +22,7 @@
#include "tao/corba.h"
-class Servant_Locator : public POA_PortableServer::ServantLocator
+class Servant_Locator : public PortableServer::ServantLocator
{
// = TITLE
// This class is used by a POA with USE_SERVANT_MANAGER and