⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iiop.spl

📁 最新的版本ACE-5.6.8,刚从外文网上搬下,与大家分享.
💻 SPL
📖 第 1 页 / 共 2 页
字号:
 <replace>// IIOP_Acceptor.cpp</replace>
</substitute>
<substitute>
 <search>IIOP_Acceptor.h</search>
 <replace>// IIOP_Acceptor.h</replace>
</substitute>

<substitute>
 <search>IIOP_Connector.cpp</search>
 <replace>// IIOP_Connector.cpp</replace>
</substitute>

<substitute>
 <search>IIOP_Endpoint.cpp</search>
 <replace>// IIOP_Endpoint.cpp</replace>
</substitute>

<substitute>
 <search>IIOP_Connector.h</search>
 <replace>// IIOP_Connector.h</replace>
</substitute>

<substitute>
 <search>IIOP_Endpoint.h</search>
 <replace>// IIOP_Endpoint.h</replace>
</substitute>

<substitute>
 <search>IIOP_Profile.cpp</search>
 <replace>// IIOP_Profile.cpp</replace>
</substitute>
<substitute>
 <search>IIOP_Profile.h</search>
 <replace>// IIOP_Profile.h</replace>
</substitute>

</file>

<file name="Endpoint.h">

<!-- Include and forward declation add hook -->
<add>
 <hook>TAO_ENDPOINT_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK</hook>
 <data>
#include "tao/IIOP_EndpointsC.h"
#include "ace/INET_Addr.h"
 </data>
</add>

<!-- Copy the private member declarations from IIOP_Endpoint
     implementation -->

<copy-from-source>
  <source>IIOP_Endpoint.h</source>

  <copy-hook-start>TAO_ENDPOINT_SPL_PRIVATE_DATA_COPY_HOOK_START</copy-hook-start>
  <copy-hook-end>TAO_ENDPOINT_SPL_PRIVATE_DATA_COPY_HOOK_END</copy-hook-end>

  <dest-hook>TAO_ENDPOINT_SPL_PRIVATE_DATA_ADD_HOOK</dest-hook>
</copy-from-source>

<copy-from-source>
 <source>IIOP_Endpoint.h</source>
 <copy-hook-start>TAO_ENDPOINT_SPL_PUBLIC_METHODS_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_ENDPOINT_SPL_PUBLIC_METHODS_COPY_HOOK_END</copy-hook-end>
 <dest-hook>TAO_ENDPOINT_SPL_PUBLIC_METHODS_ADD_HOOK</dest-hook>
</copy-from-source>

<!-- Remove the unimplemented copy constructor of the base class -->
<remove>ACE_UNIMPLEMENTED_FUNC \(TAO_Endpoint \(const TAO_Endpoint&amp;\)\)</remove>

<substitute>
 <search>TAO_IIOP_Endpoint</search>
 <replace>TAO_Endpoint</replace>
</substitute>

<substitute>
 <search>TAO_IIOP_Profile</search>
 <replace>TAO_Profile</replace>
</substitute>

<add>
 <hook>TAO_ENDPOINT_SPL_EXTERN_ADD_HOOK</hook>
 <data>typedef TAO_Endpoint TAO_IIOP_Endpoint;
       #if defined (__ACE_INLINE__)
       # include "tao/IIOP_Endpoint.i"
       #endif /* __ACE_INLINE__ */
 </data>
</add>

<!-- Eliminate the virtual functions -->
<remove>virtual</remove>
<substitute match-line="yes">
 <search>= 0;</search>
 <replace>;</replace>
</substitute>

</file>

<file name="Endpoint.cpp">

  <copy-from-source>
   <source>IIOP_Endpoint.cpp</source>
   <copy-hook-start>TAO_ENDPOINT_SPL_COPY_HOOK_START</copy-hook-start>
   <copy-hook-end>TAO_ENDPOINT_SPL_COPY_HOOK_END</copy-hook-end>
   <dest-hook>TAO_ENDPOINT_SPL_METHODS_ADD_HOOK</dest-hook>
  </copy-from-source>

  <!-- In the constructors copied from the derived class, there is a
       invocation of the base class constructor. Expand it -->
  <substitute match-line="yes">
    <search>: TAO_Endpoint \(IOP::TAG_INTERNET_IOP\)</search>
    <replace>: addr_lookup_lock_ ()
              , hash_val_ (0)
              , tag_ (IOP::TAG_INTERNET_IOP)
              , priority_ (TAO_INVALID_PRIORITY)
    </replace>
  </substitute>

  <substitute match-line="yes">
    <search>: TAO_Endpoint \(IOP::TAG_INTERNET_IOP, priority\)</search>
    <replace>: addr_lookup_lock_ ()
              , hash_val_ (0)
              , tag_ (IOP::TAG_INTERNET_IOP)
              , priority_ (priority)
    </replace>
  </substitute>

  <substitute match-line="yes">
   <search>: TAO_Endpoint \(rhs.tag_, rhs.priority_\)</search>
   <replace>: addr_lookup_lock_ ()
             , hash_val_ (0)
             , tag_ (rhs.tag_)
             , priority_ (rhs.priority_)
   </replace>
 </substitute>

<substitute>
 <search>TAO_IIOP_Endpoint</search>
 <replace>TAO_Endpoint</replace>
</substitute>

<remove>#include "IIOP_Endpoint.h"</remove>

</file>

<file name="Transport_Connector.h">

<add>
 <hook>TAO_CONNECTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK</hook>
 <data>
#include "ace/SOCK_Connector.h"
#include "ace/Connector.h"
#include "tao/Connector_Impl.h"
#include "tao/Connection_Handler.h"
 </data>
</add>

<copy-from-source>
 <source>IIOP_Connector.h</source>
 <copy-hook-start>TAO_CONNECTOR_SPL_PUBLIC_METHODS_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_CONNECTOR_SPL_PUBLIC_METHODS_COPY_HOOK_END</copy-hook-end>
 <dest-hook>TAO_CONNECTOR_SPL_PUBLIC_METHODS_ADD_HOOK</dest-hook>
</copy-from-source>

<!-- IIOP_Connector's constructor -->
<add>
 <hook>TAO_CONNECTOR_SPL_PUBLIC_METHODS_ADD_HOOK</hook>
 <data>  TAO_Connector (CORBA::Boolean flag = 0);</data>
</add>

<copy-from-source>
 <source>IIOP_Connector.h</source>
 <copy-hook-start>TAO_CONNECTOR_SPL_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_CONNECTOR_SPL_COPY_HOOK_END</copy-hook-end>
 <dest-hook>TAO_CONNECTOR_SPL_PRIVATE_DATA_ADD_HOOK</dest-hook>
</copy-from-source>

<add>
 <hook>TAO_CONNECTOR_SPL_EXTERN_ADD_HOOK</hook>
 <data>typedef TAO_Connector TAO_IIOP_Connector;</data>
</add>

<!-- eliminate all virtual methods -->
<remove>virtual</remove>

<substitute match-line="yes">
  <search>= 0;</search>
  <replace>;</replace>
</substitute>

<substitute match-line="yes">
 <search>class TAO_Endpoint;</search>
 <replace>#include "tao/Endpoint.h"</replace>
</substitute>

</file>

<file name="Transport_Connector.cpp">

<add>
 <hook>TAO_CONNECTOR_SPL_INCLUDE_ADD_HOOK</hook>
 <data>
#include "ace/OS_NS_strings.h"
 </data>
</add>

<!-- Instrument the constructor -->
<substitute match-line="yes">
 <search>: TAO_Connector \(IOP::TAG_INTERNET_IOP\)</search>
 <replace>: active_connect_strategy_ (0)
          , tag_ (IOP::TAG_INTERNET_IOP)
          , orb_core_ (0)
 </replace>
</substitute>

<copy-from-source>
 <source>IIOP_Connector.cpp</source>

 <copy-hook-start>TAO_CONNECTOR_SPL_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_CONNECTOR_SPL_COPY_HOOK_END</copy-hook-end>

 <dest-hook>TAO_CONNECTOR_SPL_METHODS_ADD_HOOK</dest-hook>
</copy-from-source>

<!-- replace all IIOP_Connector with TAO_Connector -->
<substitute>
 <search>TAO_IIOP_Connector</search>
 <replace>TAO_Connector</replace>
</substitute>

</file>

<file name="IIOP_Factory.cpp">

<substitute match-line="yes">
  <search>#include "IIOP_Acceptor.h"</search>
  <replace>#include "Transport_Acceptor.h"</replace>
</substitute>

<substitute match-line="yes">
 <search>#include "IIOP_Connector.h"</search>
 <replace>#include "Transport_Connector.h"</replace>
</substitute>
</file>

<file name="IIOP_Lite_Factory.cpp">

<substitute match-line="yes">
  <search>#include "IIOP_Acceptor.h"</search>
  <replace>#include "Transport_Acceptor.h"</replace>
</substitute>

<substitute match-line="yes">
 <search>#include "IIOP_Connector.h"</search>
 <replace>#include "Transport_Connector.h"</replace>
</substitute>
</file>

<!-- Transformations to Profile class to make it tailored for IIOP
     Profile -->
<file name="Profile.h">

<!-- include and forward declarations -->
<substitute match-line="yes">
 <search>class TAO_Endpoint;</search>
 <replace>#include "tao/Endpoint.h"</replace>
</substitute>

<!-- Remove all virtual methods -->
<remove>virtual</remove>
<substitute match-line="yes">
 <search>= 0;</search>
 <replace>;</replace>
</substitute>

<!-- Copy all public methods from IIOP_Profile.h -->
<copy-from-source>
 <source>IIOP_Profile.h</source>
 <copy-hook-start>TAO_PROFILE_SPL_PUBLIC_METHODS_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_PROFILE_SPL_PUBLIC_METHODS_COPY_HOOK_END</copy-hook-end>
 <dest-hook>TAO_PROFILE_SPL_PUBLIC_METHODS_ADD_HOOK</dest-hook>
</copy-from-source>

<!-- Add proteccted data from IIOP_Profile class -->
<copy-from-source>
 <source>IIOP_Profile.h</source>
 <copy-hook-start>TAO_PROFILE_SPL_PROTECTED_METHODS_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_PROFILE_SPL_PROTECTED_METHODS_COPY_HOOK_END</copy-hook-end>
 <dest-hook>TAO_PROFILE_SPL_PROTECTED_METHODS_ADD_HOOK</dest-hook>
</copy-from-source>

<!-- Add all the private data methods -->
<copy-from-source>
 <source>IIOP_Profile.h</source>
 <copy-hook-start>TAO_PROFILE_SPL_PRIVATE_DATA_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_PROFILE_SPL_PRIVATE_DATA_COPY_HOOK_END</copy-hook-end>
 <dest-hook>TAO_PROFILE_SPL_PRIVATE_DATA_ADD_HOOK</dest-hook>
</copy-from-source>

<!-- Typedef the Profile class as IIOP_Profile -->
<add>
 <hook>TAO_PROFILE_SPL_EXTERN_ADD_HOOK</hook>
 <data>
typedef TAO_Profile TAO_IIOP_Profile;
 </data>
</add>

<substitute>
 <search>TAO_IIOP_Profile</search>
 <replace>TAO_Profile</replace>
</substitute>


</file>

<!-- Transformations to Profile.cpp file specialized with the
     IIOP_Profile implementation -->
<file name="Profile.cpp">

<!-- comment out virtual methods in the base class that do nothing
     but have implementations due to compiler issues -->
<comment>
 <start-hook>TAO_PROFILE_SPL_COMMENT_HOOK_START</start-hook>
 <end-hook>TAO_PROFILE_SPL_COMMENT_HOOK_END</end-hook>
</comment>

<copy-from-source>
 <source>IIOP_Profile.cpp</source>

 <copy-hook-start>TAO_PROFILE_SPL_COPY_HOOK_START</copy-hook-start>
 <copy-hook-end>TAO_PROFILE_SPL_COPY_HOOK_END</copy-hook-end>

 <dest-hook>TAO_PROFILE_SPL_METHODS_ADD_HOOK</dest-hook>
</copy-from-source>

<!-- Add methods to the constructor of the Profile -->
<!-- Constructors are the exceptional case, we need to add
     them specifically -->

<add>
 <hook>TAO_PROFILE_SPL_METHODS_ADD_HOOK</hook>
 <data>
TAO_Profile::TAO_Profile (const ACE_INET_Addr &amp;addr,
                          const TAO::ObjectKey &amp;object_key,
                          const TAO_GIOP_Message_Version &amp;version,
                          TAO_ORB_Core *orb_core)
  : version_ (version)
  , are_policies_parsed_ (false)
  , addressing_mode_ (0)
  , tagged_profile_ (0)
  , ref_object_key_ (0)
  , tag_ (IOP::TAG_INTERNET_IOP)
  , orb_core_ (orb_core)
  , forward_to_ (0)
  , refcount_lock_ (0)
  , refcount_ (1)
  , endpoint_ (addr,
               orb_core->orb_params ()->use_dotted_decimal_addresses ())
  , count_ (1)
{
 // @@ NOTE: Need to probably use a different type of lock.
  this->refcount_lock_ =
    this->orb_core_->client_factory ()->create_profile_lock ();

  (void) this->orb_core_->object_key_table ().bind (object_key,
                                                    this->ref_object_key_);
}

TAO_Profile::TAO_Profile (const char* host,
                          CORBA::UShort port,
                          const TAO::ObjectKey &amp;object_key,
                          const ACE_INET_Addr &amp;addr,
                          const TAO_GIOP_Message_Version &amp;version,
                          TAO_ORB_Core *orb_core)
  : version_ (version)
  , are_policies_parsed_ (false)
  , addressing_mode_ (0)
  , tagged_profile_ (0)
  , ref_object_key_ (0)
  , tag_ (IOP::TAG_INTERNET_IOP)
  , orb_core_ (orb_core)
  , forward_to_ (0)
  , refcount_lock_ (0)
  , refcount_ (1)
  , endpoint_ (host, port, addr)
  , count_ (1)
{
  // @@ NOTE: Need to probably use a different type of lock.
  this->refcount_lock_ =
    this->orb_core_->client_factory ()->create_profile_lock ();
  (void) this->orb_core_->object_key_table ().bind (object_key,
                                                    this->ref_object_key_);
}

TAO_Profile::TAO_Profile (TAO_ORB_Core *orb_core)
  : version_ (TAO_GIOP_Message_Version (TAO_DEF_GIOP_MAJOR,
                                        TAO_DEF_GIOP_MINOR))
  , are_policies_parsed_ (false)
  , addressing_mode_ (0)
  , tagged_profile_ (0)
  , ref_object_key_ (0)
  , tag_ (IOP::TAG_INTERNET_IOP)
  , orb_core_ (orb_core)
  , forward_to_ (0)
  , refcount_lock_ (0)
  , refcount_ (1)
  , endpoint_ ()
  , count_ (1)
{
   this->refcount_lock_ =
    this->orb_core_->client_factory ()->create_profile_lock ();
}
</data>
</add>

<add>
 <hook>TAO_PROFILE_SPL_DESTRUCTOR_ADD_HOOK</hook>
 <data>
TAO_Endpoint *tmp = 0;
for (TAO_Endpoint *next = this->endpoint ()->next ();
     next != 0;
     next = tmp)
{
    tmp = next->next ();
    delete next;
}
 </data>
</add>

<!-- Replace all occurances of IIOP_Profile
     with TAO_Profile -->
<substitute>
 <search>TAO_IIOP_Profile</search>
 <replace>TAO_Profile</replace>
</substitute>

<!-- remove the dynamic casts, as now there is no
     inheritance hiearchy -->
<substitute>
 <search>dynamic_cast</search>
 <replace>static_cast</replace>
</substitute>

</file>

<file name="Invocation_Endpoint_Selectors.cpp">

<substitute match-line="yes">
 <search>#include "tao/IIOP_Endpoint.h"</search>
 <replace>#include "tao/Endpoint.h"</replace>
</substitute>
</file>

<file name="orbconf.h">

<substitute match-line="yes">
 <search>TAO_HAS_UIOP 1</search>
 <replace>TAO_HAS_UIOP 0</replace>
</substitute>

<substitute match-line="yes">
 <search>TAO_HAS_SHMIOP 1</search>
 <replace>TAO_HAS_SHMIOP 0</replace>
</substitute>

<substitute match-line="yes">
 <search>TAO_HAS_MIOP 1</search>
 <replace>TAO_HAS_MIOP 0</replace>
</substitute>

<substitute match-line="yes">
 <search>TAO_HAS_DIOP 1</search>
 <replace>TAO_HAS_DIOP 0</replace>
</substitute>
</file>
</module>

<module name="/TAO/tao/RTPortableServer">

<file name="RT_Servant_Dispatcher.cpp">

<substitute>
 <search>IIOP_Transport.h</search>
 <replace>Transport.h</replace>
</substitute>

<substitute>
 <search>IIOP_Connection_Handler.h</search>
 <replace>Connection_Handler.h</replace>
</substitute>

</file>

</module>

</transform>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -