summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableGroup
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableGroup')
-rw-r--r--TAO/tao/PortableGroup/UIPMC_Profile.cpp400
-rw-r--r--TAO/tao/PortableGroup/UIPMC_Profile.h28
-rw-r--r--TAO/tao/PortableGroup/miop.cpp13
-rw-r--r--TAO/tao/PortableGroup/miop.pidl51
-rw-r--r--TAO/tao/PortableGroup/miopC.cpp1259
-rw-r--r--TAO/tao/PortableGroup/miopC.h1044
-rw-r--r--TAO/tao/PortableGroup/miopC.i1231
-rw-r--r--TAO/tao/PortableGroup/miopS.h1
8 files changed, 949 insertions, 3078 deletions
diff --git a/TAO/tao/PortableGroup/UIPMC_Profile.cpp b/TAO/tao/PortableGroup/UIPMC_Profile.cpp
index 98e590db8f4..1af1211078e 100644
--- a/TAO/tao/PortableGroup/UIPMC_Profile.cpp
+++ b/TAO/tao/PortableGroup/UIPMC_Profile.cpp
@@ -126,26 +126,16 @@ TAO_UIPMC_Profile::decode (TAO_InputCDR& cdr)
if (minor <= TAO_DEF_MIOP_MINOR)
this->version_.minor = minor;
- // Decode endpoint.
- CORBA::Short ip_version;
- if (!(cdr.read_short (ip_version)
- && ip_version == MIOP::IPv4))
+ // Decode the endpoint.
+ ACE_CString address;
+ CORBA::UShort port;
+
+ if (!(cdr.read_string (address)
+ && cdr.read_ushort (port)))
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::decode - Unexpected IP version %d\n"),
- ip_version));
- return -1;
- }
-
- /* Read in the IPv4 port and address */
- if (cdr.read_ushort (this->endpoint_.port_) == 0
- || cdr.read_octet_array (this->endpoint_.class_d_address_, 4) == 0)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::decode - ")
- ACE_TEXT ("error while decoding host/port")));
+ ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::decode - Couldn't unmarshal address and port!\n")));
return -1;
}
@@ -162,8 +152,12 @@ TAO_UIPMC_Profile::decode (TAO_InputCDR& cdr)
if (cdr.good_bit ())
{
- // Tell the endpoint to update its cached address. @@ Frank: Fix this smelly piece of code!
- this->endpoint_.update_object_addr ();
+ // If everything was successful, update the endpoint's address
+ // and port with the new data.
+
+ ACE_INET_Addr addr (port, address.c_str ());
+
+ this->endpoint_.object_addr (addr);
return 1;
}
@@ -173,16 +167,9 @@ TAO_UIPMC_Profile::decode (TAO_InputCDR& cdr)
void
-TAO_UIPMC_Profile::parse_string (const char * /*string*/,
+TAO_UIPMC_Profile::parse_string (const char *string,
CORBA::Environment &ACE_TRY_ENV)
{
- ACE_THROW (CORBA::INV_OBJREF (
- CORBA_SystemException::_tao_minor_code (
- TAO_DEFAULT_MINOR_CODE,
- EINVAL),
- CORBA::COMPLETED_NO));
-
-/*
// Remove the "N.n@" version prefix, if it exists, and verify the
// version is one that we accept.
@@ -203,143 +190,187 @@ TAO_UIPMC_Profile::parse_string (const char * /*string*/,
if (this->version_.major != TAO_DEF_GIOP_MAJOR ||
this->version_.minor > TAO_DEF_GIOP_MINOR)
{
- ACE_THROW_RETURN (CORBA::INV_OBJREF (
+ ACE_THROW (CORBA::INV_OBJREF (
+ CORBA_SystemException::_tao_minor_code (
+ TAO_DEFAULT_MINOR_CODE,
+ EINVAL),
+ CORBA::COMPLETED_NO));
+ }
+
+ //
+ // Parse the group_id.
+ //
+
+ // Parse the group component version.
+ if (isdigit (string [0]) &&
+ string[1] == '.' &&
+ isdigit (string [2]) &&
+ string[3] == '-')
+ {
+ CORBA::Char major;
+ CORBA::Char minor;
+
+ major = (char) (string [0] - '0');
+ minor = (char) (string [2] - '0');
+
+ // Verify that a supported version of MIOP is specified.
+ if (major != TAO_DEF_MIOP_MAJOR ||
+ minor > TAO_DEF_MIOP_MINOR)
+ {
+ ACE_THROW (CORBA::INV_OBJREF (
CORBA_SystemException::_tao_minor_code (
TAO_DEFAULT_MINOR_CODE,
EINVAL),
- CORBA::COMPLETED_NO),
- -1);
+ CORBA::COMPLETED_NO));
+ }
+
+ // Skip over "N.n-"
+ string += 4;
+ }
+ else
+ {
+ // The group component version is mandatory.
+ ACE_THROW (CORBA::INV_OBJREF (
+ CORBA_SystemException::_tao_minor_code (
+ TAO_DEFAULT_MINOR_CODE,
+ EINVAL),
+ CORBA::COMPLETED_NO));
}
- // Pull off the "hostname:port/" part of the objref
- // Copy the string because we are going to modify it...
- CORBA::String_var copy (string);
+ // Parse the group_domain_id.
+ // The Domain ID is terminated with a '-'.
- char *start = copy.inout ();
- char *cp_pos = ACE_OS::strchr (start, ':'); // Look for a port
+ // Wrap the string in a ACE_CString
+ ACE_CString ace_str (string, 0, 0);
- char *okd = ACE_OS::strchr (start, this->object_key_delimiter_);
+ // Look for the group domain delimitor.
+ int pos = ace_str.find ('-');
- if (okd == 0)
+ if (pos == ACE_CString::npos)
{
- // No object key delimiter!
- ACE_THROW_RETURN (CORBA::INV_OBJREF (
- CORBA_SystemException::_tao_minor_code (
- TAO_DEFAULT_MINOR_CODE,
- EINVAL),
- CORBA::COMPLETED_NO),
- -1);
+ // The group_domain_id is mandatory, so throw an
+ // exception if it isn't found.
+ ACE_THROW (CORBA::INV_OBJREF (
+ CORBA_SystemException::_tao_minor_code (
+ TAO_DEFAULT_MINOR_CODE,
+ EINVAL),
+ CORBA::COMPLETED_NO));
}
- // The default port number.
- const char def_port [] = ":683";
+ // Save the group_domain_id.
+ ACE_CString group_domain_id = ace_str.substring (0, pos);
- // Length of port.
- CORBA::ULong length = 0;
+ // Parse the group_id.
+ // The group_id is terminated with a '-' or a '/'.
+
+ // Skip past the last '-'.
+ pos++;
+ int end_pos = ace_str.find ('-',pos);
- // Length of host string.
- CORBA::ULong length_host = 0;
+ CORBA::Boolean parse_group_ref_version_flag = 0;
- // Length of <cp>
- CORBA::ULong length_cp =
- ACE_OS::strlen ((const char *)okd) + sizeof (def_port);
-
- CORBA::String_var cp = CORBA::string_alloc (length_cp);
-
- if (cp_pos == 0)
+ if (end_pos != ACE_CString::npos)
{
- // No host/port delimiter! Dont raise an exception. Use the
- // default port No. 683
- ACE_OS::strcpy (cp, def_port);
- ACE_OS::strcat (cp, okd);
-
- length =
- ACE_OS::strlen (cp.in ()) -
- ACE_OS::strlen ((const char *)okd) -
- 1;
-
- length_host =
- ACE_OS::strlen (start) +
- sizeof (def_port) -
- ACE_OS::strlen (cp.in ()) -1;
+ // String was terminated by a '-', so there's a group
+ // reference version to be parsed.
+ parse_group_ref_version_flag = 1;
}
else
{
- // The port is specified:
- cp = (const char *)cp_pos;
-
- length =
- ACE_OS::strlen (cp.in ())
- - ACE_OS::strlen ((const char *)okd) + 1;
+ // Look for a slash as the separator.
+ end_pos = ace_str.find ('/', pos);
- length_host =
- ACE_OS::strlen ((const char *)start)
- - ACE_OS::strlen (cp.in ());
+ if (end_pos == ACE_CString::npos)
+ {
+ // The Group ID is mandatory, so throw an exception.
+ ACE_THROW (CORBA::INV_OBJREF (
+ CORBA_SystemException::_tao_minor_code (
+ TAO_DEFAULT_MINOR_CODE,
+ EINVAL),
+ CORBA::COMPLETED_NO));
+ }
}
- CORBA::String_var tmp = CORBA::string_alloc (length);
+ // Get the domain_id.
+ ACE_CString str_domain_id = ace_str.substring (pos, end_pos - pos);
- ACE_OS::strncpy (tmp.inout (), cp.in () + 1, length);
- tmp[length] = '\0';
+ // Convert the domain_id into numerical form.
+ // @@ group_id is actually 64 bits, but strtoul only can parse 32 bits.
+ // @@ Need a 64 bit strtoul...
+ PortableGroup::ObjectGroupId group_id =
+ ACE_OS::strtoul (str_domain_id.c_str (), 0, 10);
- this->endpoint_.port_ = (CORBA::UShort) ACE_OS::atoi (tmp.in ());
-
- tmp = CORBA::string_alloc (length_host);
+ PortableGroup::ObjectGroupRefVersion ref_version = 0;
+ if (parse_group_ref_version_flag)
+ {
+ // Try to find the group version. It is terminated by a '/'.
+ pos = end_pos + 1;
+ end_pos = ace_str.find ('/', pos);
+ if (end_pos == ACE_CString::npos)
+ {
+ // The group version was expected but not found,
+ // so throw an exception.
+ ACE_THROW (CORBA::INV_OBJREF (
+ CORBA_SystemException::_tao_minor_code (
+ TAO_DEFAULT_MINOR_CODE,
+ EINVAL),
+ CORBA::COMPLETED_NO));
+ }
- ACE_OS::strncpy (tmp.inout (), start, length_host);
- tmp[length_host] = '\0';
+ ACE_CString str_group_ref_ver = ace_str.substring (pos, end_pos - pos);
- this->endpoint_.host_ = tmp._retn ();
+ ref_version =
+ ACE_OS::strtoul (str_group_ref_ver.c_str (), 0, 10);
+ }
- ACE_INET_Addr host_addr;
+ // Parse the group multicast address.
+ // The multicast address is terminated by a ':'.
+ pos = end_pos + 1;
+ end_pos = ace_str.find (':', pos);
- if (ACE_OS::strcmp (this->endpoint_.host_.in (), "") == 0)
+ if (end_pos == ACE_CString::npos)
{
- char tmp_host [MAXHOSTNAMELEN + 1];
-
- // If no host is specified: assign the default host : the local host.
- if (host_addr.get_host_name (tmp_host,
- sizeof (tmp_host)) != 0)
- {
- const char *tmp = host_addr.get_host_addr ();
- if (tmp == 0)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("\n\nTAO (%P|%t) ")
- ACE_TEXT ("UIPMC_Profile::parse_string ")
- ACE_TEXT ("- %p\n\n"),
- ACE_TEXT ("cannot determine hostname")));
- return -1;
- }
- this->endpoint_.host_ = tmp;
- }
- else
- {
- this->endpoint_.host_ = (const char *) tmp_host;
- }
+ // The multicast address is mandatory, so throw an exception,
+ // since it wasn't found.
+ ACE_THROW (CORBA::INV_OBJREF (
+ CORBA_SystemException::_tao_minor_code (
+ TAO_DEFAULT_MINOR_CODE,
+ EINVAL),
+ CORBA::COMPLETED_NO));
}
- if (this->endpoint_.object_addr_.set (this->endpoint_.port_,
- this->endpoint_.host_.in ()) == -1)
+ ACE_CString mcast_addr = ace_str.substring (pos, end_pos - pos);
+
+ // Parse the multicast port number.
+
+ // First check that there's something left in the string.
+ pos = end_pos + 1;
+ if (ace_str[pos] == '\0')
{
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("Error Occured !")
- ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::parse_string - \n")
- ACE_TEXT ("TAO (%P|%t) ACE_INET_Addr::set () failed")));
- }
- return -1;
+ // The multicast port is mandatory, so throw an exception,
+ // since it wasn't found.
+ ACE_THROW (CORBA::INV_OBJREF (
+ CORBA_SystemException::_tao_minor_code (
+ TAO_DEFAULT_MINOR_CODE,
+ EINVAL),
+ CORBA::COMPLETED_NO));
}
- start = ++okd; // increment past the object key separator
+ CORBA::UShort mcast_port =
+ ACE_static_cast (CORBA::UShort,
+ ACE_OS::strtoul (ace_str.c_str () + pos, 0, 10));
- TAO_ObjectKey::decode_string_to_sequence (this->object_key_, start);
+ //
+ // Finally, set all of the fields of the profile.
+ //
+
+ ACE_INET_Addr addr (mcast_port, mcast_addr.c_str ());
+ this->endpoint_.object_addr (addr);
+
+ this->set_group_info (group_domain_id.c_str (),
+ group_id,
+ ref_version);
- return 1;
-*/
}
CORBA::Boolean
@@ -412,14 +443,11 @@ TAO_UIPMC_Profile::to_string (CORBA::Environment &)
static const char digits [] = "0123456789";
ACE_OS::sprintf (buf,
- "%sloc://%c.%c@%d.%d.%d.%d:%d%c%s",
+ "%sloc://%c.%c@%s:%d%c%s",
::prefix_,
digits [this->version_.major],
digits [this->version_.minor],
- this->endpoint_.class_d_address_[0],
- this->endpoint_.class_d_address_[1],
- this->endpoint_.class_d_address_[2],
- this->endpoint_.class_d_address_[3],
+ this->endpoint_.get_host_addr (),
this->endpoint_.port ());
return buf;
}
@@ -514,15 +542,12 @@ TAO_UIPMC_Profile::create_profile_body (TAO_OutputCDR &encap) const
encap.write_octet (this->version_.major);
encap.write_octet (this->version_.minor);
- // IP Version.
- encap.write_short (MIOP::IPv4);
+ // Address.
+ encap.write_string (this->endpoint_.get_host_addr ());
- // The IPv4 port number.
+ // Port number.
encap.write_ushort (this->endpoint_.port ());
- // The IPv4 multicast address (MSB first).
- encap.write_octet_array (this->endpoint_.class_d_address_, 4);
-
// UIPMC is only supported by versions of GIOP that have tagged components,
// so unconditionally encode the components.
this->tagged_components ().encode (encap);
@@ -585,24 +610,41 @@ TAO_UIPMC_Profile::decode_endpoints (void)
}
*/
-int
-TAO_UIPMC_Profile::add_group_component (const char *domain_id,
- PortableGroup::ObjectGroupId group_id,
- PortableGroup::ObjectGroupRefVersion ref_version)
+void
+TAO_UIPMC_Profile::set_group_info (const char *domain_id,
+ PortableGroup::ObjectGroupId group_id,
+ PortableGroup::ObjectGroupRefVersion ref_version)
+{
+ // First, record the group information.
+ this->group_domain_id_.set (domain_id);
+ this->group_id_ = group_id;
+ this->ref_version_ = ref_version;
+
+ // Update the cached version of the group component.
+ this->update_cached_group_component ();
+}
+
+void
+TAO_UIPMC_Profile::update_cached_group_component (void)
{
PortableGroup::TagGroupTaggedComponent group;
// Encode the data structure.
- group.version.major = TAO_DEF_MIOP_MAJOR;
- group.version.minor = TAO_DEF_MIOP_MINOR;
+ group.component_version.major = TAO_DEF_MIOP_MAJOR;
+ group.component_version.minor = TAO_DEF_MIOP_MINOR;
- group.group_domain_id = CORBA::string_dup (domain_id);
- group.object_group_id = group_id;
- group.object_group_ref_version = ref_version;
+ group.group_domain_id = CORBA::string_dup (this->group_domain_id_.c_str ());
+ group.object_group_id = this->group_id_;
+ group.object_group_ref_version = this->ref_version_;
TAO_OutputCDR out_cdr;
if ((out_cdr << group) == 0)
- return -1;
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Error marshaling group component!"));
+ return;
+ }
+
CORBA::ULong length = out_cdr.total_length ();
IOP::TaggedComponent tagged_component;
@@ -624,14 +666,33 @@ TAO_UIPMC_Profile::add_group_component (const char *domain_id,
// Add component with encoded endpoint data to this profile's
// TaggedComponents.
this->tagged_components_.set_component (tagged_component);
- return 0;
}
-void
-TAO_UIPMC_Profile::request_target_specifier (TAO_Target_Specification &target_spec)
+void
+TAO_UIPMC_Profile::request_target_specifier (
+ TAO_Target_Specification &target_spec,
+ TAO_Target_Specification::TAO_Target_Address required_type,
+ CORBA::Environment &ACE_TRY_ENV)
{
- // Point the target specifier to our Tagged Profile
- target_spec.target_specifier (this->create_tagged_profile ());
+ // Fill out the target specifier based on the required type.
+ switch (required_type)
+ {
+ case TAO_Target_Specification::Default_Addr:
+ case TAO_Target_Specification::Profile_Addr:
+
+ // Only using a profile as the target specifier is supported
+ // at this time. Object keys are strictly not supported since
+ // UIPMC profiles do not have object keys.
+ target_spec.target_specifier (
+ this->create_tagged_profile ());
+ break;
+
+ case TAO_Target_Specification::Key_Addr:
+ case TAO_Target_Specification::Reference_Addr:
+ default:
+ // Unsupported or unknown required type. Throw an exception.
+ ACE_THROW (CORBA::MARSHAL ());
+ }
}
int
@@ -673,36 +734,23 @@ TAO_UIPMC_Profile::extract_group_component (IOP::TaggedProfile &profile,
if (TAO_debug_level > 0)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::decode - v%d.%d\n"),
+ ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::extract_group_component - v%d.%d\n"),
major,
minor));
}
return -1;
}
- // Decode endpoint.
- CORBA::Short ip_version;
- if (!(cdr.read_short (ip_version)
- && ip_version == MIOP::IPv4))
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::decode - Unexpected IP version %d\n"),
- ip_version));
- return -1;
- }
-
- CORBA::Octet class_d_address_[4];
- CORBA::UShort port_;
-
- /* Read in the IPv4 port and address */
- if (cdr.read_ushort (port_) == 0
- || cdr.read_octet_array (class_d_address_, 4) == 0)
+ // Decode the endpoint.
+ ACE_CString address;
+ CORBA::UShort port;
+
+ if (!(cdr.read_string (address)
+ && cdr.read_ushort (port)))
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::decode - ")
- ACE_TEXT ("error while decoding host/port")));
+ ACE_TEXT ("TAO (%P|%t) UIPMC_Profile::extract_group_component - Couldn't unmarshal address and port!\n")));
return -1;
}
diff --git a/TAO/tao/PortableGroup/UIPMC_Profile.h b/TAO/tao/PortableGroup/UIPMC_Profile.h
index be9f992e1e8..1200704a8cd 100644
--- a/TAO/tao/PortableGroup/UIPMC_Profile.h
+++ b/TAO/tao/PortableGroup/UIPMC_Profile.h
@@ -146,7 +146,10 @@ public:
/// Set the request target specifier to point to a tagged profile
/// containing the GroupId associated with this profile.
- virtual void request_target_specifier (TAO_Target_Specification &target_spec);
+ virtual void request_target_specifier (
+ TAO_Target_Specification &target_spec,
+ TAO_Target_Specification::TAO_Target_Address required_type,
+ CORBA::Environment &ACE_TRY_ENV);
/// Returns true since this profile can specify multicast endpoints.
virtual int supports_multicast (void) const;
@@ -155,15 +158,20 @@ public:
PortableGroup::TagGroupTaggedComponent &group);
/// Add the mandatory group component to this profile.
- int add_group_component (const char *domain_id,
- PortableGroup::ObjectGroupId group_id,
- PortableGroup::ObjectGroupRefVersion ref_version);
+ void set_group_info (const char *domain_id,
+ PortableGroup::ObjectGroupId group_id,
+ PortableGroup::ObjectGroupRefVersion ref_version);
private:
/// Creates an encapsulation of the ProfileBody struct in the <cdr>
void create_profile_body (TAO_OutputCDR &cdr) const;
+ /// Update the group component in the cached list of tagged
+ /// components. This needs to be called whenever the group_domain_id,
+ /// group_id, or ref_version changes.
+ void update_cached_group_component (void);
+
protected:
/**
@@ -193,8 +201,18 @@ private:
/// some of the API calls.
TAO_ObjectKey object_key_;
- /// Our tagged profile
+ /// Cached version of our tagged profile.
IOP::TaggedProfile tagged_profile_;
+
+ /// Group Domain ID.
+ ACE_CString group_domain_id_;
+
+ /// Our group ID within the group domain.
+ PortableGroup::ObjectGroupId group_id_;
+
+ /// The group reference's version.
+ PortableGroup::ObjectGroupRefVersion ref_version_;
+
};
#if defined (__ACE_INLINE__)
diff --git a/TAO/tao/PortableGroup/miop.cpp b/TAO/tao/PortableGroup/miop.cpp
index 79e90f2f868..7b55e1c72d3 100644
--- a/TAO/tao/PortableGroup/miop.cpp
+++ b/TAO/tao/PortableGroup/miop.cpp
@@ -69,15 +69,10 @@ TAO_MOGF_impl::create_group (
CORBA::COMPLETED_MAYBE));
ACE_CHECK_RETURN (CORBA::Object::_nil ());
- // Add the group component to the UIPMC profile.
- if (uipmc_profile->add_group_component (this->domain_id_.c_str (),
- this->next_group_id (),
- 0) != 0)
- {
- delete uipmc_profile;
- ACE_THROW_RETURN (CORBA::INTERNAL (),
- CORBA::Object::_nil ());
- }
+ // Set the group component to the UIPMC profile.
+ uipmc_profile->set_group_info (this->domain_id_.c_str (),
+ this->next_group_id (),
+ 0);
// Relinquish ownership of the UIPMC profile to mp.
diff --git a/TAO/tao/PortableGroup/miop.pidl b/TAO/tao/PortableGroup/miop.pidl
index 862005a2a53..547b1f2c6ab 100644
--- a/TAO/tao/PortableGroup/miop.pidl
+++ b/TAO/tao/PortableGroup/miop.pidl
@@ -46,6 +46,7 @@
#define MIOP_IDL
#include <IOP.pidl>
+#include <GIOP.pidl>
#pragma prefix "omg.org"
@@ -55,50 +56,24 @@ module MIOP
struct PacketHeader_1_0
{
- char magic[4];
- octet hdr_version;
- octet flags;
- unsigned short packet_length;
- unsigned long packet_number;
- unsigned long number_of_packets;
- UniqueId Id;
+ char magic[4];
+ octet hdr_version;
+ octet flags;
+ unsigned short packet_length;
+ unsigned long packet_number;
+ unsigned long number_of_packets;
+ UniqueId Id;
};
- struct Version
- {
- octet major;
- octet minor;
- };
-
- typedef short IPVersion;
-
- const IPVersion IPv4 = 0;
- const IPVersion IPv6 = 1;
-
- struct UsingIpv4
- {
- unsigned short port;
- octet class_d_address[4]; // @@ Frank: changed to octet to avoid lots of casting
- };
-
- struct UsingIpv6
- {
- unsigned long port;
- string address;
- };
+ typedef GIOP::Version Version;
- union IPEndpoints switch (IPVersion)
- {
- case IPv4:
- UsingIpv4 ipv4_endpoints;
- case IPv6:
- UsingIpv6 ipv6_endpoints;
- };
+ typedef string Address;
struct UIPMC_ProfileBody
{
- Version miop_version;
- IPEndpoints endpoints;
+ Version miop_version;
+ Address the_address;
+ short the_port;
sequence<IOP::TaggedComponent> components;
};
diff --git a/TAO/tao/PortableGroup/miopC.cpp b/TAO/tao/PortableGroup/miopC.cpp
index 5822ae1b41a..21ca8b04f6d 100644
--- a/TAO/tao/PortableGroup/miopC.cpp
+++ b/TAO/tao/PortableGroup/miopC.cpp
@@ -38,19 +38,19 @@
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_BOUNDED_SEQUENCE_MIOP_UNIQUEID_252_CS_)
#define __TAO_BOUNDED_SEQUENCE_MIOP_UNIQUEID_252_CS_
- void
+ void
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::_allocate_buffer (CORBA::ULong /* length */)
// allocate a buffer of the requested length. The buffer is allocated for the
// right type
{
this->buffer_ = _TAO_Bounded_Sequence_MIOP_UniqueId_252::allocbuf (252U);
}
-
- void
+
+ void
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::_deallocate_buffer (void)
// deallocate the buffer
{
@@ -60,17 +60,17 @@
_TAO_Bounded_Sequence_MIOP_UniqueId_252::freebuf (tmp);
this->buffer_ = 0;
}
-
+
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::~_TAO_Bounded_Sequence_MIOP_UniqueId_252 (void) // Dtor.
{
this->_deallocate_buffer ();
}
-
-
+
+
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
#if !defined (_MIOP_UNIQUEID_CS_)
#define _MIOP_UNIQUEID_CS_
@@ -82,21 +82,21 @@
MIOP::UniqueId::UniqueId (void)
{}
MIOP::UniqueId::UniqueId (CORBA::ULong length, CORBA::Octet *buffer, CORBA::Boolean release)
- :
+ :
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
_TAO_Bounded_Sequence_MIOP_UniqueId_252
#else /* TAO_USE_SEQUENCE_TEMPLATES */
TAO_Bounded_Sequence<CORBA::Octet, 252U>
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
(length, buffer, release)
{}
MIOP::UniqueId::UniqueId (const UniqueId &seq) // copy ctor
- :
+ :
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
_TAO_Bounded_Sequence_MIOP_UniqueId_252
#else /* TAO_USE_SEQUENCE_TEMPLATES */
TAO_Bounded_Sequence<CORBA::Octet, 252U>
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
(seq)
{}
MIOP::UniqueId::~UniqueId (void) // dtor
@@ -114,17 +114,17 @@ static const CORBA::Long _oc_MIOP_UniqueId[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
30,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f556e69),
- ACE_NTOHL (0x71756549),
- ACE_NTOHL (0x643a312e),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f556e69),
+ ACE_NTOHL (0x71756549),
+ ACE_NTOHL (0x643a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/MIOP/UniqueId:1.0
9,
- ACE_NTOHL (0x556e6971),
- ACE_NTOHL (0x75654964),
+ ACE_NTOHL (0x556e6971),
+ ACE_NTOHL (0x75654964),
ACE_NTOHL (0x0), // name = UniqueId
CORBA::tk_sequence, // typecode kind
12, // encapsulation length
@@ -152,25 +152,25 @@ static const CORBA::Long _oc_MIOP_PacketHeader_1_0[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
38,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f506163),
- ACE_NTOHL (0x6b657448),
- ACE_NTOHL (0x65616465),
- ACE_NTOHL (0x725f315f),
- ACE_NTOHL (0x303a312e),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f506163),
+ ACE_NTOHL (0x6b657448),
+ ACE_NTOHL (0x65616465),
+ ACE_NTOHL (0x725f315f),
+ ACE_NTOHL (0x303a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/MIOP/PacketHeader_1_0:1.0
17,
- ACE_NTOHL (0x5061636b),
- ACE_NTOHL (0x65744865),
- ACE_NTOHL (0x61646572),
- ACE_NTOHL (0x5f315f30),
+ ACE_NTOHL (0x5061636b),
+ ACE_NTOHL (0x65744865),
+ ACE_NTOHL (0x61646572),
+ ACE_NTOHL (0x5f315f30),
ACE_NTOHL (0x0), // name = PacketHeader_1_0
7, // member count
6,
- ACE_NTOHL (0x6d616769),
+ ACE_NTOHL (0x6d616769),
ACE_NTOHL (0x63000000), // name = magic
CORBA::tk_array, // typecode kind
12, // encapsulation length
@@ -180,35 +180,35 @@ static const CORBA::Long _oc_MIOP_PacketHeader_1_0[] =
4U,
12,
- ACE_NTOHL (0x6864725f),
- ACE_NTOHL (0x76657273),
+ ACE_NTOHL (0x6864725f),
+ ACE_NTOHL (0x76657273),
ACE_NTOHL (0x696f6e00), // name = hdr_version
CORBA::tk_octet,
6,
- ACE_NTOHL (0x666c6167),
+ ACE_NTOHL (0x666c6167),
ACE_NTOHL (0x73000000), // name = flags
CORBA::tk_octet,
14,
- ACE_NTOHL (0x7061636b),
- ACE_NTOHL (0x65745f6c),
- ACE_NTOHL (0x656e6774),
+ ACE_NTOHL (0x7061636b),
+ ACE_NTOHL (0x65745f6c),
+ ACE_NTOHL (0x656e6774),
ACE_NTOHL (0x68000000), // name = packet_length
CORBA::tk_ushort,
14,
- ACE_NTOHL (0x7061636b),
- ACE_NTOHL (0x65745f6e),
- ACE_NTOHL (0x756d6265),
+ ACE_NTOHL (0x7061636b),
+ ACE_NTOHL (0x65745f6e),
+ ACE_NTOHL (0x756d6265),
ACE_NTOHL (0x72000000), // name = packet_number
CORBA::tk_ulong,
18,
- ACE_NTOHL (0x6e756d62),
- ACE_NTOHL (0x65725f6f),
- ACE_NTOHL (0x665f7061),
- ACE_NTOHL (0x636b6574),
+ ACE_NTOHL (0x6e756d62),
+ ACE_NTOHL (0x65725f6f),
+ ACE_NTOHL (0x665f7061),
+ ACE_NTOHL (0x636b6574),
ACE_NTOHL (0x73000000), // name = number_of_packets
CORBA::tk_ulong,
@@ -218,17 +218,17 @@ static const CORBA::Long _oc_MIOP_PacketHeader_1_0[] =
76, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
30,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f556e69),
- ACE_NTOHL (0x71756549),
- ACE_NTOHL (0x643a312e),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f556e69),
+ ACE_NTOHL (0x71756549),
+ ACE_NTOHL (0x643a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/MIOP/UniqueId:1.0
9,
- ACE_NTOHL (0x556e6971),
- ACE_NTOHL (0x75654964),
+ ACE_NTOHL (0x556e6971),
+ ACE_NTOHL (0x75654964),
ACE_NTOHL (0x0), // name = UniqueId
CORBA::tk_sequence, // typecode kind
12, // encapsulation length
@@ -288,7 +288,7 @@ MIOP::PacketHeader_1_0::_magic_free (MIOP::PacketHeader_1_0::_magic_slice *_tao_
delete [] _tao_slice;
}
-void
+void
MIOP::PacketHeader_1_0::_magic_copy (MIOP::PacketHeader_1_0::_magic_slice * _tao_to, const MIOP::PacketHeader_1_0::_magic_slice *_tao_from)
{
// copy each individual element
@@ -300,32 +300,48 @@ static const CORBA::Long _oc_MIOP_Version[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
29,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f566572),
- ACE_NTOHL (0x73696f6e),
- ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f566572),
+ ACE_NTOHL (0x73696f6e),
+ ACE_NTOHL (0x3a312e30),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/MIOP/Version:1.0
8,
- ACE_NTOHL (0x56657273),
+ ACE_NTOHL (0x56657273),
ACE_NTOHL (0x696f6e00), // name = Version
- 2, // member count
- 6,
- ACE_NTOHL (0x6d616a6f),
- ACE_NTOHL (0x72000000), // name = major
- CORBA::tk_octet,
+ CORBA::tk_struct, // typecode kind
+ 88, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 29,
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x47494f50),
+ ACE_NTOHL (0x2f566572),
+ ACE_NTOHL (0x73696f6e),
+ ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x0), // repository ID = IDL:omg.org/GIOP/Version:1.0
+ 8,
+ ACE_NTOHL (0x56657273),
+ ACE_NTOHL (0x696f6e00), // name = Version
+ 2, // member count
+ 6,
+ ACE_NTOHL (0x6d616a6f),
+ ACE_NTOHL (0x72000000), // name = major
+ CORBA::tk_octet,
+
+ 6,
+ ACE_NTOHL (0x6d696e6f),
+ ACE_NTOHL (0x72000000), // name = minor
+ CORBA::tk_octet,
- 6,
- ACE_NTOHL (0x6d696e6f),
- ACE_NTOHL (0x72000000), // name = minor
- CORBA::tk_octet,
};
static CORBA::TypeCode _tc_TAO_tc_MIOP_Version (
- CORBA::tk_struct,
+ CORBA::tk_alias,
sizeof (_oc_MIOP_Version),
(char *) &_oc_MIOP_Version,
0,
@@ -337,575 +353,138 @@ TAO_NAMESPACE_BEGIN (MIOP)
TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_Version, &_tc_TAO_tc_MIOP_Version)
TAO_NAMESPACE_END
-void MIOP::Version::_tao_any_destructor (void *x)
-{
- Version *tmp = ACE_static_cast (Version*,x);
- delete tmp;
-}
-
-static const CORBA::Long _oc_MIOP_IPVersion[] =
+static const CORBA::Long _oc_MIOP_Address[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
- 31,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f495056),
- ACE_NTOHL (0x65727369),
- ACE_NTOHL (0x6f6e3a31),
- ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/IPVersion:1.0
- 10,
- ACE_NTOHL (0x49505665),
- ACE_NTOHL (0x7273696f),
- ACE_NTOHL (0x6e000000), // name = IPVersion
- CORBA::tk_short,
-
-};
-
-static CORBA::TypeCode _tc_TAO_tc_MIOP_IPVersion (
- CORBA::tk_alias,
- sizeof (_oc_MIOP_IPVersion),
- (char *) &_oc_MIOP_IPVersion,
- 0,
- sizeof (MIOP::IPVersion)
- );
-
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (MIOP)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IPVersion, &_tc_TAO_tc_MIOP_IPVersion)
-TAO_NAMESPACE_END
-
-TAO_NAMESPACE_TYPE (const CORBA::Short)
-TAO_NAMESPACE_BEGIN (MIOP)
-TAO_NAMESPACE_DEFINE (const CORBA::Short, IPv4, 0)
-TAO_NAMESPACE_END
-TAO_NAMESPACE_TYPE (const CORBA::Short)
-TAO_NAMESPACE_BEGIN (MIOP)
-TAO_NAMESPACE_DEFINE (const CORBA::Short, IPv6, 1)
-TAO_NAMESPACE_END
-static const CORBA::Long _oc_MIOP_UsingIpv4[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 31,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f557369),
- ACE_NTOHL (0x6e674970),
- ACE_NTOHL (0x76343a31),
- ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/UsingIpv4:1.0
- 10,
- ACE_NTOHL (0x5573696e),
- ACE_NTOHL (0x67497076),
- ACE_NTOHL (0x34000000), // name = UsingIpv4
- 2, // member count
- 5,
- ACE_NTOHL (0x706f7274),
- ACE_NTOHL (0x0), // name = port
- CORBA::tk_ushort,
-
- 16,
- ACE_NTOHL (0x636c6173),
- ACE_NTOHL (0x735f645f),
- ACE_NTOHL (0x61646472),
- ACE_NTOHL (0x65737300), // name = class_d_address
- CORBA::tk_array, // typecode kind
- 12, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_octet,
-
- 4U,
-
-};
-
-static CORBA::TypeCode _tc_TAO_tc_MIOP_UsingIpv4 (
- CORBA::tk_struct,
- sizeof (_oc_MIOP_UsingIpv4),
- (char *) &_oc_MIOP_UsingIpv4,
- 0,
- sizeof (MIOP::UsingIpv4)
- );
-
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (MIOP)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_UsingIpv4, &_tc_TAO_tc_MIOP_UsingIpv4)
-TAO_NAMESPACE_END
-
-void MIOP::UsingIpv4::_tao_any_destructor (void *x)
-{
- UsingIpv4 *tmp = ACE_static_cast (UsingIpv4*,x);
- delete tmp;
-}
-
-void MIOP::UsingIpv4::_class_d_address_forany::_tao_any_destructor (void *x)
-{
- _class_d_address_slice *tmp = ACE_static_cast (_class_d_address_slice*,x);
- _class_d_address_free (tmp);
-}
-
-MIOP::UsingIpv4::_class_d_address_slice *
-MIOP::UsingIpv4::_class_d_address_dup (const MIOP::UsingIpv4::_class_d_address_slice *_tao_src_array)
-{
- MIOP::UsingIpv4::_class_d_address_slice *_tao_dup_array = MIOP::UsingIpv4::_class_d_address_alloc ();
- if (!_tao_dup_array) return (MIOP::UsingIpv4::_class_d_address_slice *)0;
- MIOP::UsingIpv4::_class_d_address_copy (_tao_dup_array, _tao_src_array);
- return _tao_dup_array;
-}
-
-MIOP::UsingIpv4::_class_d_address_slice *
-MIOP::UsingIpv4::_class_d_address_alloc (void)
-{
- MIOP::UsingIpv4::_class_d_address_slice *retval = 0;
- ACE_NEW_RETURN (retval, CORBA::Octet[4], 0);
- return retval;
-}
-
-void
-MIOP::UsingIpv4::_class_d_address_free (MIOP::UsingIpv4::_class_d_address_slice *_tao_slice)
-{
- delete [] _tao_slice;
-}
-
-void
-MIOP::UsingIpv4::_class_d_address_copy (MIOP::UsingIpv4::_class_d_address_slice * _tao_to, const MIOP::UsingIpv4::_class_d_address_slice *_tao_from)
-{
- // copy each individual element
- for (CORBA::ULong i0 = 0; i0 < 4; i0++)
- _tao_to[i0] = _tao_from[i0];
-}
-
-static const CORBA::Long _oc_MIOP_UsingIpv6[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 31,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f557369),
- ACE_NTOHL (0x6e674970),
- ACE_NTOHL (0x76363a31),
- ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/UsingIpv6:1.0
- 10,
- ACE_NTOHL (0x5573696e),
- ACE_NTOHL (0x67497076),
- ACE_NTOHL (0x36000000), // name = UsingIpv6
- 2, // member count
- 5,
- ACE_NTOHL (0x706f7274),
- ACE_NTOHL (0x0), // name = port
- CORBA::tk_ulong,
-
+ 29,
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f416464),
+ ACE_NTOHL (0x72657373),
+ ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x0), // repository ID = IDL:omg.org/MIOP/Address:1.0
8,
- ACE_NTOHL (0x61646472),
- ACE_NTOHL (0x65737300), // name = address
- CORBA::tk_string,
+ ACE_NTOHL (0x41646472),
+ ACE_NTOHL (0x65737300), // name = Address
+ CORBA::tk_string,
0U, // string length
};
-static CORBA::TypeCode _tc_TAO_tc_MIOP_UsingIpv6 (
- CORBA::tk_struct,
- sizeof (_oc_MIOP_UsingIpv6),
- (char *) &_oc_MIOP_UsingIpv6,
- 0,
- sizeof (MIOP::UsingIpv6)
- );
-
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (MIOP)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_UsingIpv6, &_tc_TAO_tc_MIOP_UsingIpv6)
-TAO_NAMESPACE_END
-
-void MIOP::UsingIpv6::_tao_any_destructor (void *x)
-{
- UsingIpv6 *tmp = ACE_static_cast (UsingIpv6*,x);
- delete tmp;
-}
-
-// *************************************************************
-// Operations for union MIOP::IPEndpoints
-// *************************************************************
-
-// default constructor
-MIOP::IPEndpoints::IPEndpoints (void)
-{
- ACE_OS::memset (&this->disc_, 0, sizeof (this->disc_));
- ACE_OS::memset (&this->u_, 0, sizeof (this->u_));
- this->disc_ = 0;
-}
-
-// copy constructor
-MIOP::IPEndpoints::IPEndpoints (const ::MIOP::IPEndpoints &u)
-{
- this->disc_ = u.disc_;
- switch (this->disc_)
- {
-case 0:
- {
- this->u_.ipv4_endpoints_ = u.u_.ipv4_endpoints_;
- }
- break;
- case 1:
- {
- if (u.u_.ipv6_endpoints_ == 0)
- {
- this->u_.ipv6_endpoints_ = 0;
- }
- else
- {
- ACE_NEW (
- this->u_.ipv6_endpoints_,
- MIOP::UsingIpv6 (*u.u_.ipv6_endpoints_)
- );
- }
- }
- break;
- default:
- break;
- }
-}
-
-// destructor
-MIOP::IPEndpoints::~IPEndpoints (void)
-{
- // finalize
- this->_reset (this->disc_, 1);
-}
-
-void MIOP::IPEndpoints::_tao_any_destructor (void *x)
-{
- IPEndpoints *tmp = ACE_static_cast (IPEndpoints*,x);
- delete tmp;
-}
-
-// assignment operator
-MIOP::IPEndpoints &
-MIOP::IPEndpoints::operator= (const ::MIOP::IPEndpoints &u)
-{
- if (&u == this)
- {
- return *this;
- }
-
- this->_reset (u.disc_, 0);
- this->disc_ = u.disc_;
-
- switch (this->disc_)
- {
- case 0:
- {
- this->u_.ipv4_endpoints_ = u.u_.ipv4_endpoints_;
- }
- break;
- case 1:
- {
- if (u.u_.ipv6_endpoints_ == 0)
- {
- this->u_.ipv6_endpoints_ = 0;
- }
- else
- {
- ACE_NEW_RETURN (
- this->u_.ipv6_endpoints_,
- MIOP::UsingIpv6 (*u.u_.ipv6_endpoints_),
- *this
- );
- }
- }
- break;
- default:
- break;
- }
-
- return *this;
-}
-
-// reset method to reset old values of a union
-void MIOP::IPEndpoints::_reset (CORBA::Short, CORBA::Boolean /*finalize*/)
-{
- switch (this->disc_)
- {
- case 0:
- break;
- case 1:
- delete this->u_.ipv6_endpoints_;
- this->u_.ipv6_endpoints_ = 0;
- break;
- default:
- break;
- }
-}
-
-static const CORBA::Long _oc_MIOP_IPEndpoints[] =
-{
- TAO_ENCAP_BYTE_ORDER, // byte order
- 33,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f495045),
- ACE_NTOHL (0x6e64706f),
- ACE_NTOHL (0x696e7473),
- ACE_NTOHL (0x3a312e30),
- ACE_NTOHL (0x0), // repository ID = IDL:omg.org/MIOP/IPEndpoints:1.0
- 12,
- ACE_NTOHL (0x4950456e),
- ACE_NTOHL (0x64706f69),
- ACE_NTOHL (0x6e747300), // name = IPEndpoints
- CORBA::tk_short,
-
- -1, // default used index
- 2, // member count
- ACE_IDL_NSTOHL (0x0000), // union case label (evaluated value)
- 15,
- ACE_NTOHL (0x69707634),
- ACE_NTOHL (0x5f656e64),
- ACE_NTOHL (0x706f696e),
- ACE_NTOHL (0x74730000), // name = ipv4_endpoints
- CORBA::tk_struct, // typecode kind
- 116, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- 31,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f557369),
- ACE_NTOHL (0x6e674970),
- ACE_NTOHL (0x76343a31),
- ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/UsingIpv4:1.0
- 10,
- ACE_NTOHL (0x5573696e),
- ACE_NTOHL (0x67497076),
- ACE_NTOHL (0x34000000), // name = UsingIpv4
- 2, // member count
- 5,
- ACE_NTOHL (0x706f7274),
- ACE_NTOHL (0x0), // name = port
- CORBA::tk_ushort,
-
- 16,
- ACE_NTOHL (0x636c6173),
- ACE_NTOHL (0x735f645f),
- ACE_NTOHL (0x61646472),
- ACE_NTOHL (0x65737300), // name = class_d_address
- CORBA::tk_array, // typecode kind
- 12, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_octet,
-
- 4U,
-
-
- ACE_IDL_NSTOHL (0x0001), // union case label (evaluated value)
- 15,
- ACE_NTOHL (0x69707636),
- ACE_NTOHL (0x5f656e64),
- ACE_NTOHL (0x706f696e),
- ACE_NTOHL (0x74730000), // name = ipv6_endpoints
- CORBA::tk_struct, // typecode kind
- 96, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- 31,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f557369),
- ACE_NTOHL (0x6e674970),
- ACE_NTOHL (0x76363a31),
- ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/UsingIpv6:1.0
- 10,
- ACE_NTOHL (0x5573696e),
- ACE_NTOHL (0x67497076),
- ACE_NTOHL (0x36000000), // name = UsingIpv6
- 2, // member count
- 5,
- ACE_NTOHL (0x706f7274),
- ACE_NTOHL (0x0), // name = port
- CORBA::tk_ulong,
-
- 8,
- ACE_NTOHL (0x61646472),
- ACE_NTOHL (0x65737300), // name = address
- CORBA::tk_string,
- 0U, // string length
-
-};
-
-static CORBA::TypeCode _tc_TAO_tc_MIOP_IPEndpoints (
- CORBA::tk_union,
- sizeof (_oc_MIOP_IPEndpoints),
- (char *) &_oc_MIOP_IPEndpoints,
+static CORBA::TypeCode _tc_TAO_tc_MIOP_Address (
+ CORBA::tk_alias,
+ sizeof (_oc_MIOP_Address),
+ (char *) &_oc_MIOP_Address,
0,
- sizeof (MIOP::IPEndpoints)
+ sizeof (MIOP::Address)
);
TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
TAO_NAMESPACE_BEGIN (MIOP)
-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_IPEndpoints, &_tc_TAO_tc_MIOP_IPEndpoints)
+TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_Address, &_tc_TAO_tc_MIOP_Address)
TAO_NAMESPACE_END
static const CORBA::Long _oc_MIOP_UIPMC_ProfileBody[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
39,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f554950),
- ACE_NTOHL (0x4d435f50),
- ACE_NTOHL (0x726f6669),
- ACE_NTOHL (0x6c65426f),
- ACE_NTOHL (0x64793a31),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f554950),
+ ACE_NTOHL (0x4d435f50),
+ ACE_NTOHL (0x726f6669),
+ ACE_NTOHL (0x6c65426f),
+ ACE_NTOHL (0x64793a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/UIPMC_ProfileBody:1.0
18,
- ACE_NTOHL (0x5549504d),
- ACE_NTOHL (0x435f5072),
- ACE_NTOHL (0x6f66696c),
- ACE_NTOHL (0x65426f64),
+ ACE_NTOHL (0x5549504d),
+ ACE_NTOHL (0x435f5072),
+ ACE_NTOHL (0x6f66696c),
+ ACE_NTOHL (0x65426f64),
ACE_NTOHL (0x79000000), // name = UIPMC_ProfileBody
- 3, // member count
+ 4, // member count
13,
- ACE_NTOHL (0x6d696f70),
- ACE_NTOHL (0x5f766572),
- ACE_NTOHL (0x73696f6e),
+ ACE_NTOHL (0x6d696f70),
+ ACE_NTOHL (0x5f766572),
+ ACE_NTOHL (0x73696f6e),
ACE_NTOHL (0x0), // name = miop_version
- CORBA::tk_struct, // typecode kind
- 88, // encapsulation length
+ CORBA::tk_alias, // typecode kind for typedefs
+ 148, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
29,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f566572),
- ACE_NTOHL (0x73696f6e),
- ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f566572),
+ ACE_NTOHL (0x73696f6e),
+ ACE_NTOHL (0x3a312e30),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/MIOP/Version:1.0
8,
- ACE_NTOHL (0x56657273),
+ ACE_NTOHL (0x56657273),
ACE_NTOHL (0x696f6e00), // name = Version
- 2, // member count
- 6,
- ACE_NTOHL (0x6d616a6f),
- ACE_NTOHL (0x72000000), // name = major
- CORBA::tk_octet,
-
- 6,
- ACE_NTOHL (0x6d696e6f),
- ACE_NTOHL (0x72000000), // name = minor
- CORBA::tk_octet,
-
-
- 10,
- ACE_NTOHL (0x656e6470),
- ACE_NTOHL (0x6f696e74),
- ACE_NTOHL (0x73000000), // name = endpoints
- CORBA::tk_union, // typecode kind
- 348, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- 33,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f495045),
- ACE_NTOHL (0x6e64706f),
- ACE_NTOHL (0x696e7473),
- ACE_NTOHL (0x3a312e30),
- ACE_NTOHL (0x0), // repository ID = IDL:omg.org/MIOP/IPEndpoints:1.0
- 12,
- ACE_NTOHL (0x4950456e),
- ACE_NTOHL (0x64706f69),
- ACE_NTOHL (0x6e747300), // name = IPEndpoints
- CORBA::tk_short,
-
- -1, // default used index
- 2, // member count
- ACE_IDL_NSTOHL (0x0000), // union case label (evaluated value)
- 15,
- ACE_NTOHL (0x69707634),
- ACE_NTOHL (0x5f656e64),
- ACE_NTOHL (0x706f696e),
- ACE_NTOHL (0x74730000), // name = ipv4_endpoints
CORBA::tk_struct, // typecode kind
- 116, // encapsulation length
+ 88, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
- 31,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f557369),
- ACE_NTOHL (0x6e674970),
- ACE_NTOHL (0x76343a31),
- ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/UsingIpv4:1.0
- 10,
- ACE_NTOHL (0x5573696e),
- ACE_NTOHL (0x67497076),
- ACE_NTOHL (0x34000000), // name = UsingIpv4
+ 29,
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x47494f50),
+ ACE_NTOHL (0x2f566572),
+ ACE_NTOHL (0x73696f6e),
+ ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x0), // repository ID = IDL:omg.org/GIOP/Version:1.0
+ 8,
+ ACE_NTOHL (0x56657273),
+ ACE_NTOHL (0x696f6e00), // name = Version
2, // member count
- 5,
- ACE_NTOHL (0x706f7274),
- ACE_NTOHL (0x0), // name = port
- CORBA::tk_ushort,
+ 6,
+ ACE_NTOHL (0x6d616a6f),
+ ACE_NTOHL (0x72000000), // name = major
+ CORBA::tk_octet,
- 16,
- ACE_NTOHL (0x636c6173),
- ACE_NTOHL (0x735f645f),
- ACE_NTOHL (0x61646472),
- ACE_NTOHL (0x65737300), // name = class_d_address
- CORBA::tk_array, // typecode kind
- 12, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_octet,
+ 6,
+ ACE_NTOHL (0x6d696e6f),
+ ACE_NTOHL (0x72000000), // name = minor
+ CORBA::tk_octet,
- 4U,
- ACE_IDL_NSTOHL (0x0001), // union case label (evaluated value)
- 15,
- ACE_NTOHL (0x69707636),
- ACE_NTOHL (0x5f656e64),
- ACE_NTOHL (0x706f696e),
- ACE_NTOHL (0x74730000), // name = ipv6_endpoints
- CORBA::tk_struct, // typecode kind
- 96, // encapsulation length
- TAO_ENCAP_BYTE_ORDER, // byte order
- 31,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d494f50),
- ACE_NTOHL (0x2f557369),
- ACE_NTOHL (0x6e674970),
- ACE_NTOHL (0x76363a31),
- ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/MIOP/UsingIpv6:1.0
- 10,
- ACE_NTOHL (0x5573696e),
- ACE_NTOHL (0x67497076),
- ACE_NTOHL (0x36000000), // name = UsingIpv6
- 2, // member count
- 5,
- ACE_NTOHL (0x706f7274),
- ACE_NTOHL (0x0), // name = port
- CORBA::tk_ulong,
-
- 8,
- ACE_NTOHL (0x61646472),
- ACE_NTOHL (0x65737300), // name = address
- CORBA::tk_string,
- 0U, // string length
+ 12,
+ ACE_NTOHL (0x7468655f),
+ ACE_NTOHL (0x61646472),
+ ACE_NTOHL (0x65737300), // name = the_address
+ CORBA::tk_alias, // typecode kind for typedefs
+ 60, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ 29,
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d494f50),
+ ACE_NTOHL (0x2f416464),
+ ACE_NTOHL (0x72657373),
+ ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x0), // repository ID = IDL:omg.org/MIOP/Address:1.0
+ 8,
+ ACE_NTOHL (0x41646472),
+ ACE_NTOHL (0x65737300), // name = Address
+ CORBA::tk_string,
+ 0U, // string length
+ 9,
+ ACE_NTOHL (0x7468655f),
+ ACE_NTOHL (0x706f7274),
+ ACE_NTOHL (0x0), // name = the_port
+ CORBA::tk_short,
11,
- ACE_NTOHL (0x636f6d70),
- ACE_NTOHL (0x6f6e656e),
+ ACE_NTOHL (0x636f6d70),
+ ACE_NTOHL (0x6f6e656e),
ACE_NTOHL (0x74730000), // name = components
CORBA::tk_sequence, // typecode kind
200, // encapsulation length
@@ -914,19 +493,19 @@ static const CORBA::Long _oc_MIOP_UIPMC_ProfileBody[] =
184, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
36,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x494f502f),
- ACE_NTOHL (0x54616767),
- ACE_NTOHL (0x6564436f),
- ACE_NTOHL (0x6d706f6e),
- ACE_NTOHL (0x656e743a),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x494f502f),
+ ACE_NTOHL (0x54616767),
+ ACE_NTOHL (0x6564436f),
+ ACE_NTOHL (0x6d706f6e),
+ ACE_NTOHL (0x656e743a),
ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0
16,
- ACE_NTOHL (0x54616767),
- ACE_NTOHL (0x6564436f),
- ACE_NTOHL (0x6d706f6e),
+ ACE_NTOHL (0x54616767),
+ ACE_NTOHL (0x6564436f),
+ ACE_NTOHL (0x6d706f6e),
ACE_NTOHL (0x656e7400), // name = TaggedComponent
2, // member count
4,
@@ -935,25 +514,25 @@ static const CORBA::Long _oc_MIOP_UIPMC_ProfileBody[] =
60, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
32,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x494f502f),
- ACE_NTOHL (0x436f6d70),
- ACE_NTOHL (0x6f6e656e),
- ACE_NTOHL (0x7449643a),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x494f502f),
+ ACE_NTOHL (0x436f6d70),
+ ACE_NTOHL (0x6f6e656e),
+ ACE_NTOHL (0x7449643a),
ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/IOP/ComponentId:1.0
12,
- ACE_NTOHL (0x436f6d70),
- ACE_NTOHL (0x6f6e656e),
+ ACE_NTOHL (0x436f6d70),
+ ACE_NTOHL (0x6f6e656e),
ACE_NTOHL (0x74496400), // name = ComponentId
CORBA::tk_ulong,
15,
- ACE_NTOHL (0x636f6d70),
- ACE_NTOHL (0x6f6e656e),
- ACE_NTOHL (0x745f6461),
+ ACE_NTOHL (0x636f6d70),
+ ACE_NTOHL (0x6f6e656e),
+ ACE_NTOHL (0x745f6461),
ACE_NTOHL (0x74610000), // name = component_data
CORBA::tk_sequence, // typecode kind
12, // encapsulation length
@@ -988,7 +567,7 @@ void MIOP::UIPMC_ProfileBody::_tao_any_destructor (void *x)
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_UNBOUNDED_SEQUENCE_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CS_)
#define __TAO_UNBOUNDED_SEQUENCE_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CS_
@@ -997,43 +576,43 @@ void MIOP::UIPMC_ProfileBody::_tao_any_destructor (void *x)
{
IOP::TaggedComponent* tmp = 0;
tmp = _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::allocbuf (length);
-
+
if (this->buffer_ != 0)
{
IOP::TaggedComponent *old = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
tmp[i] = old[i];
-
+
if (this->release_)
_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::freebuf (old);
-
+
}
this->buffer_ = tmp;
}
-
+
void
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::_deallocate_buffer (void)
{
if (this->buffer_ == 0 || this->release_ == 0)
return;
-
+
IOP::TaggedComponent *tmp = ACE_reinterpret_cast (IOP::TaggedComponent *,this->buffer_);
-
+
_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::freebuf (tmp);
this->buffer_ = 0;
- }
-
+ }
+
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::~_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (void) // Dtor.
{
this->_deallocate_buffer ();
}
-
-
+
+
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
#if !defined (_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CS_)
#define _MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CS_
@@ -1045,30 +624,30 @@ void MIOP::UIPMC_ProfileBody::_tao_any_destructor (void *x)
MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent::_tao_seq_TaggedComponent (void)
{}
MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent::_tao_seq_TaggedComponent (CORBA::ULong max) // uses max size
- :
+ :
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent
#else /* TAO_USE_SEQUENCE_TEMPLATES */
TAO_Unbounded_Sequence<IOP::TaggedComponent>
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
(max)
{}
MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent::_tao_seq_TaggedComponent (CORBA::ULong max, CORBA::ULong length, IOP::TaggedComponent *buffer, CORBA::Boolean release)
- :
+ :
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent
#else /* TAO_USE_SEQUENCE_TEMPLATES */
TAO_Unbounded_Sequence<IOP::TaggedComponent>
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
(max, length, buffer, release)
{}
MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent::_tao_seq_TaggedComponent (const _tao_seq_TaggedComponent &seq) // copy ctor
- :
+ :
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent
#else /* TAO_USE_SEQUENCE_TEMPLATES */
TAO_Unbounded_Sequence<IOP::TaggedComponent>
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
(seq)
{}
MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent::~_tao_seq_TaggedComponent (void) // dtor
@@ -1173,7 +752,7 @@ MIOP::MulticastObjectGroupFactory_var::operator const ::MIOP::MulticastObjectGro
return this->ptr_;
}
-MIOP::MulticastObjectGroupFactory_var::operator ::MIOP::MulticastObjectGroupFactory_ptr &() // cast
+MIOP::MulticastObjectGroupFactory_var::operator ::MIOP::MulticastObjectGroupFactory_ptr &() // cast
{
return this->ptr_;
}
@@ -1365,7 +944,7 @@ void *MIOP::MulticastObjectGroupFactory::_tao_QueryInterface (ptr_arith_t type)
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;
@@ -1405,7 +984,7 @@ MIOP::MulticastObjectGroupFactory::ipaddr_free (MIOP::MulticastObjectGroupFactor
delete [] _tao_slice;
}
-void
+void
MIOP::MulticastObjectGroupFactory::ipaddr_copy (MIOP::MulticastObjectGroupFactory::ipaddr_slice * _tao_to, const MIOP::MulticastObjectGroupFactory::ipaddr_slice *_tao_from)
{
// copy each individual element
@@ -1457,13 +1036,13 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const MIOP::UniqueId *&_
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
-
+
CORBA::Boolean result = type->equivalent (MIOP::_tc_UniqueId, ACE_TRY_ENV);
ACE_TRY_CHECK;
-
+
if (!result)
return 0; // not equivalent
-
+
if (_tao_any.any_owns_data ())
{
_tao_elem = ACE_static_cast(
@@ -1540,13 +1119,13 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const MIOP::PacketHeader
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
-
+
CORBA::Boolean result = type->equivalent (MIOP::_tc_PacketHeader_1_0, ACE_TRY_ENV);
ACE_TRY_CHECK;
-
+
if (!result)
return 0; // not equivalent
-
+
if (_tao_any.any_owns_data ())
{
_tao_elem = ACE_static_cast(
@@ -1587,358 +1166,6 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const MIOP::PacketHeader
return 0;
}
-void operator<<= (CORBA::Any &_tao_any, const MIOP::Version &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- MIOP::_tc_Version,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void operator<<= (CORBA::Any &_tao_any, MIOP::Version *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- MIOP::_tc_Version,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- MIOP::Version::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, MIOP::Version *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const MIOP::Version*&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const MIOP::Version *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
-
- CORBA::Boolean result = type->equivalent (MIOP::_tc_Version, ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- if (!result)
- return 0; // not equivalent
-
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = ACE_static_cast(
- const MIOP::Version*,
- _tao_any.value ()
- );
- return 1;
- }
- else
- {
- MIOP::Version *tmp;
- ACE_NEW_RETURN (tmp, MIOP::Version, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- MIOP::_tc_Version,
- 1,
- ACE_static_cast (void *, tmp),
- MIOP::Version::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const MIOP::UsingIpv4 &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- MIOP::_tc_UsingIpv4,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void operator<<= (CORBA::Any &_tao_any, MIOP::UsingIpv4 *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- MIOP::_tc_UsingIpv4,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- MIOP::UsingIpv4::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, MIOP::UsingIpv4 *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const MIOP::UsingIpv4*&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const MIOP::UsingIpv4 *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
-
- CORBA::Boolean result = type->equivalent (MIOP::_tc_UsingIpv4, ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- if (!result)
- return 0; // not equivalent
-
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = ACE_static_cast(
- const MIOP::UsingIpv4*,
- _tao_any.value ()
- );
- return 1;
- }
- else
- {
- MIOP::UsingIpv4 *tmp;
- ACE_NEW_RETURN (tmp, MIOP::UsingIpv4, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- MIOP::_tc_UsingIpv4,
- 1,
- ACE_static_cast (void *, tmp),
- MIOP::UsingIpv4::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (CORBA::Any &_tao_any, const MIOP::UsingIpv6 &_tao_elem) // copying
-{
- TAO_OutputCDR stream;
- stream << _tao_elem;
- _tao_any._tao_replace (
- MIOP::_tc_UsingIpv6,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
-}
-
-void operator<<= (CORBA::Any &_tao_any, MIOP::UsingIpv6 *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- MIOP::_tc_UsingIpv6,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- MIOP::UsingIpv6::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, MIOP::UsingIpv6 *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(const MIOP::UsingIpv6*&,_tao_elem);
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const MIOP::UsingIpv6 *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
-
- CORBA::Boolean result = type->equivalent (MIOP::_tc_UsingIpv6, ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- if (!result)
- return 0; // not equivalent
-
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = ACE_static_cast(
- const MIOP::UsingIpv6*,
- _tao_any.value ()
- );
- return 1;
- }
- else
- {
- MIOP::UsingIpv6 *tmp;
- ACE_NEW_RETURN (tmp, MIOP::UsingIpv6, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- MIOP::_tc_UsingIpv6,
- 1,
- ACE_static_cast (void *, tmp),
- MIOP::UsingIpv6::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (
- CORBA::Any &_tao_any,
- const MIOP::IPEndpoints &_tao_elem
- )
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- MIOP::_tc_IPEndpoints,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void operator<<= (
- CORBA::Any &_tao_any,
- MIOP::IPEndpoints *_tao_elem
- )
-{
- TAO_OutputCDR stream;
- if (stream << *_tao_elem)
- {
- _tao_any._tao_replace (
- MIOP::_tc_IPEndpoints,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- MIOP::IPEndpoints::_tao_any_destructor
- );
- }
-}
-
-CORBA::Boolean operator>>= (
- const CORBA::Any &_tao_any,
- MIOP::IPEndpoints *&_tao_elem
- )
-{
- return _tao_any >>= ACE_const_cast(
- const MIOP::IPEndpoints*&,
- _tao_elem
- );
-}
-
-CORBA::Boolean operator>>= (
- const CORBA::Any &_tao_any,
- const MIOP::IPEndpoints *&_tao_elem
- )
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
-
- CORBA::Boolean result = type->equivalent (MIOP::_tc_IPEndpoints, ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- if (!result)
- return 0; // not equivalent
-
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = ACE_static_cast(
- const MIOP::IPEndpoints*,
- _tao_any.value ()
- );
- return 1;
- }
- else
- {
- MIOP::IPEndpoints *tmp;
- ACE_NEW_RETURN (tmp, MIOP::IPEndpoints, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
-
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- MIOP::_tc_IPEndpoints,
- 1,
- ACE_static_cast (void *, tmp),
- MIOP::IPEndpoints::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
void operator<<= (CORBA::Any &_tao_any, const MIOP::UIPMC_ProfileBody &_tao_elem) // copying
{
TAO_OutputCDR stream;
@@ -1975,13 +1202,13 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const MIOP::UIPMC_Profil
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_var type = _tao_any.type ();
-
+
CORBA::Boolean result = type->equivalent (MIOP::_tc_UIPMC_ProfileBody, ACE_TRY_ENV);
ACE_TRY_CHECK;
-
+
if (!result)
return 0; // not equivalent
-
+
if (_tao_any.any_owns_data ())
{
_tao_elem = ACE_static_cast(
@@ -2055,7 +1282,7 @@ CORBA::Boolean operator>> (
// set the length of the sequence
_tao_sequence.length (_tao_seq_len);
// If length is 0 we return true.
- if (0 >= _tao_seq_len)
+ if (0 >= _tao_seq_len)
return 1;
// Add a check to the length of the sequence
// to make sure it does not exceed the length
@@ -2102,7 +1329,7 @@ CORBA::Boolean operator>> (
// set the length of the sequence
_tao_sequence.length (_tao_seq_len);
// If length is 0 we return true.
- if (0 >= _tao_seq_len)
+ if (0 >= _tao_seq_len)
return 1;
// Add a check to the length of the sequence
// to make sure it does not exceed the length
diff --git a/TAO/tao/PortableGroup/miopC.h b/TAO/tao/PortableGroup/miopC.h
index 7a4564d495d..25d280b4d69 100644
--- a/TAO/tao/PortableGroup/miopC.h
+++ b/TAO/tao/PortableGroup/miopC.h
@@ -30,7 +30,8 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "portablegroup_export.h"
-#include "tao/IOPC.h"
+//#include "IOPC.h"
+#include "tao/GIOPC.h"
#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
@@ -59,7 +60,7 @@ TAO_NAMESPACE MIOP
{
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_BOUNDED_SEQUENCE_MIOP_UNIQUEID_252_CH_)
#define __TAO_BOUNDED_SEQUENCE_MIOP_UNIQUEID_252_CH_
@@ -67,7 +68,7 @@ TAO_NAMESPACE MIOP
{
public:
// = Initialization and termination methods.
-
+
_TAO_Bounded_Sequence_MIOP_UniqueId_252 (void);
_TAO_Bounded_Sequence_MIOP_UniqueId_252 (CORBA::ULong length,
CORBA::Octet *data,
@@ -75,7 +76,7 @@ TAO_NAMESPACE MIOP
_TAO_Bounded_Sequence_MIOP_UniqueId_252 (const _TAO_Bounded_Sequence_MIOP_UniqueId_252 &rhs);
// Copy constructor.
_TAO_Bounded_Sequence_MIOP_UniqueId_252 &operator= (const _TAO_Bounded_Sequence_MIOP_UniqueId_252 &rhs);
- // Assignment operator.
+ // Assignment operator.
virtual ~_TAO_Bounded_Sequence_MIOP_UniqueId_252 (void); // Dtor.
// = Accessors.
CORBA::Octet &operator[] (CORBA::ULong i);// operator []
@@ -96,30 +97,30 @@ TAO_NAMESPACE MIOP
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
#if !defined (_MIOP_UNIQUEID_CH_)
#define _MIOP_UNIQUEID_CH_
class UniqueId;
class UniqueId_var;
-
+
// *************************************************************
// UniqueId
// *************************************************************
-
- class TAO_PortableGroup_Export UniqueId : public
+
+ class TAO_PortableGroup_Export UniqueId : public
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
_TAO_Bounded_Sequence_MIOP_UniqueId_252
#else /* TAO_USE_SEQUENCE_TEMPLATES */
TAO_Bounded_Sequence<CORBA::Octet, 252U>
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
{
public:
UniqueId (void); // default ctor
UniqueId (
- CORBA::ULong length,
- CORBA::Octet *buffer,
+ CORBA::ULong length,
+ CORBA::Octet *buffer,
CORBA::Boolean release = 0
);
UniqueId (const UniqueId &); // copy ctor
@@ -131,7 +132,7 @@ TAO_NAMESPACE MIOP
#endif /* ! __GNUC__ || g++ >= 2.8 */
};
-
+
#endif /* end #if !defined */
@@ -150,21 +151,21 @@ TAO_NAMESPACE MIOP
UniqueId_var (const UniqueId_var &); // copy constructor
UniqueId_var (const UniqueId &); // fixed-size base types only
~UniqueId_var (void); // destructor
-
+
UniqueId_var &operator= (UniqueId *);
UniqueId_var &operator= (const UniqueId_var &);
UniqueId_var &operator= (const UniqueId &); // fixed-size base types only
UniqueId *operator-> (void);
const UniqueId *operator-> (void) const;
-
+
operator const UniqueId &() const;
operator UniqueId &();
operator UniqueId &() const;
-
+
CORBA::Octet & operator[] (CORBA::ULong index);
const CORBA::Octet & operator[] (CORBA::ULong index) const;
-
- // in, inout, out, _retn
+
+ // in, inout, out, _retn
const UniqueId &in (void) const;
UniqueId &inout (void);
UniqueId *&out (void);
@@ -194,7 +195,7 @@ TAO_NAMESPACE MIOP
UniqueId *&ptr (void);
UniqueId *operator-> (void);
CORBA::Octet & operator[] (CORBA::ULong index);
-
+
private:
UniqueId *&ptr_;
// assignment from T_var not allowed
@@ -208,7 +209,7 @@ TAO_NAMESPACE MIOP
struct PacketHeader_1_0;
class PacketHeader_1_0_var;
-
+
struct TAO_PortableGroup_Export PacketHeader_1_0
{
@@ -234,12 +235,12 @@ TAO_NAMESPACE MIOP
static void _tao_any_destructor (void*);
_magic_forany &operator= (_magic_slice *);
_magic_forany &operator= (const _magic_forany &);
-
+
_magic_slice &operator[] (CORBA::ULong index);
const _magic_slice &operator[] (CORBA::ULong index) const;
operator _magic_slice * const &() const;
operator _magic_slice *&();
- // in, inout, out, _retn
+ // in, inout, out, _retn
const _magic_slice *in (void) const;
_magic_slice *inout (void);
_magic_slice *&out (void);
@@ -256,7 +257,7 @@ TAO_NAMESPACE MIOP
static void _magic_free (_magic_slice *_tao_slice);
static _magic_slice *_magic_dup (const _magic_slice *_tao_slice);
static void _magic_copy (_magic_slice *_tao_to, const _magic_slice *_tao_from);
-
+
#endif /* end #if !defined */
@@ -276,18 +277,18 @@ TAO_NAMESPACE MIOP
PacketHeader_1_0_var (PacketHeader_1_0 *);
PacketHeader_1_0_var (const PacketHeader_1_0_var &); // copy constructor
~PacketHeader_1_0_var (void); // destructor
-
+
PacketHeader_1_0_var &operator= (PacketHeader_1_0 *);
PacketHeader_1_0_var &operator= (const PacketHeader_1_0_var &);
PacketHeader_1_0 *operator-> (void);
const PacketHeader_1_0 *operator-> (void) const;
-
+
operator const PacketHeader_1_0 &() const;
operator PacketHeader_1_0 &();
operator PacketHeader_1_0 &() const;
operator PacketHeader_1_0 *&(); // variable-size types only
-
- // in, inout, out, _retn
+
+ // in, inout, out, _retn
const PacketHeader_1_0 &in (void) const;
PacketHeader_1_0 &inout (void);
PacketHeader_1_0 *&out (void);
@@ -309,7 +310,7 @@ TAO_NAMESPACE MIOP
operator PacketHeader_1_0 *&();
PacketHeader_1_0 *&ptr (void);
PacketHeader_1_0 *operator-> (void);
-
+
private:
PacketHeader_1_0 *&ptr_;
// assignment from T_var not allowed
@@ -318,535 +319,220 @@ TAO_NAMESPACE MIOP
TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_PacketHeader_1_0;
- struct Version;
- class Version_var;
-
- struct TAO_PortableGroup_Export Version
- {
-
-#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef Version_var _var_type;
-#endif /* ! __GNUC__ || g++ >= 2.8 */
-
- static void _tao_any_destructor (void*);
-
- CORBA::Octet major;
- CORBA::Octet minor;
- };
-
- class TAO_PortableGroup_Export Version_var
- {
- public:
- Version_var (void); // default constructor
- Version_var (Version *);
- Version_var (const Version_var &); // copy constructor
- Version_var (const Version &); // fixed-size types only
- ~Version_var (void); // destructor
-
- Version_var &operator= (Version *);
- Version_var &operator= (const Version_var &);
- Version_var &operator= (const Version &); // fixed-size types only
- Version *operator-> (void);
- const Version *operator-> (void) const;
-
- operator const Version &() const;
- operator Version &();
- operator Version &() const;
-
- // in, inout, out, _retn
- const Version &in (void) const;
- Version &inout (void);
- Version &out (void);
- Version _retn (void);
- Version *ptr (void) const;
-
- private:
- Version *ptr_;
- };
-
- typedef Version &Version_out;
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_Version;
-
- typedef CORBA::Short IPVersion;
- typedef CORBA::Short_out IPVersion_out;
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IPVersion;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short IPv4;
-
- TAO_NAMESPACE_STORAGE_CLASS const CORBA::Short IPv6;
-
- struct UsingIpv4;
- class UsingIpv4_var;
-
- struct TAO_PortableGroup_Export UsingIpv4
- {
-
-#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef UsingIpv4_var _var_type;
-#endif /* ! __GNUC__ || g++ >= 2.8 */
-
- static void _tao_any_destructor (void*);
-
- CORBA::UShort port;
-
-#if !defined (_MIOP_USINGIPV4_CLASS_D_ADDRESS_CH_)
-#define _MIOP_USINGIPV4_CLASS_D_ADDRESS_CH_
-
- typedef CORBA::Octet _class_d_address[4];
- typedef CORBA::Octet _class_d_address_slice;
- class TAO_PortableGroup_Export _class_d_address_forany
- {
- public:
- _class_d_address_forany (void); // default constructor
- _class_d_address_forany (_class_d_address_slice *, CORBA::Boolean nocopy=0);
- _class_d_address_forany (const _class_d_address_forany &); // copy constructor
- ~_class_d_address_forany (void); // destructor
- static void _tao_any_destructor (void*);
- _class_d_address_forany &operator= (_class_d_address_slice *);
- _class_d_address_forany &operator= (const _class_d_address_forany &);
-
- _class_d_address_slice &operator[] (CORBA::ULong index);
- const _class_d_address_slice &operator[] (CORBA::ULong index) const;
- operator _class_d_address_slice * const &() const;
- operator _class_d_address_slice *&();
- // in, inout, out, _retn
- const _class_d_address_slice *in (void) const;
- _class_d_address_slice *inout (void);
- _class_d_address_slice *&out (void);
- _class_d_address_slice *_retn (void);
- _class_d_address_slice *ptr (void) const;
- CORBA::Boolean nocopy (void) const;
- private:
- /* friend class CORBA_Any; */
- _class_d_address_slice *ptr_;
- CORBA::Boolean nocopy_;
- };
-
- static _class_d_address_slice *_class_d_address_alloc (void);
- static void _class_d_address_free (_class_d_address_slice *_tao_slice);
- static _class_d_address_slice *_class_d_address_dup (const _class_d_address_slice *_tao_slice);
- static void _class_d_address_copy (_class_d_address_slice *_tao_to, const _class_d_address_slice *_tao_from);
+ typedef GIOP::Version Version;
+// @@ Frank: Version_var and Version_out are commented out as they
+// do not exist in tao/GIOPC.h. Hopefully, this doesn't become an
+// issue.
+// typedef GIOP::Version_var Version_var;
+// typedef GIOP::Version_out Version_out;
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_Version;
-#endif /* end #if !defined */
-
- _class_d_address class_d_address;
- };
+ typedef char * Address;
+ typedef CORBA::String_var Address_var;
+ typedef CORBA::String_out Address_out;
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_Address;
- class TAO_PortableGroup_Export UsingIpv4_var
- {
- public:
- UsingIpv4_var (void); // default constructor
- UsingIpv4_var (UsingIpv4 *);
- UsingIpv4_var (const UsingIpv4_var &); // copy constructor
- UsingIpv4_var (const UsingIpv4 &); // fixed-size types only
- ~UsingIpv4_var (void); // destructor
-
- UsingIpv4_var &operator= (UsingIpv4 *);
- UsingIpv4_var &operator= (const UsingIpv4_var &);
- UsingIpv4_var &operator= (const UsingIpv4 &); // fixed-size types only
- UsingIpv4 *operator-> (void);
- const UsingIpv4 *operator-> (void) const;
-
- operator const UsingIpv4 &() const;
- operator UsingIpv4 &();
- operator UsingIpv4 &() const;
-
- // in, inout, out, _retn
- const UsingIpv4 &in (void) const;
- UsingIpv4 &inout (void);
- UsingIpv4 &out (void);
- UsingIpv4 _retn (void);
- UsingIpv4 *ptr (void) const;
-
- private:
- UsingIpv4 *ptr_;
- };
-
- typedef UsingIpv4 &UsingIpv4_out;
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_UsingIpv4;
-
- struct UsingIpv6;
- class UsingIpv6_var;
-
- struct TAO_PortableGroup_Export UsingIpv6
+ struct UIPMC_ProfileBody;
+ class UIPMC_ProfileBody_var;
+
+ struct TAO_PortableGroup_Export UIPMC_ProfileBody
{
#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef UsingIpv6_var _var_type;
+ typedef UIPMC_ProfileBody_var _var_type;
#endif /* ! __GNUC__ || g++ >= 2.8 */
static void _tao_any_destructor (void*);
- CORBA::ULong port;
- TAO_String_Manager address;
- };
-
- class TAO_PortableGroup_Export UsingIpv6_var
- {
- public:
- UsingIpv6_var (void); // default constructor
- UsingIpv6_var (UsingIpv6 *);
- UsingIpv6_var (const UsingIpv6_var &); // copy constructor
- ~UsingIpv6_var (void); // destructor
-
- UsingIpv6_var &operator= (UsingIpv6 *);
- UsingIpv6_var &operator= (const UsingIpv6_var &);
- UsingIpv6 *operator-> (void);
- const UsingIpv6 *operator-> (void) const;
-
- operator const UsingIpv6 &() const;
- operator UsingIpv6 &();
- operator UsingIpv6 &() const;
- operator UsingIpv6 *&(); // variable-size types only
-
- // in, inout, out, _retn
- const UsingIpv6 &in (void) const;
- UsingIpv6 &inout (void);
- UsingIpv6 *&out (void);
- UsingIpv6 *_retn (void);
- UsingIpv6 *ptr (void) const;
-
- private:
- UsingIpv6 *ptr_;
- };
-
- class TAO_PortableGroup_Export UsingIpv6_out
- {
- public:
- UsingIpv6_out (UsingIpv6 *&);
- UsingIpv6_out (UsingIpv6_var &);
- UsingIpv6_out (const UsingIpv6_out &);
- UsingIpv6_out &operator= (const UsingIpv6_out &);
- UsingIpv6_out &operator= (UsingIpv6 *);
- operator UsingIpv6 *&();
- UsingIpv6 *&ptr (void);
- UsingIpv6 *operator-> (void);
-
- private:
- UsingIpv6 *&ptr_;
- // assignment from T_var not allowed
- void operator= (const UsingIpv6_var &);
- };
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_UsingIpv6;
-
-
-#if !defined (_MIOP_IPENDPOINTS_CH_)
-#define _MIOP_IPENDPOINTS_CH_
-
- class IPEndpoints;
- class IPEndpoints_var;
-
- class TAO_PortableGroup_Export IPEndpoints
- {
- public:
- IPEndpoints (void);
- IPEndpoints (const IPEndpoints &);
- ~IPEndpoints (void);
- static void _tao_any_destructor (void*);
-
- IPEndpoints &operator= (const IPEndpoints &);
-
- void _d (CORBA::Short);
- CORBA::Short _d (void) const;
-
-#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef IPEndpoints_var _var_type;
-#endif /* ! __GNUC__ || g++ >= 2.8 */
- void ipv4_endpoints (const ACE_NESTED_CLASS (MIOP, UsingIpv4) &);// set
- const ACE_NESTED_CLASS (MIOP, UsingIpv4) &ipv4_endpoints (void) const; // get method (read only)
- ACE_NESTED_CLASS (MIOP, UsingIpv4) &ipv4_endpoints (void); // get method (read/write only)
-
- void ipv6_endpoints (const ACE_NESTED_CLASS (MIOP, UsingIpv6) &);// set
- const ACE_NESTED_CLASS (MIOP, UsingIpv6) &ipv6_endpoints (void) const; // get method (read only)
- ACE_NESTED_CLASS (MIOP, UsingIpv6) &ipv6_endpoints (void); // get method (read/write only)
-
- void _default ();
- private:
- CORBA::Short disc_;
- CORBA::Short holder_;
- union
- {
- ACE_NESTED_CLASS (MIOP, UsingIpv4) ipv4_endpoints_;
- ACE_NESTED_CLASS (MIOP, UsingIpv6) *ipv6_endpoints_;
- } u_; // end of union
- // TAO extensions
- void _reset (CORBA::Short, CORBA::Boolean);
- // Frees any allocated storage
-
- void _reset (void);
- // calls the above reset with finalize=1
-
- }; // MIOP::IPEndpoints
-
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IPEndpoints;
-
-
-#endif /* end #if !defined */
-
-
-#if !defined (_MIOP_IPENDPOINTS___VAR_CH_)
-#define _MIOP_IPENDPOINTS___VAR_CH_
-
- class TAO_PortableGroup_Export IPEndpoints_var
- {
- public:
- IPEndpoints_var (void); // default constructor
- IPEndpoints_var (IPEndpoints *);
- IPEndpoints_var (const IPEndpoints_var &); // copy constructor
- ~IPEndpoints_var (void); // destructor
-
- IPEndpoints_var &operator= (IPEndpoints *);
- IPEndpoints_var &operator= (const IPEndpoints_var &);
- IPEndpoints *operator-> (void);
- const IPEndpoints *operator-> (void) const;
-
- operator const IPEndpoints &() const;
- operator IPEndpoints &();
- operator IPEndpoints &() const;
- operator IPEndpoints *&(); // variable-size types only
-
- // in, inout, out, _retn
- const IPEndpoints &in (void) const;
- IPEndpoints &inout (void);
- IPEndpoints *&out (void);
- IPEndpoints *_retn (void);
- IPEndpoints *ptr(void) const;
-
- private:
- IPEndpoints *ptr_;
- };
-
-
-#endif /* end #if !defined */
-
-
-#if !defined (_MIOP_IPENDPOINTS___OUT_CH_)
-#define _MIOP_IPENDPOINTS___OUT_CH_
-
- class TAO_PortableGroup_Export IPEndpoints_out
- {
- public:
- IPEndpoints_out (IPEndpoints *&);
- IPEndpoints_out (IPEndpoints_var &);
- IPEndpoints_out (const IPEndpoints_out &);
- IPEndpoints_out &operator= (const IPEndpoints_out &);
- IPEndpoints_out &operator= (IPEndpoints *);
- operator IPEndpoints *&();
- IPEndpoints *&ptr (void);
- IPEndpoints *operator-> (void);
-
- private:
- IPEndpoints *&ptr_;
- // assignment from T_var not allowed
- void operator= (const IPEndpoints_var &);
- };
-
-
-#endif /* end #if !defined */
-
- struct UIPMC_ProfileBody;
- class UIPMC_ProfileBody_var;
-
- struct TAO_PortableGroup_Export UIPMC_ProfileBody
- {
-
-#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef UIPMC_ProfileBody_var _var_type;
-#endif /* ! __GNUC__ || g++ >= 2.8 */
-
- static void _tao_any_destructor (void*);
-
- ACE_NESTED_CLASS (MIOP, Version) miop_version;
- ACE_NESTED_CLASS (MIOP, IPEndpoints) endpoints;
+ ACE_NESTED_CLASS (MIOP, Version) miop_version;
+ TAO_String_Manager the_address;
+ CORBA::Short the_port;
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_UNBOUNDED_SEQUENCE_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CH_)
#define __TAO_UNBOUNDED_SEQUENCE_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CH_
- class TAO_EXPORT_NESTED_MACRO _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent : public TAO_Unbounded_Base_Sequence
- {
- public:
- // = Initialization and termination methods.
-
- _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (void); // Default constructor.
- _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (CORBA::ULong maximum);
- _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (CORBA::ULong maximum,
- CORBA::ULong length,
- IOP::TaggedComponent *data,
- CORBA::Boolean release = 0);
- _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (const _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &rhs);
- _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &operator= (const _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &rhs);
- virtual ~_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (void); // Dtor.
- // = Accessors.
- IOP::TaggedComponent &operator[] (CORBA::ULong i);
- const IOP::TaggedComponent &operator[] (CORBA::ULong i) const;
- // = Static operations.
- static IOP::TaggedComponent *allocbuf (CORBA::ULong size);
- static void freebuf (IOP::TaggedComponent *buffer);
- virtual void _allocate_buffer (CORBA::ULong length);
- virtual void _deallocate_buffer (void);
- // Implement the TAO_Base_Sequence methods (see Sequence.h)
-
- IOP::TaggedComponent *get_buffer (CORBA::Boolean orphan = 0);
- const IOP::TaggedComponent *get_buffer (void) const;
- void replace (CORBA::ULong max,
- CORBA::ULong length,
- IOP::TaggedComponent *data,
- CORBA::Boolean release);
- };
+ class TAO_EXPORT_NESTED_MACRO _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent : public TAO_Unbounded_Base_Sequence
+ {
+ public:
+ // = Initialization and termination methods.
+
+ _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (void); // Default constructor.
+ _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (CORBA::ULong maximum);
+ _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (CORBA::ULong maximum,
+ CORBA::ULong length,
+ IOP::TaggedComponent *data,
+ CORBA::Boolean release = 0);
+ _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (const _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &rhs);
+ _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &operator= (const _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &rhs);
+ virtual ~_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (void); // Dtor.
+ // = Accessors.
+ IOP::TaggedComponent &operator[] (CORBA::ULong i);
+ const IOP::TaggedComponent &operator[] (CORBA::ULong i) const;
+ // = Static operations.
+ static IOP::TaggedComponent *allocbuf (CORBA::ULong size);
+ static void freebuf (IOP::TaggedComponent *buffer);
+ virtual void _allocate_buffer (CORBA::ULong length);
+ virtual void _deallocate_buffer (void);
+ // Implement the TAO_Base_Sequence methods (see Sequence.h)
+
+ IOP::TaggedComponent *get_buffer (CORBA::Boolean orphan = 0);
+ const IOP::TaggedComponent *get_buffer (void) const;
+ void replace (CORBA::ULong max,
+ CORBA::ULong length,
+ IOP::TaggedComponent *data,
+ CORBA::Boolean release);
+ };
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
-
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+
#if !defined (_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CH_)
#define _MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CH_
- class _tao_seq_TaggedComponent;
- class _tao_seq_TaggedComponent_var;
-
- // *************************************************************
- // _tao_seq_TaggedComponent
- // *************************************************************
-
- class TAO_PortableGroup_Export _tao_seq_TaggedComponent : public
+ class _tao_seq_TaggedComponent;
+ class _tao_seq_TaggedComponent_var;
+
+ // *************************************************************
+ // _tao_seq_TaggedComponent
+ // *************************************************************
+
+ class TAO_PortableGroup_Export _tao_seq_TaggedComponent : public
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent
+ _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent
#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_Sequence<IOP::TaggedComponent>
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
- {
- public:
- _tao_seq_TaggedComponent (void); // default ctor
- _tao_seq_TaggedComponent (CORBA::ULong max); // uses max size
- _tao_seq_TaggedComponent (
- CORBA::ULong max,
- CORBA::ULong length,
- IOP::TaggedComponent *buffer,
- CORBA::Boolean release = 0
- );
- _tao_seq_TaggedComponent (const _tao_seq_TaggedComponent &); // copy ctor
- ~_tao_seq_TaggedComponent (void);
- static void _tao_any_destructor (void*);
+ TAO_Unbounded_Sequence<IOP::TaggedComponent>
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+ {
+ public:
+ _tao_seq_TaggedComponent (void); // default ctor
+ _tao_seq_TaggedComponent (CORBA::ULong max); // uses max size
+ _tao_seq_TaggedComponent (
+ CORBA::ULong max,
+ CORBA::ULong length,
+ IOP::TaggedComponent *buffer,
+ CORBA::Boolean release = 0
+ );
+ _tao_seq_TaggedComponent (const _tao_seq_TaggedComponent &); // copy ctor
+ ~_tao_seq_TaggedComponent (void);
+ static void _tao_any_destructor (void*);
#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef _tao_seq_TaggedComponent_var _var_type;
+ typedef _tao_seq_TaggedComponent_var _var_type;
#endif /* ! __GNUC__ || g++ >= 2.8 */
- };
-
+ };
+
#endif /* end #if !defined */
#if !defined (__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef _tao_seq_TaggedComponent _components_seq;
- #endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */
+ typedef _tao_seq_TaggedComponent _components_seq;
+ #endif /* ! __GNUC__ || ACE_HAS_GNUG_PRE_2_8 */
- _tao_seq_TaggedComponent components;
- };
-
- class TAO_PortableGroup_Export UIPMC_ProfileBody_var
- {
- public:
- UIPMC_ProfileBody_var (void); // default constructor
- UIPMC_ProfileBody_var (UIPMC_ProfileBody *);
- UIPMC_ProfileBody_var (const UIPMC_ProfileBody_var &); // copy constructor
- ~UIPMC_ProfileBody_var (void); // destructor
-
- UIPMC_ProfileBody_var &operator= (UIPMC_ProfileBody *);
- UIPMC_ProfileBody_var &operator= (const UIPMC_ProfileBody_var &);
- UIPMC_ProfileBody *operator-> (void);
- const UIPMC_ProfileBody *operator-> (void) const;
-
- operator const UIPMC_ProfileBody &() const;
- operator UIPMC_ProfileBody &();
- operator UIPMC_ProfileBody &() const;
- operator UIPMC_ProfileBody *&(); // variable-size types only
-
- // in, inout, out, _retn
- const UIPMC_ProfileBody &in (void) const;
- UIPMC_ProfileBody &inout (void);
- UIPMC_ProfileBody *&out (void);
- UIPMC_ProfileBody *_retn (void);
- UIPMC_ProfileBody *ptr (void) const;
+ _tao_seq_TaggedComponent components;
+ };
- private:
- UIPMC_ProfileBody *ptr_;
- };
+ class TAO_PortableGroup_Export UIPMC_ProfileBody_var
+ {
+ public:
+ UIPMC_ProfileBody_var (void); // default constructor
+ UIPMC_ProfileBody_var (UIPMC_ProfileBody *);
+ UIPMC_ProfileBody_var (const UIPMC_ProfileBody_var &); // copy constructor
+ ~UIPMC_ProfileBody_var (void); // destructor
+
+ UIPMC_ProfileBody_var &operator= (UIPMC_ProfileBody *);
+ UIPMC_ProfileBody_var &operator= (const UIPMC_ProfileBody_var &);
+ UIPMC_ProfileBody *operator-> (void);
+ const UIPMC_ProfileBody *operator-> (void) const;
+
+ operator const UIPMC_ProfileBody &() const;
+ operator UIPMC_ProfileBody &();
+ operator UIPMC_ProfileBody &() const;
+ operator UIPMC_ProfileBody *&(); // variable-size types only
+
+ // in, inout, out, _retn
+ const UIPMC_ProfileBody &in (void) const;
+ UIPMC_ProfileBody &inout (void);
+ UIPMC_ProfileBody *&out (void);
+ UIPMC_ProfileBody *_retn (void);
+ UIPMC_ProfileBody *ptr (void) const;
- class TAO_PortableGroup_Export UIPMC_ProfileBody_out
- {
- public:
- UIPMC_ProfileBody_out (UIPMC_ProfileBody *&);
- UIPMC_ProfileBody_out (UIPMC_ProfileBody_var &);
- UIPMC_ProfileBody_out (const UIPMC_ProfileBody_out &);
- UIPMC_ProfileBody_out &operator= (const UIPMC_ProfileBody_out &);
- UIPMC_ProfileBody_out &operator= (UIPMC_ProfileBody *);
- operator UIPMC_ProfileBody *&();
- UIPMC_ProfileBody *&ptr (void);
- UIPMC_ProfileBody *operator-> (void);
+ private:
+ UIPMC_ProfileBody *ptr_;
+ };
- private:
- UIPMC_ProfileBody *&ptr_;
- // assignment from T_var not allowed
- void operator= (const UIPMC_ProfileBody_var &);
- };
+ class TAO_PortableGroup_Export UIPMC_ProfileBody_out
+ {
+ public:
+ UIPMC_ProfileBody_out (UIPMC_ProfileBody *&);
+ UIPMC_ProfileBody_out (UIPMC_ProfileBody_var &);
+ UIPMC_ProfileBody_out (const UIPMC_ProfileBody_out &);
+ UIPMC_ProfileBody_out &operator= (const UIPMC_ProfileBody_out &);
+ UIPMC_ProfileBody_out &operator= (UIPMC_ProfileBody *);
+ operator UIPMC_ProfileBody *&();
+ UIPMC_ProfileBody *&ptr (void);
+ UIPMC_ProfileBody *operator-> (void);
+
+ private:
+ UIPMC_ProfileBody *&ptr_;
+ // assignment from T_var not allowed
+ void operator= (const UIPMC_ProfileBody_var &);
+ };
- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_UIPMC_ProfileBody;
+ TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_UIPMC_ProfileBody;
#if !defined (_MIOP_MULTICASTOBJECTGROUPFACTORY___PTR_CH_)
#define _MIOP_MULTICASTOBJECTGROUPFACTORY___PTR_CH_
- class MulticastObjectGroupFactory;
- typedef MulticastObjectGroupFactory *MulticastObjectGroupFactory_ptr;
-
+ class MulticastObjectGroupFactory;
+ typedef MulticastObjectGroupFactory *MulticastObjectGroupFactory_ptr;
+
#endif /* end #if !defined */
#if !defined (_MIOP_MULTICASTOBJECTGROUPFACTORY___VAR_CH_)
#define _MIOP_MULTICASTOBJECTGROUPFACTORY___VAR_CH_
- class TAO_PortableGroup_Export MulticastObjectGroupFactory_var : public TAO_Base_var
- {
- public:
- MulticastObjectGroupFactory_var (void); // default constructor
- MulticastObjectGroupFactory_var (MulticastObjectGroupFactory_ptr p) : ptr_ (p) {}
- MulticastObjectGroupFactory_var (const MulticastObjectGroupFactory_var &); // copy constructor
- ~MulticastObjectGroupFactory_var (void); // destructor
-
- MulticastObjectGroupFactory_var &operator= (MulticastObjectGroupFactory_ptr);
- MulticastObjectGroupFactory_var &operator= (const MulticastObjectGroupFactory_var &);
- MulticastObjectGroupFactory_ptr operator-> (void) const;
-
- operator const MulticastObjectGroupFactory_ptr &() const;
- operator MulticastObjectGroupFactory_ptr &();
- // in, inout, out, _retn
- MulticastObjectGroupFactory_ptr in (void) const;
- MulticastObjectGroupFactory_ptr &inout (void);
- MulticastObjectGroupFactory_ptr &out (void);
- MulticastObjectGroupFactory_ptr _retn (void);
- MulticastObjectGroupFactory_ptr ptr (void) const;
-
- // Hooks used by template sequence and object manager classes
- // for non-defined forward declared interfaces.
- static MulticastObjectGroupFactory_ptr duplicate (MulticastObjectGroupFactory_ptr);
- static void release (MulticastObjectGroupFactory_ptr);
- static MulticastObjectGroupFactory_ptr nil (void);
- static MulticastObjectGroupFactory_ptr narrow (CORBA::Object *, CORBA::Environment &);
- static CORBA::Object * upcast (void *);
-
- private:
- MulticastObjectGroupFactory_ptr ptr_;
- // Unimplemented - prevents widening assignment.
- MulticastObjectGroupFactory_var (const TAO_Base_var &rhs);
- MulticastObjectGroupFactory_var &operator= (const TAO_Base_var &rhs);
- };
+ class TAO_PortableGroup_Export MulticastObjectGroupFactory_var : public TAO_Base_var
+ {
+ public:
+ MulticastObjectGroupFactory_var (void); // default constructor
+ MulticastObjectGroupFactory_var (MulticastObjectGroupFactory_ptr p) : ptr_ (p) {}
+ MulticastObjectGroupFactory_var (const MulticastObjectGroupFactory_var &); // copy constructor
+ ~MulticastObjectGroupFactory_var (void); // destructor
+
+ MulticastObjectGroupFactory_var &operator= (MulticastObjectGroupFactory_ptr);
+ MulticastObjectGroupFactory_var &operator= (const MulticastObjectGroupFactory_var &);
+ MulticastObjectGroupFactory_ptr operator-> (void) const;
+
+ operator const MulticastObjectGroupFactory_ptr &() const;
+ operator MulticastObjectGroupFactory_ptr &();
+ // in, inout, out, _retn
+ MulticastObjectGroupFactory_ptr in (void) const;
+ MulticastObjectGroupFactory_ptr &inout (void);
+ MulticastObjectGroupFactory_ptr &out (void);
+ MulticastObjectGroupFactory_ptr _retn (void);
+ MulticastObjectGroupFactory_ptr ptr (void) const;
+
+ // Hooks used by template sequence and object manager classes
+ // for non-defined forward declared interfaces.
+ static MulticastObjectGroupFactory_ptr duplicate (MulticastObjectGroupFactory_ptr);
+ static void release (MulticastObjectGroupFactory_ptr);
+ static MulticastObjectGroupFactory_ptr nil (void);
+ static MulticastObjectGroupFactory_ptr narrow (CORBA::Object *, CORBA::Environment &);
+ static CORBA::Object * upcast (void *);
+
+ private:
+ MulticastObjectGroupFactory_ptr ptr_;
+ // Unimplemented - prevents widening assignment.
+ MulticastObjectGroupFactory_var (const TAO_Base_var &rhs);
+ MulticastObjectGroupFactory_var &operator= (const TAO_Base_var &rhs);
+ };
#endif /* end #if !defined */
@@ -855,22 +541,22 @@ TAO_NAMESPACE MIOP
#if !defined (_MIOP_MULTICASTOBJECTGROUPFACTORY___OUT_CH_)
#define _MIOP_MULTICASTOBJECTGROUPFACTORY___OUT_CH_
- class TAO_PortableGroup_Export MulticastObjectGroupFactory_out
- {
- public:
- MulticastObjectGroupFactory_out (MulticastObjectGroupFactory_ptr &);
- MulticastObjectGroupFactory_out (MulticastObjectGroupFactory_var &);
- MulticastObjectGroupFactory_out (const MulticastObjectGroupFactory_out &);
- MulticastObjectGroupFactory_out &operator= (const MulticastObjectGroupFactory_out &);
- MulticastObjectGroupFactory_out &operator= (const MulticastObjectGroupFactory_var &);
- MulticastObjectGroupFactory_out &operator= (MulticastObjectGroupFactory_ptr);
- operator MulticastObjectGroupFactory_ptr &();
- MulticastObjectGroupFactory_ptr &ptr (void);
- MulticastObjectGroupFactory_ptr operator-> (void);
-
- private:
- MulticastObjectGroupFactory_ptr &ptr_;
- };
+ class TAO_PortableGroup_Export MulticastObjectGroupFactory_out
+ {
+ public:
+ MulticastObjectGroupFactory_out (MulticastObjectGroupFactory_ptr &);
+ MulticastObjectGroupFactory_out (MulticastObjectGroupFactory_var &);
+ MulticastObjectGroupFactory_out (const MulticastObjectGroupFactory_out &);
+ MulticastObjectGroupFactory_out &operator= (const MulticastObjectGroupFactory_out &);
+ MulticastObjectGroupFactory_out &operator= (const MulticastObjectGroupFactory_var &);
+ MulticastObjectGroupFactory_out &operator= (MulticastObjectGroupFactory_ptr);
+ operator MulticastObjectGroupFactory_ptr &();
+ MulticastObjectGroupFactory_ptr &ptr (void);
+ MulticastObjectGroupFactory_ptr operator-> (void);
+
+ private:
+ MulticastObjectGroupFactory_ptr &ptr_;
+ };
#endif /* end #if !defined */
@@ -879,210 +565,184 @@ TAO_NAMESPACE MIOP
#if !defined (_MIOP_MULTICASTOBJECTGROUPFACTORY_CH_)
#define _MIOP_MULTICASTOBJECTGROUPFACTORY_CH_
- class TAO_PortableGroup_Export MulticastObjectGroupFactory : public virtual CORBA_Object
- {
- public:
- #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef MulticastObjectGroupFactory_ptr _ptr_type;
- typedef MulticastObjectGroupFactory_var _var_type;
- #endif /* ! __GNUC__ || g++ >= 2.8 */
-
- // the static operations
- static MulticastObjectGroupFactory_ptr _duplicate (MulticastObjectGroupFactory_ptr obj);
- static MulticastObjectGroupFactory_ptr _narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- static MulticastObjectGroupFactory_ptr _unchecked_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- static MulticastObjectGroupFactory_ptr _nil (void)
- {
- return (MulticastObjectGroupFactory_ptr)0;
- }
+ class TAO_PortableGroup_Export MulticastObjectGroupFactory : public virtual CORBA_Object
+ {
+ public:
+ #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
+ typedef MulticastObjectGroupFactory_ptr _ptr_type;
+ typedef MulticastObjectGroupFactory_var _var_type;
+ #endif /* ! __GNUC__ || g++ >= 2.8 */
+
+ // the static operations
+ static MulticastObjectGroupFactory_ptr _duplicate (MulticastObjectGroupFactory_ptr obj);
+ static MulticastObjectGroupFactory_ptr _narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static MulticastObjectGroupFactory_ptr _unchecked_narrow (
+ CORBA::Object_ptr obj,
+ CORBA::Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
+ static MulticastObjectGroupFactory_ptr _nil (void)
+ {
+ return (MulticastObjectGroupFactory_ptr)0;
+ }
#if !defined (_MIOP_MULTICASTOBJECTGROUPFACTORY_IPADDR_CH_)
#define _MIOP_MULTICASTOBJECTGROUPFACTORY_IPADDR_CH_
- typedef CORBA::Octet ipaddr[4];
- typedef CORBA::Octet ipaddr_slice;
- class TAO_PortableGroup_Export ipaddr_var
- {
- public:
- ipaddr_var (void); // default constructor
- ipaddr_var (ipaddr_slice *);
- ipaddr_var (const ipaddr_var &); // copy constructor
- ~ipaddr_var (void); // destructor
-
- ipaddr_var &operator= (ipaddr_slice *);
- ipaddr_var &operator= (const ipaddr_var &);
-
- ipaddr_slice &operator[] (CORBA::ULong index);
- const ipaddr_slice &operator[] (CORBA::ULong index) const;
- operator ipaddr_slice * const &() const;
- //Calls ipaddr_copy (used in sequences of ipaddr).
- static void copy (ipaddr_slice *_tao_to, const ipaddr_slice *_tao_from);
- // in, inout, out, _retn
- const ipaddr_slice *in (void) const;
- ipaddr_slice *inout (void);
- ipaddr_slice *&out (void);
- ipaddr_slice *_retn (void);
- ipaddr_slice *ptr (void) const;
- private:
- ipaddr_slice *ptr_;
- };
-
- typedef ipaddr ipaddr_out;
- class TAO_PortableGroup_Export ipaddr_forany
- {
- public:
- ipaddr_forany (void); // default constructor
- ipaddr_forany (ipaddr_slice *, CORBA::Boolean nocopy=0);
- ipaddr_forany (const ipaddr_forany &); // copy constructor
- ~ipaddr_forany (void); // destructor
- static void _tao_any_destructor (void*);
- ipaddr_forany &operator= (ipaddr_slice *);
- ipaddr_forany &operator= (const ipaddr_forany &);
-
- ipaddr_slice &operator[] (CORBA::ULong index);
- const ipaddr_slice &operator[] (CORBA::ULong index) const;
- operator ipaddr_slice * const &() const;
- operator ipaddr_slice *&();
- // in, inout, out, _retn
- const ipaddr_slice *in (void) const;
- ipaddr_slice *inout (void);
- ipaddr_slice *&out (void);
- ipaddr_slice *_retn (void);
- ipaddr_slice *ptr (void) const;
- CORBA::Boolean nocopy (void) const;
- private:
- /* friend class CORBA_Any; */
- ipaddr_slice *ptr_;
- CORBA::Boolean nocopy_;
- };
+ typedef CORBA::Octet ipaddr[4];
+ typedef CORBA::Octet ipaddr_slice;
+ class TAO_PortableGroup_Export ipaddr_var
+ {
+ public:
+ ipaddr_var (void); // default constructor
+ ipaddr_var (ipaddr_slice *);
+ ipaddr_var (const ipaddr_var &); // copy constructor
+ ~ipaddr_var (void); // destructor
+
+ ipaddr_var &operator= (ipaddr_slice *);
+ ipaddr_var &operator= (const ipaddr_var &);
+
+ ipaddr_slice &operator[] (CORBA::ULong index);
+ const ipaddr_slice &operator[] (CORBA::ULong index) const;
+ operator ipaddr_slice * const &() const;
+ //Calls ipaddr_copy (used in sequences of ipaddr).
+ static void copy (ipaddr_slice *_tao_to, const ipaddr_slice *_tao_from);
+ // in, inout, out, _retn
+ const ipaddr_slice *in (void) const;
+ ipaddr_slice *inout (void);
+ ipaddr_slice *&out (void);
+ ipaddr_slice *_retn (void);
+ ipaddr_slice *ptr (void) const;
+ private:
+ ipaddr_slice *ptr_;
+ };
- static ipaddr_slice *ipaddr_alloc (void);
- static void ipaddr_free (ipaddr_slice *_tao_slice);
- static ipaddr_slice *ipaddr_dup (const ipaddr_slice *_tao_slice);
- static void ipaddr_copy (ipaddr_slice *_tao_to, const ipaddr_slice *_tao_from);
+ typedef ipaddr ipaddr_out;
+ class TAO_PortableGroup_Export ipaddr_forany
+ {
+ public:
+ ipaddr_forany (void); // default constructor
+ ipaddr_forany (ipaddr_slice *, CORBA::Boolean nocopy=0);
+ ipaddr_forany (const ipaddr_forany &); // copy constructor
+ ~ipaddr_forany (void); // destructor
+ static void _tao_any_destructor (void*);
+ ipaddr_forany &operator= (ipaddr_slice *);
+ ipaddr_forany &operator= (const ipaddr_forany &);
+
+ ipaddr_slice &operator[] (CORBA::ULong index);
+ const ipaddr_slice &operator[] (CORBA::ULong index) const;
+ operator ipaddr_slice * const &() const;
+ operator ipaddr_slice *&();
+ // in, inout, out, _retn
+ const ipaddr_slice *in (void) const;
+ ipaddr_slice *inout (void);
+ ipaddr_slice *&out (void);
+ ipaddr_slice *_retn (void);
+ ipaddr_slice *ptr (void) const;
+ CORBA::Boolean nocopy (void) const;
+ private:
+ /* friend class CORBA_Any; */
+ ipaddr_slice *ptr_;
+ CORBA::Boolean nocopy_;
+ };
+ static ipaddr_slice *ipaddr_alloc (void);
+ static void ipaddr_free (ipaddr_slice *_tao_slice);
+ static ipaddr_slice *ipaddr_dup (const ipaddr_slice *_tao_slice);
+ static void ipaddr_copy (ipaddr_slice *_tao_to, const ipaddr_slice *_tao_from);
+
#endif /* end #if !defined */
- virtual CORBA::Object_ptr create_group (
- const char * type_id,
- const MIOP::MulticastObjectGroupFactory::ipaddr class_d_address,
- CORBA::UShort port,
- 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:
- MulticastObjectGroupFactory ();
-
- virtual ~MulticastObjectGroupFactory (void);
- private:
- MulticastObjectGroupFactory (const MulticastObjectGroupFactory &);
- void operator= (const MulticastObjectGroupFactory &);
- };
+ virtual CORBA::Object_ptr create_group (
+ const char * type_id,
+ const MIOP::MulticastObjectGroupFactory::ipaddr class_d_address,
+ CORBA::UShort port,
+ 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:
+ MulticastObjectGroupFactory ();
+
+ virtual ~MulticastObjectGroupFactory (void);
+ private:
+ MulticastObjectGroupFactory (const MulticastObjectGroupFactory &);
+ void operator= (const MulticastObjectGroupFactory &);
+ };
#endif /* end #if !defined */
- }
+}
TAO_NAMESPACE_CLOSE // module MIOP
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UniqueId &); // copying version
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UniqueId*); // noncopying version
- TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UniqueId *&); // deprecated
+TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UniqueId &); // copying version
+TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UniqueId*); // noncopying version
+TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UniqueId *&); // deprecated
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::UniqueId *&);
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::PacketHeader_1_0 &); // copying version
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::PacketHeader_1_0*); // noncopying version
- TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::PacketHeader_1_0 *&); // deprecated
+TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::PacketHeader_1_0 &); // copying version
+TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::PacketHeader_1_0*); // noncopying version
+TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::PacketHeader_1_0 *&); // deprecated
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::PacketHeader_1_0 *&);
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::Version &); // copying version
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::Version*); // noncopying version
- TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::Version *&); // deprecated
-TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::Version *&);
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UsingIpv4 &); // copying version
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UsingIpv4*); // noncopying version
- TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UsingIpv4 *&); // deprecated
-TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::UsingIpv4 *&);
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UsingIpv6 &); // copying version
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UsingIpv6*); // noncopying version
- TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UsingIpv6 *&); // deprecated
-TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::UsingIpv6 *&);
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::IPEndpoints &); // copying version
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::IPEndpoints*); // noncopying version
- TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::IPEndpoints *&); // deprecated
-TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::IPEndpoints *&);
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UIPMC_ProfileBody &); // copying version
- TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UIPMC_ProfileBody*); // noncopying version
- TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UIPMC_ProfileBody *&); // deprecated
+TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UIPMC_ProfileBody &); // copying version
+TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UIPMC_ProfileBody*); // noncopying version
+TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UIPMC_ProfileBody *&); // deprecated
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::UIPMC_ProfileBody *&);
- #ifndef __ACE_INLINE__
+#ifndef __ACE_INLINE__
#if !defined _TAO_CDR_OP_MIOP_UniqueId_H_
- #define _TAO_CDR_OP_MIOP_UniqueId_H_
+#define _TAO_CDR_OP_MIOP_UniqueId_H_
TAO_PortableGroup_Export CORBA::Boolean operator<< (
- TAO_OutputCDR &,
- const MIOP::UniqueId &
- );
- TAO_PortableGroup_Export CORBA::Boolean operator>> (
- TAO_InputCDR &,
- MIOP::UniqueId &
- );
+ TAO_OutputCDR &,
+ const MIOP::UniqueId &
+ );
+TAO_PortableGroup_Export CORBA::Boolean operator>> (
+ TAO_InputCDR &,
+ MIOP::UniqueId &
+ );
#endif /* _TAO_CDR_OP_MIOP_UniqueId_H_ */
- TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::PacketHeader_1_0 &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::PacketHeader_1_0 &);
+TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::PacketHeader_1_0 &);
+TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::PacketHeader_1_0 &);
TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::PacketHeader_1_0::_magic_forany &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::PacketHeader_1_0::_magic_forany &);
- TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::Version &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::Version &);
- TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::UsingIpv4 &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::UsingIpv4 &);
-TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::UsingIpv4::_class_d_address_forany &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::UsingIpv4::_class_d_address_forany &);
- TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::UsingIpv6 &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::UsingIpv6 &);
- TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::IPEndpoints &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::IPEndpoints &);
- TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::UIPMC_ProfileBody &);
- TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::UIPMC_ProfileBody &);
+TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::PacketHeader_1_0::_magic_forany &);
+TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::UIPMC_ProfileBody &);
+TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::UIPMC_ProfileBody &);
#if !defined _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent_H_
- #define _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent_H_
+#define _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent_H_
TAO_PortableGroup_Export CORBA::Boolean operator<< (
- TAO_OutputCDR &,
- const MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent &
- );
- TAO_PortableGroup_Export CORBA::Boolean operator>> (
- TAO_InputCDR &,
- MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent &
- );
+ TAO_OutputCDR &,
+ const MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent &
+ );
+TAO_PortableGroup_Export CORBA::Boolean operator>> (
+ TAO_InputCDR &,
+ MIOP::UIPMC_ProfileBody::_tao_seq_TaggedComponent &
+ );
#endif /* _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent_H_ */
- #endif /* __ACE_INLINE__ */
+#endif /* __ACE_INLINE__ */
#if defined (__ACE_INLINE__)
diff --git a/TAO/tao/PortableGroup/miopC.i b/TAO/tao/PortableGroup/miopC.i
index 30efff8800b..c0d9c2e596d 100644
--- a/TAO/tao/PortableGroup/miopC.i
+++ b/TAO/tao/PortableGroup/miopC.i
@@ -21,7 +21,7 @@
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_BOUNDED_SEQUENCE_MIOP_UNIQUEID_252_CI_)
#define __TAO_BOUNDED_SEQUENCE_MIOP_UNIQUEID_252_CI_
@@ -33,20 +33,20 @@
ACE_NEW_RETURN (retval, CORBA::Octet[252U], 0);
return retval;
}
-
- ACE_INLINE void
+
+ ACE_INLINE void
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::freebuf (CORBA::Octet *buffer) // Free the sequence.
{
delete [] buffer;
}
-
+
ACE_INLINE
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::_TAO_Bounded_Sequence_MIOP_UniqueId_252 (void)
// Default constructor.
: TAO_Bounded_Base_Sequence (252U, 0)
{
}
-
+
ACE_INLINE
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::_TAO_Bounded_Sequence_MIOP_UniqueId_252 (CORBA::ULong length,
CORBA::Octet *data,
@@ -55,7 +55,7 @@
: TAO_Bounded_Base_Sequence (252U, length, data, release)
{
}
-
+
ACE_INLINE
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::_TAO_Bounded_Sequence_MIOP_UniqueId_252 (const _TAO_Bounded_Sequence_MIOP_UniqueId_252 &rhs)
// Copy constructor.
@@ -64,12 +64,12 @@
if (rhs.buffer_ != 0)
{
CORBA::Octet *tmp1 = _TAO_Bounded_Sequence_MIOP_UniqueId_252::allocbuf (252U);
-
+
CORBA::Octet * const tmp2 = ACE_reinterpret_cast (CORBA::Octet * ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
tmp1[i] = tmp2[i];
-
+
this->buffer_ = tmp1;
}
else
@@ -77,31 +77,31 @@
this->buffer_ = 0;
}
}
-
+
ACE_INLINE MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252 &
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::operator= (const _TAO_Bounded_Sequence_MIOP_UniqueId_252 &rhs)
- // Assignment operator.
+ // Assignment operator.
{
if (this == &rhs)
return *this;
-
+
if (this->release_ && this->buffer_ != 0)
{
}
else
this->buffer_ = _TAO_Bounded_Sequence_MIOP_UniqueId_252::allocbuf (rhs.maximum_);
-
+
TAO_Bounded_Base_Sequence::operator= (rhs);
-
+
CORBA::Octet* tmp1 = ACE_reinterpret_cast (CORBA::Octet *, this->buffer_);
CORBA::Octet* const tmp2 = ACE_reinterpret_cast (CORBA::Octet * ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
tmp1[i] = tmp2[i];
-
+
return *this;
}
-
+
// = Accessors.
ACE_INLINE CORBA::Octet &
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::operator[] (CORBA::ULong i)// operator []
@@ -117,7 +117,7 @@
const CORBA::Octet* tmp = ACE_reinterpret_cast (const CORBA::Octet* ACE_CAST_CONST,this->buffer_);
return tmp[i];
}
-
+
ACE_INLINE CORBA::Octet *
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::get_buffer (CORBA::Boolean orphan)
{
@@ -151,14 +151,14 @@
}
return result;
}
-
+
ACE_INLINE const CORBA::Octet *
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::get_buffer (void) const
{
return ACE_reinterpret_cast(const CORBA::Octet * ACE_CAST_CONST, this->buffer_);
}
-
- ACE_INLINE void
+
+ ACE_INLINE void
MIOP::_TAO_Bounded_Sequence_MIOP_UniqueId_252::replace (CORBA::ULong max,
CORBA::ULong length,
CORBA::Octet *data,
@@ -174,11 +174,11 @@
this->buffer_ = data;
this->release_ = release;
}
-
+
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
#if !defined (_MIOP_UNIQUEID_CI_)
#define _MIOP_UNIQUEID_CI_
@@ -241,7 +241,7 @@ MIOP::UniqueId_var::operator= (const ::MIOP::UniqueId_var &p)
{
UniqueId *deep_copy =
new UniqueId (*p.ptr_);
-
+
if (deep_copy != 0)
{
UniqueId *tmp = deep_copy;
@@ -251,7 +251,7 @@ MIOP::UniqueId_var::operator= (const ::MIOP::UniqueId_var &p)
}
}
}
-
+
return *this;
}
@@ -279,20 +279,20 @@ MIOP::UniqueId_var::operator-> (void)
return this->ptr_;
}
-ACE_INLINE
+ACE_INLINE
MIOP::UniqueId_var::operator const ::MIOP::UniqueId &() const // cast
{
return *this->ptr_;
}
-ACE_INLINE
-MIOP::UniqueId_var::operator ::MIOP::UniqueId &() // cast
+ACE_INLINE
+MIOP::UniqueId_var::operator ::MIOP::UniqueId &() // cast
{
return *this->ptr_;
}
-ACE_INLINE
-MIOP::UniqueId_var::operator ::MIOP::UniqueId &() const // cast
+ACE_INLINE
+MIOP::UniqueId_var::operator ::MIOP::UniqueId &() const // cast
{
return *this->ptr_;
}
@@ -321,7 +321,7 @@ MIOP::UniqueId_var::inout (void)
return *this->ptr_;
}
-// mapping for variable size
+// mapping for variable size
ACE_INLINE ::MIOP::UniqueId *&
MIOP::UniqueId_var::out (void)
{
@@ -382,7 +382,7 @@ MIOP::UniqueId_out::operator= (UniqueId *p)
return *this;
}
-ACE_INLINE
+ACE_INLINE
MIOP::UniqueId_out::operator ::MIOP::UniqueId *&() // cast
{
return this->ptr_;
@@ -460,7 +460,7 @@ MIOP::PacketHeader_1_0_var::operator= (const ::MIOP::PacketHeader_1_0_var &p)
{
PacketHeader_1_0 *deep_copy =
new PacketHeader_1_0 (*p.ptr_);
-
+
if (deep_copy != 0)
{
PacketHeader_1_0 *tmp = deep_copy;
@@ -470,7 +470,7 @@ MIOP::PacketHeader_1_0_var::operator= (const ::MIOP::PacketHeader_1_0_var &p)
}
}
}
-
+
return *this;
}
@@ -493,20 +493,20 @@ MIOP::PacketHeader_1_0_var::operator const ::MIOP::PacketHeader_1_0 &() const //
}
ACE_INLINE
-MIOP::PacketHeader_1_0_var::operator ::MIOP::PacketHeader_1_0 &() // cast
+MIOP::PacketHeader_1_0_var::operator ::MIOP::PacketHeader_1_0 &() // cast
{
return *this->ptr_;
}
ACE_INLINE
-MIOP::PacketHeader_1_0_var::operator ::MIOP::PacketHeader_1_0 &() const // cast
+MIOP::PacketHeader_1_0_var::operator ::MIOP::PacketHeader_1_0 &() const // cast
{
return *this->ptr_;
}
// variable-size types only
ACE_INLINE
-MIOP::PacketHeader_1_0_var::operator ::MIOP::PacketHeader_1_0 *&() // cast
+MIOP::PacketHeader_1_0_var::operator ::MIOP::PacketHeader_1_0 *&() // cast
{
return this->ptr_;
}
@@ -523,7 +523,7 @@ MIOP::PacketHeader_1_0_var::inout (void)
return *this->ptr_;
}
-// mapping for variable size
+// mapping for variable size
ACE_INLINE ::MIOP::PacketHeader_1_0 *&
MIOP::PacketHeader_1_0_var::out (void)
{
@@ -584,7 +584,7 @@ MIOP::PacketHeader_1_0_out::operator= (PacketHeader_1_0 *p)
return *this;
}
-ACE_INLINE
+ACE_INLINE
MIOP::PacketHeader_1_0_out::operator ::MIOP::PacketHeader_1_0 *&() // cast
{
return this->ptr_;
@@ -658,26 +658,26 @@ MIOP::PacketHeader_1_0::_magic_forany::operator= (const MIOP::PacketHeader_1_0::
return *this;
}
-ACE_INLINE
+ACE_INLINE
MIOP::PacketHeader_1_0::_magic_forany::operator MIOP::PacketHeader_1_0::_magic_slice * const &() const // cast
{
return this->ptr_;
}
-ACE_INLINE
-MIOP::PacketHeader_1_0::_magic_forany::operator MIOP::PacketHeader_1_0::_magic_slice *&() // cast
+ACE_INLINE
+MIOP::PacketHeader_1_0::_magic_forany::operator MIOP::PacketHeader_1_0::_magic_slice *&() // cast
{
return this->ptr_;
}
-ACE_INLINE
+ACE_INLINE
const MIOP::PacketHeader_1_0::_magic_slice &
MIOP::PacketHeader_1_0::_magic_forany::operator[] (CORBA::ULong index) const
{
return ACE_const_cast (const MIOP::PacketHeader_1_0::_magic_slice &, this->ptr_[index]);
}
-ACE_INLINE
+ACE_INLINE
MIOP::PacketHeader_1_0::_magic_slice &
MIOP::PacketHeader_1_0::_magic_forany::operator[] (CORBA::ULong index)
{
@@ -721,897 +721,6 @@ MIOP::PacketHeader_1_0::_magic_forany::nocopy (void) const
}
// *************************************************************
-// Inline operations for class MIOP::Version_var
-// *************************************************************
-
-ACE_INLINE
-MIOP::Version_var::Version_var (void) // default constructor
- : ptr_ (0)
-{}
-
-ACE_INLINE
-MIOP::Version_var::Version_var (Version *p)
- : ptr_ (p)
-{}
-
-ACE_INLINE
-MIOP::Version_var::Version_var (const ::MIOP::Version_var &p) // copy constructor
-{
- if (p.ptr_)
- ACE_NEW (this->ptr_, ::MIOP::Version (*p.ptr_));
- else
- this->ptr_ = 0;
-}
-
-// fixed-size types only
-ACE_INLINE
-MIOP::Version_var::Version_var (const ::MIOP::Version &p)
-{
- ACE_NEW (this->ptr_, ::MIOP::Version (p));
-}
-
-ACE_INLINE
-MIOP::Version_var::~Version_var (void) // destructor
-{
- delete this->ptr_;
-}
-
-ACE_INLINE MIOP::Version_var &
-MIOP::Version_var::operator= (Version *p)
-{
- delete this->ptr_;
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE ::MIOP::Version_var &
-MIOP::Version_var::operator= (const ::MIOP::Version_var &p)
-{
- if (this != &p)
- {
- if (p.ptr_ == 0)
- {
- delete this->ptr_;
- this->ptr_ = 0;
- }
- else
- {
- Version *deep_copy =
- new Version (*p.ptr_);
-
- if (deep_copy != 0)
- {
- Version *tmp = deep_copy;
- deep_copy = this->ptr_;
- this->ptr_ = tmp;
- delete deep_copy;
- }
- }
- }
-
- return *this;
-}
-
-// fixed-size types only
-ACE_INLINE MIOP::Version_var &
-MIOP::Version_var::operator= (const ::MIOP::Version &p)
-{
- if (this->ptr_ != &p)
- {
- delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_, ::MIOP::Version (p), *this);
- }
- return *this;
-}
-
-ACE_INLINE const ::MIOP::Version *
-MIOP::Version_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::Version *
-MIOP::Version_var::operator-> (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-MIOP::Version_var::operator const ::MIOP::Version &() const // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::Version_var::operator ::MIOP::Version &() // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::Version_var::operator ::MIOP::Version &() const // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE const ::MIOP::Version &
-MIOP::Version_var::in (void) const
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::Version &
-MIOP::Version_var::inout (void)
-{
- return *this->ptr_;
-}
-
-// mapping for fixed size
-ACE_INLINE ::MIOP::Version &
-MIOP::Version_var::out (void)
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::Version
-MIOP::Version_var::_retn (void)
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::Version *
-MIOP::Version_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-// *************************************************************
-// Inline operations for class MIOP::UsingIpv4_var
-// *************************************************************
-
-ACE_INLINE
-MIOP::UsingIpv4_var::UsingIpv4_var (void) // default constructor
- : ptr_ (0)
-{}
-
-ACE_INLINE
-MIOP::UsingIpv4_var::UsingIpv4_var (UsingIpv4 *p)
- : ptr_ (p)
-{}
-
-ACE_INLINE
-MIOP::UsingIpv4_var::UsingIpv4_var (const ::MIOP::UsingIpv4_var &p) // copy constructor
-{
- if (p.ptr_)
- ACE_NEW (this->ptr_, ::MIOP::UsingIpv4 (*p.ptr_));
- else
- this->ptr_ = 0;
-}
-
-// fixed-size types only
-ACE_INLINE
-MIOP::UsingIpv4_var::UsingIpv4_var (const ::MIOP::UsingIpv4 &p)
-{
- ACE_NEW (this->ptr_, ::MIOP::UsingIpv4 (p));
-}
-
-ACE_INLINE
-MIOP::UsingIpv4_var::~UsingIpv4_var (void) // destructor
-{
- delete this->ptr_;
-}
-
-ACE_INLINE MIOP::UsingIpv4_var &
-MIOP::UsingIpv4_var::operator= (UsingIpv4 *p)
-{
- delete this->ptr_;
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE ::MIOP::UsingIpv4_var &
-MIOP::UsingIpv4_var::operator= (const ::MIOP::UsingIpv4_var &p)
-{
- if (this != &p)
- {
- if (p.ptr_ == 0)
- {
- delete this->ptr_;
- this->ptr_ = 0;
- }
- else
- {
- UsingIpv4 *deep_copy =
- new UsingIpv4 (*p.ptr_);
-
- if (deep_copy != 0)
- {
- UsingIpv4 *tmp = deep_copy;
- deep_copy = this->ptr_;
- this->ptr_ = tmp;
- delete deep_copy;
- }
- }
- }
-
- return *this;
-}
-
-// fixed-size types only
-ACE_INLINE MIOP::UsingIpv4_var &
-MIOP::UsingIpv4_var::operator= (const ::MIOP::UsingIpv4 &p)
-{
- if (this->ptr_ != &p)
- {
- delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_, ::MIOP::UsingIpv4 (p), *this);
- }
- return *this;
-}
-
-ACE_INLINE const ::MIOP::UsingIpv4 *
-MIOP::UsingIpv4_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv4 *
-MIOP::UsingIpv4_var::operator-> (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv4_var::operator const ::MIOP::UsingIpv4 &() const // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv4_var::operator ::MIOP::UsingIpv4 &() // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv4_var::operator ::MIOP::UsingIpv4 &() const // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE const ::MIOP::UsingIpv4 &
-MIOP::UsingIpv4_var::in (void) const
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv4 &
-MIOP::UsingIpv4_var::inout (void)
-{
- return *this->ptr_;
-}
-
-// mapping for fixed size
-ACE_INLINE ::MIOP::UsingIpv4 &
-MIOP::UsingIpv4_var::out (void)
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv4
-MIOP::UsingIpv4_var::_retn (void)
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv4 *
-MIOP::UsingIpv4_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-// *************************************************************
-// Inline operations for class MIOP::UsingIpv4::_class_d_address_forany
-// *************************************************************
-
-ACE_INLINE
-MIOP::UsingIpv4::_class_d_address_forany::_class_d_address_forany (void) // default constructor
- : ptr_ (0),
- nocopy_ (0)
-{}
-
-ACE_INLINE
-MIOP::UsingIpv4::_class_d_address_forany::_class_d_address_forany (MIOP::UsingIpv4::_class_d_address_slice *p, CORBA::Boolean nocopy)
- : ptr_ (p),
- nocopy_ (nocopy)
-{}
-
-ACE_INLINE
-MIOP::UsingIpv4::_class_d_address_forany::_class_d_address_forany (const MIOP::UsingIpv4::_class_d_address_forany &p) // copy constructor
-{
- this->ptr_ = MIOP::UsingIpv4::_class_d_address_dup (ACE_const_cast (const MIOP::UsingIpv4::_class_d_address_slice *, p.ptr_));
- this->nocopy_ = p.nocopy_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv4::_class_d_address_forany::~_class_d_address_forany (void) // destructor
-{
- // don't do anything
-}
-
-ACE_INLINE MIOP::UsingIpv4::_class_d_address_forany &
-MIOP::UsingIpv4::_class_d_address_forany::operator= (MIOP::UsingIpv4::_class_d_address_slice *p)
-{
- // is what we own the same that is being assigned to us?
- if (this->ptr_ != p)
- {
- // delete our stuff and assume ownership of p
- MIOP::UsingIpv4::_class_d_address_free (this->ptr_);
- this->ptr_ = p;
- }
- return *this;
-}
-
-ACE_INLINE MIOP::UsingIpv4::_class_d_address_forany &
-MIOP::UsingIpv4::_class_d_address_forany::operator= (const MIOP::UsingIpv4::_class_d_address_forany &p)
-{
- if (this != &p)
- {
- // not assigning to ourselves
- MIOP::UsingIpv4::_class_d_address_free (this->ptr_); // free old stuff
- // deep copy
- this->ptr_ = MIOP::UsingIpv4::_class_d_address_dup (ACE_const_cast (const MIOP::UsingIpv4::_class_d_address_slice *, p.ptr_));
- this->nocopy_ = p.nocopy_;
- }
- return *this;
-}
-
-ACE_INLINE
-MIOP::UsingIpv4::_class_d_address_forany::operator MIOP::UsingIpv4::_class_d_address_slice * const &() const // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv4::_class_d_address_forany::operator MIOP::UsingIpv4::_class_d_address_slice *&() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-const MIOP::UsingIpv4::_class_d_address_slice &
-MIOP::UsingIpv4::_class_d_address_forany::operator[] (CORBA::ULong index) const
-{
- return ACE_const_cast (const MIOP::UsingIpv4::_class_d_address_slice &, this->ptr_[index]);
-}
-
-ACE_INLINE
-MIOP::UsingIpv4::_class_d_address_slice &
-MIOP::UsingIpv4::_class_d_address_forany::operator[] (CORBA::ULong index)
-{
- return this->ptr_[index];
-}
-
-ACE_INLINE const MIOP::UsingIpv4::_class_d_address_slice *
-MIOP::UsingIpv4::_class_d_address_forany::in (void) const
-{
- return ACE_const_cast (const MIOP::UsingIpv4::_class_d_address_slice *, this->ptr_);
-}
-
-ACE_INLINE MIOP::UsingIpv4::_class_d_address_slice *
-MIOP::UsingIpv4::_class_d_address_forany::inout (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE MIOP::UsingIpv4::_class_d_address_slice * &
-MIOP::UsingIpv4::_class_d_address_forany::out (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE MIOP::UsingIpv4::_class_d_address_slice *
-MIOP::UsingIpv4::_class_d_address_forany::_retn (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE MIOP::UsingIpv4::_class_d_address_slice *
-MIOP::UsingIpv4::_class_d_address_forany::ptr (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE CORBA::Boolean
-MIOP::UsingIpv4::_class_d_address_forany::nocopy (void) const
-{
- return this->nocopy_;
-}
-
-// *************************************************************
-// Inline operations for class MIOP::UsingIpv6_var
-// *************************************************************
-
-ACE_INLINE
-MIOP::UsingIpv6_var::UsingIpv6_var (void) // default constructor
- : ptr_ (0)
-{}
-
-ACE_INLINE
-MIOP::UsingIpv6_var::UsingIpv6_var (UsingIpv6 *p)
- : ptr_ (p)
-{}
-
-ACE_INLINE
-MIOP::UsingIpv6_var::UsingIpv6_var (const ::MIOP::UsingIpv6_var &p) // copy constructor
-{
- if (p.ptr_)
- ACE_NEW (this->ptr_, ::MIOP::UsingIpv6 (*p.ptr_));
- else
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-MIOP::UsingIpv6_var::~UsingIpv6_var (void) // destructor
-{
- delete this->ptr_;
-}
-
-ACE_INLINE MIOP::UsingIpv6_var &
-MIOP::UsingIpv6_var::operator= (UsingIpv6 *p)
-{
- delete this->ptr_;
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE ::MIOP::UsingIpv6_var &
-MIOP::UsingIpv6_var::operator= (const ::MIOP::UsingIpv6_var &p)
-{
- if (this != &p)
- {
- if (p.ptr_ == 0)
- {
- delete this->ptr_;
- this->ptr_ = 0;
- }
- else
- {
- UsingIpv6 *deep_copy =
- new UsingIpv6 (*p.ptr_);
-
- if (deep_copy != 0)
- {
- UsingIpv6 *tmp = deep_copy;
- deep_copy = this->ptr_;
- this->ptr_ = tmp;
- delete deep_copy;
- }
- }
- }
-
- return *this;
-}
-
-ACE_INLINE const ::MIOP::UsingIpv6 *
-MIOP::UsingIpv6_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv6 *
-MIOP::UsingIpv6_var::operator-> (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv6_var::operator const ::MIOP::UsingIpv6 &() const // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv6_var::operator ::MIOP::UsingIpv6 &() // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::UsingIpv6_var::operator ::MIOP::UsingIpv6 &() const // cast
-{
- return *this->ptr_;
-}
-
-// variable-size types only
-ACE_INLINE
-MIOP::UsingIpv6_var::operator ::MIOP::UsingIpv6 *&() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE const ::MIOP::UsingIpv6 &
-MIOP::UsingIpv6_var::in (void) const
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv6 &
-MIOP::UsingIpv6_var::inout (void)
-{
- return *this->ptr_;
-}
-
-// mapping for variable size
-ACE_INLINE ::MIOP::UsingIpv6 *&
-MIOP::UsingIpv6_var::out (void)
-{
- delete this->ptr_;
- this->ptr_ = 0;
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv6 *
-MIOP::UsingIpv6_var::_retn (void)
-{
- ::MIOP::UsingIpv6 *tmp = this->ptr_;
- this->ptr_ = 0;
- return tmp;
-}
-
-ACE_INLINE ::MIOP::UsingIpv6 *
-MIOP::UsingIpv6_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-// *************************************************************
-// Inline operations for class MIOP::UsingIpv6_out
-// *************************************************************
-
-ACE_INLINE
-MIOP::UsingIpv6_out::UsingIpv6_out (::MIOP::UsingIpv6 *&p)
- : ptr_ (p)
-{
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-MIOP::UsingIpv6_out::UsingIpv6_out (UsingIpv6_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- delete this->ptr_;
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-MIOP::UsingIpv6_out::UsingIpv6_out (const ::MIOP::UsingIpv6_out &p) // copy constructor
- : ptr_ (ACE_const_cast (UsingIpv6_out&, p).ptr_)
-{}
-
-ACE_INLINE MIOP::UsingIpv6_out &
-MIOP::UsingIpv6_out::operator= (const ::MIOP::UsingIpv6_out &p)
-{
- this->ptr_ = ACE_const_cast (UsingIpv6_out&, p).ptr_;
- return *this;
-}
-
-ACE_INLINE MIOP::UsingIpv6_out &
-MIOP::UsingIpv6_out::operator= (UsingIpv6 *p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-MIOP::UsingIpv6_out::operator ::MIOP::UsingIpv6 *&() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv6 *&
-MIOP::UsingIpv6_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::UsingIpv6 *
-MIOP::UsingIpv6_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-// *************************************************************
-// Inline operations for union MIOP::IPEndpoints
-// *************************************************************
-
-// this reset method is used by the decoding engine
-ACE_INLINE void
-MIOP::IPEndpoints::_reset (void)
-{
- this->_reset (this->disc_, 1);
- ACE_OS::memcpy (&this->u_, 0, sizeof (this->u_));
-}
-
-// the implicit _default () method
-ACE_INLINE void
-MIOP::IPEndpoints::_default ()
-{
- this->disc_ = -32768;
-}
-
-// accessor to set the discriminant
-ACE_INLINE void
-MIOP::IPEndpoints::_d (CORBA::Short discval)
-{
- this->disc_ = discval;
-}
-// accessor to get the discriminant
-ACE_INLINE CORBA::Short
-MIOP::IPEndpoints::_d (void) const
-{
- return this->disc_;
-}
-
-// accessor to set the member
-ACE_INLINE void
-MIOP::IPEndpoints::ipv4_endpoints (const MIOP::UsingIpv4 &val)
-{
- // set the discriminant val
- this->_reset (0, 0);
- this->disc_ = 0;
- this->u_.ipv4_endpoints_ = val;
-}
-
-// readonly get method
-ACE_INLINE const MIOP::UsingIpv4 &
-MIOP::IPEndpoints::ipv4_endpoints (void) const
-{
- return this->u_.ipv4_endpoints_;
-}
-
-// read/write get method
-ACE_INLINE MIOP::UsingIpv4 &
-MIOP::IPEndpoints::ipv4_endpoints (void)
-{
- return this->u_.ipv4_endpoints_;
-}
-
-// accessor to set the member
-ACE_INLINE void
-MIOP::IPEndpoints::ipv6_endpoints (const MIOP::UsingIpv6 &val)
-{
- // set the discriminant val
- this->_reset (1, 0);
- this->disc_ = 1;
- ACE_NEW (
- this->u_.ipv6_endpoints_,
- MIOP::UsingIpv6 (val)
- );
-}
-
-// readonly get method
-ACE_INLINE const MIOP::UsingIpv6 &
-MIOP::IPEndpoints::ipv6_endpoints (void) const
-{
- return *this->u_.ipv6_endpoints_;
-}
-
-// read/write get method
-ACE_INLINE MIOP::UsingIpv6 &
-MIOP::IPEndpoints::ipv6_endpoints (void)
-{
- return *this->u_.ipv6_endpoints_;
-}
-
-
-#if !defined (_MIOP_IPENDPOINTS___VAR_CI_)
-#define _MIOP_IPENDPOINTS___VAR_CI_
-
-// *************************************************************
-// Inline operations for class MIOP::IPEndpoints_var
-// *************************************************************
-
-ACE_INLINE
-MIOP::IPEndpoints_var::IPEndpoints_var (void) // default constructor
- : ptr_ (0)
-{}
-
-ACE_INLINE
-MIOP::IPEndpoints_var::IPEndpoints_var (IPEndpoints *p)
- : ptr_ (p)
-{}
-
-ACE_INLINE
-MIOP::IPEndpoints_var::IPEndpoints_var (const ::MIOP::IPEndpoints_var &p) // copy constructor
-{
- if (p.ptr_)
- ACE_NEW (this->ptr_, ::MIOP::IPEndpoints (*p.ptr_));
- else
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-MIOP::IPEndpoints_var::~IPEndpoints_var (void) // destructor
-{
- delete this->ptr_;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints_var &
-MIOP::IPEndpoints_var::operator= (IPEndpoints *p)
-{
- delete this->ptr_;
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints_var &
-MIOP::IPEndpoints_var::operator= (const ::MIOP::IPEndpoints_var &p)
-{
- if (this != &p)
- {
- if (p.ptr_ == 0)
- {
- delete this->ptr_;
- this->ptr_ = 0;
- }
- else
- {
- IPEndpoints *deep_copy =
- new IPEndpoints (*p.ptr_);
-
- if (deep_copy != 0)
- {
- IPEndpoints *tmp = deep_copy;
- deep_copy = this->ptr_;
- this->ptr_ = tmp;
- delete deep_copy;
- }
- }
- }
-
- return *this;
-}
-
-ACE_INLINE const ::MIOP::IPEndpoints *
-MIOP::IPEndpoints_var::operator-> (void) const
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints *
-MIOP::IPEndpoints_var::operator-> (void)
-{
- return this->ptr_;
-}
-
-ACE_INLINE
-MIOP::IPEndpoints_var::operator const ::MIOP::IPEndpoints &() const // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::IPEndpoints_var::operator ::MIOP::IPEndpoints &() // cast
-{
- return *this->ptr_;
-}
-
-ACE_INLINE
-MIOP::IPEndpoints_var::operator ::MIOP::IPEndpoints &() const// cast
-{
- return *this->ptr_;
-}
-
-// variable-size types only
-ACE_INLINE
-MIOP::IPEndpoints_var::operator ::MIOP::IPEndpoints *&() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE const ::MIOP::IPEndpoints &
-MIOP::IPEndpoints_var::in (void) const
-{
- return *this->ptr_;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints &
-MIOP::IPEndpoints_var::inout (void)
-{
- return *this->ptr_;
-}
-
-// mapping for variable size
-ACE_INLINE ::MIOP::IPEndpoints *&
-MIOP::IPEndpoints_var::out (void)
-{
- delete this->ptr_;
- this->ptr_ = 0;
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints *
-MIOP::IPEndpoints_var::_retn (void)
-{
- ::MIOP::IPEndpoints *tmp = this->ptr_;
- this->ptr_ = 0;
- return tmp;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints *
-MIOP::IPEndpoints_var::ptr (void) const
-{
- return this->ptr_;
-}
-
-
-#endif /* end #if !defined */
-
-
-#if !defined (_MIOP_IPENDPOINTS___OUT_CI_)
-#define _MIOP_IPENDPOINTS___OUT_CI_
-
-// *************************************************************
-// Inline operations for class MIOP::IPEndpoints_out
-// *************************************************************
-
-ACE_INLINE
-MIOP::IPEndpoints_out::IPEndpoints_out (IPEndpoints *&p)
- : ptr_ (p)
-{
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-MIOP::IPEndpoints_out::IPEndpoints_out (IPEndpoints_var &p) // constructor from _var
- : ptr_ (p.out ())
-{
- delete this->ptr_;
- this->ptr_ = 0;
-}
-
-ACE_INLINE
-MIOP::IPEndpoints_out::IPEndpoints_out (const ::MIOP::IPEndpoints_out &p) // copy constructor
- : ptr_ (ACE_const_cast (IPEndpoints_out&, p).ptr_)
-{}
-
-ACE_INLINE ::MIOP::IPEndpoints_out &
-MIOP::IPEndpoints_out::operator= (const ::MIOP::IPEndpoints_out &p)
-{
- this->ptr_ = ACE_const_cast (IPEndpoints_out&, p).ptr_;
- return *this;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints_out &
-MIOP::IPEndpoints_out::operator= (IPEndpoints *p)
-{
- this->ptr_ = p;
- return *this;
-}
-
-ACE_INLINE
-MIOP::IPEndpoints_out::operator ::MIOP::IPEndpoints *&() // cast
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints *&
-MIOP::IPEndpoints_out::ptr (void) // ptr
-{
- return this->ptr_;
-}
-
-ACE_INLINE ::MIOP::IPEndpoints *
-MIOP::IPEndpoints_out::operator-> (void)
-{
- return this->ptr_;
-}
-
-
-#endif /* end #if !defined */
-
-// *************************************************************
// Inline operations for class MIOP::UIPMC_ProfileBody_var
// *************************************************************
@@ -1662,7 +771,7 @@ MIOP::UIPMC_ProfileBody_var::operator= (const ::MIOP::UIPMC_ProfileBody_var &p)
{
UIPMC_ProfileBody *deep_copy =
new UIPMC_ProfileBody (*p.ptr_);
-
+
if (deep_copy != 0)
{
UIPMC_ProfileBody *tmp = deep_copy;
@@ -1672,7 +781,7 @@ MIOP::UIPMC_ProfileBody_var::operator= (const ::MIOP::UIPMC_ProfileBody_var &p)
}
}
}
-
+
return *this;
}
@@ -1695,20 +804,20 @@ MIOP::UIPMC_ProfileBody_var::operator const ::MIOP::UIPMC_ProfileBody &() const
}
ACE_INLINE
-MIOP::UIPMC_ProfileBody_var::operator ::MIOP::UIPMC_ProfileBody &() // cast
+MIOP::UIPMC_ProfileBody_var::operator ::MIOP::UIPMC_ProfileBody &() // cast
{
return *this->ptr_;
}
ACE_INLINE
-MIOP::UIPMC_ProfileBody_var::operator ::MIOP::UIPMC_ProfileBody &() const // cast
+MIOP::UIPMC_ProfileBody_var::operator ::MIOP::UIPMC_ProfileBody &() const // cast
{
return *this->ptr_;
}
// variable-size types only
ACE_INLINE
-MIOP::UIPMC_ProfileBody_var::operator ::MIOP::UIPMC_ProfileBody *&() // cast
+MIOP::UIPMC_ProfileBody_var::operator ::MIOP::UIPMC_ProfileBody *&() // cast
{
return this->ptr_;
}
@@ -1725,7 +834,7 @@ MIOP::UIPMC_ProfileBody_var::inout (void)
return *this->ptr_;
}
-// mapping for variable size
+// mapping for variable size
ACE_INLINE ::MIOP::UIPMC_ProfileBody *&
MIOP::UIPMC_ProfileBody_var::out (void)
{
@@ -1786,7 +895,7 @@ MIOP::UIPMC_ProfileBody_out::operator= (UIPMC_ProfileBody *p)
return *this;
}
-ACE_INLINE
+ACE_INLINE
MIOP::UIPMC_ProfileBody_out::operator ::MIOP::UIPMC_ProfileBody *&() // cast
{
return this->ptr_;
@@ -1806,7 +915,7 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
-
+
#if !defined (__TAO_UNBOUNDED_SEQUENCE_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CI_)
#define __TAO_UNBOUNDED_SEQUENCE_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_TAGGEDCOMPONENT_CI_
@@ -1819,24 +928,24 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
ACE_NEW_RETURN (retval, IOP::TaggedComponent[size], 0);
return retval;
}
-
+
ACE_INLINE void MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::freebuf (IOP::TaggedComponent *buffer)
// Free the sequence.
{
delete [] buffer;
}
-
+
ACE_INLINE
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (void) // Default constructor.
{
}
-
+
ACE_INLINE
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (CORBA::ULong maximum) // Constructor using a maximum length value.
: TAO_Unbounded_Base_Sequence (maximum, _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::allocbuf (maximum))
{
}
-
+
ACE_INLINE
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (CORBA::ULong maximum,
CORBA::ULong length,
@@ -1845,7 +954,7 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
: TAO_Unbounded_Base_Sequence (maximum, length, data, release)
{
}
-
+
ACE_INLINE
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent (const _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &rhs)
// Copy constructor.
@@ -1855,10 +964,10 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
{
IOP::TaggedComponent *tmp1 = _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::allocbuf (this->maximum_);
IOP::TaggedComponent * const tmp2 = ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
tmp1[i] = tmp2[i];
-
+
this->buffer_ = tmp1;
}
else
@@ -1866,14 +975,14 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
this->buffer_ = 0;
}
}
-
+
ACE_INLINE MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::operator= (const _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent &rhs)
// Assignment operator.
{
if (this == &rhs)
return *this;
-
+
if (this->release_)
{
if (this->maximum_ < rhs.maximum_)
@@ -1886,18 +995,18 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
}
else
this->buffer_ = _TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::allocbuf (rhs.maximum_);
-
+
TAO_Unbounded_Base_Sequence::operator= (rhs);
-
+
IOP::TaggedComponent *tmp1 = ACE_reinterpret_cast (IOP::TaggedComponent *, this->buffer_);
IOP::TaggedComponent * const tmp2 = ACE_reinterpret_cast (IOP::TaggedComponent * ACE_CAST_CONST, rhs.buffer_);
-
+
for (CORBA::ULong i = 0; i < this->length_; ++i)
tmp1[i] = tmp2[i];
-
+
return *this;
}
-
+
// = Accessors.
ACE_INLINE IOP::TaggedComponent &
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::operator[] (CORBA::ULong i)
@@ -1907,7 +1016,7 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
IOP::TaggedComponent* tmp = ACE_reinterpret_cast(IOP::TaggedComponent*,this->buffer_);
return tmp[i];
}
-
+
ACE_INLINE const IOP::TaggedComponent &
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::operator[] (CORBA::ULong i) const
// operator []
@@ -1916,9 +1025,9 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
IOP::TaggedComponent * const tmp = ACE_reinterpret_cast (IOP::TaggedComponent* ACE_CAST_CONST, this->buffer_);
return tmp[i];
}
-
+
// Implement the TAO_Base_Sequence methods (see Sequence.h)
-
+
ACE_INLINE IOP::TaggedComponent *
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::get_buffer (CORBA::Boolean orphan)
{
@@ -1952,13 +1061,13 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
}
return result;
}
-
+
ACE_INLINE const IOP::TaggedComponent *
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::get_buffer (void) const
{
return ACE_reinterpret_cast(const IOP::TaggedComponent * ACE_CAST_CONST, this->buffer_);
}
-
+
ACE_INLINE void
MIOP::UIPMC_ProfileBody::_TAO_Unbounded_Sequence_MIOP_UIPMC_ProfileBody__tao_seq_TaggedComponent::replace (CORBA::ULong max,
CORBA::ULong length,
@@ -1975,11 +1084,11 @@ MIOP::UIPMC_ProfileBody_out::operator-> (void)
this->buffer_ = data;
this->release_ = release;
}
-
+
#endif /* end #if !defined */
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
+#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
// *************************************************************
// Inline operations for class MIOP::MulticastObjectGroupFactory::ipaddr_var
// *************************************************************
@@ -2032,13 +1141,13 @@ MIOP::MulticastObjectGroupFactory::ipaddr_var::operator= (const MIOP::MulticastO
return *this;
}
-ACE_INLINE
+ACE_INLINE
MIOP::MulticastObjectGroupFactory::ipaddr_var::operator MIOP::MulticastObjectGroupFactory::ipaddr_slice * const &() const // cast
{
return this->ptr_;
}
-ACE_INLINE
+ACE_INLINE
const MIOP::MulticastObjectGroupFactory::ipaddr_slice &
MIOP::MulticastObjectGroupFactory::ipaddr_var::operator[] (CORBA::ULong index) const
{
@@ -2050,7 +1159,7 @@ MIOP::MulticastObjectGroupFactory::ipaddr_var::operator[] (CORBA::ULong index) c
#endif /* ACE_HAS_BROKEN_IMPLICIT_CONST_CAST */
}
-ACE_INLINE
+ACE_INLINE
MIOP::MulticastObjectGroupFactory::ipaddr_slice &
MIOP::MulticastObjectGroupFactory::ipaddr_var::operator[] (CORBA::ULong index)
{
@@ -2153,26 +1262,26 @@ MIOP::MulticastObjectGroupFactory::ipaddr_forany::operator= (const MIOP::Multica
return *this;
}
-ACE_INLINE
+ACE_INLINE
MIOP::MulticastObjectGroupFactory::ipaddr_forany::operator MIOP::MulticastObjectGroupFactory::ipaddr_slice * const &() const // cast
{
return this->ptr_;
}
-ACE_INLINE
-MIOP::MulticastObjectGroupFactory::ipaddr_forany::operator MIOP::MulticastObjectGroupFactory::ipaddr_slice *&() // cast
+ACE_INLINE
+MIOP::MulticastObjectGroupFactory::ipaddr_forany::operator MIOP::MulticastObjectGroupFactory::ipaddr_slice *&() // cast
{
return this->ptr_;
}
-ACE_INLINE
+ACE_INLINE
const MIOP::MulticastObjectGroupFactory::ipaddr_slice &
MIOP::MulticastObjectGroupFactory::ipaddr_forany::operator[] (CORBA::ULong index) const
{
return ACE_const_cast (const MIOP::MulticastObjectGroupFactory::ipaddr_slice &, this->ptr_[index]);
}
-ACE_INLINE
+ACE_INLINE
MIOP::MulticastObjectGroupFactory::ipaddr_slice &
MIOP::MulticastObjectGroupFactory::ipaddr_forany::operator[] (CORBA::ULong index)
{
@@ -2267,7 +1376,7 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const MIOP::PacketHea
return 1;
else
return 0;
-
+
}
ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, MIOP::PacketHeader_1_0 &_tao_aggregate)
@@ -2290,171 +1399,7 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, MIOP::PacketHeader_1_0
return 1;
else
return 0;
-
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const MIOP::Version &_tao_aggregate)
-{
- if (
- (strm << CORBA::Any::from_octet (_tao_aggregate.major)) &&
- (strm << CORBA::Any::from_octet (_tao_aggregate.minor))
- )
- return 1;
- else
- return 0;
-
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, MIOP::Version &_tao_aggregate)
-{
- if (
- (strm >> CORBA::Any::to_octet (_tao_aggregate.major)) &&
- (strm >> CORBA::Any::to_octet (_tao_aggregate.minor))
- )
- return 1;
- else
- return 0;
-
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const MIOP::UsingIpv4::_class_d_address_forany &_tao_array)
-{
- return strm.write_octet_array ((const ACE_CDR::Octet *)_tao_array.in (), 4);
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, MIOP::UsingIpv4::_class_d_address_forany &_tao_array)
-{
- return strm.read_octet_array ((ACE_CDR::Octet *) _tao_array.out (), 4);
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const MIOP::UsingIpv4 &_tao_aggregate)
-{
- MIOP::UsingIpv4::_class_d_address_forany _tao_aggregate_class_d_address
- (ACE_const_cast (
- MIOP::UsingIpv4::_class_d_address_slice*,
- _tao_aggregate.class_d_address
- )
- );
- if (
- (strm << _tao_aggregate.port) &&
- (strm << _tao_aggregate_class_d_address)
- )
- return 1;
- else
- return 0;
-
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, MIOP::UsingIpv4 &_tao_aggregate)
-{
- MIOP::UsingIpv4::_class_d_address_forany _tao_aggregate_class_d_address
- (ACE_const_cast (
- MIOP::UsingIpv4::_class_d_address_slice*,
- _tao_aggregate.class_d_address
- )
- );
- if (
- (strm >> _tao_aggregate.port) &&
- (strm >> _tao_aggregate_class_d_address)
- )
- return 1;
- else
- return 0;
-
-}
-
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const MIOP::UsingIpv6 &_tao_aggregate)
-{
- if (
- (strm << _tao_aggregate.port) &&
- (strm << _tao_aggregate.address.in ())
- )
- return 1;
- else
- return 0;
-
-}
-
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, MIOP::UsingIpv6 &_tao_aggregate)
-{
- if (
- (strm >> _tao_aggregate.port) &&
- (strm >> _tao_aggregate.address.out ())
- )
- return 1;
- else
- return 0;
-
-}
-
-ACE_INLINE CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
- const MIOP::IPEndpoints &_tao_union
- )
-{
- if ( !(strm << _tao_union._d ()) )
- {
- return 0;
- }
- CORBA::Boolean result = 1;
- switch (_tao_union._d ())
- {
- case 0:
- {
- result = strm << _tao_union.ipv4_endpoints ();
- }
- break;
- case 1:
- {
- result = strm << _tao_union.ipv6_endpoints ();
- }
- break;
- default:
- break;
- }
- return result;
-}
-
-ACE_INLINE CORBA::Boolean operator>> (
- TAO_InputCDR &strm,
- MIOP::IPEndpoints &_tao_union
- )
-{
- CORBA::Short _tao_discriminant;
- if ( !(strm >> _tao_discriminant) )
- {
- return 0;
- }
- CORBA::Boolean result = 1;
- switch (_tao_discriminant)
- {
- case 0:
- {
- MIOP::UsingIpv4 _tao_union_tmp;
- result = strm >> _tao_union_tmp;
- if (result)
- {
- _tao_union.ipv4_endpoints (_tao_union_tmp);
- _tao_union._d (_tao_discriminant);
- }
- }
- break;
- case 1:
- {
- MIOP::UsingIpv6 _tao_union_tmp;
- result = strm >> _tao_union_tmp;
- if (result)
- {
- _tao_union.ipv6_endpoints (_tao_union_tmp);
- _tao_union._d (_tao_discriminant);
- }
- }
- break;
- default:
- _tao_union._d (_tao_discriminant);
- break;
- }
- return result;
+
}
@@ -2476,25 +1421,27 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const MIOP::UIPMC_Pro
{
if (
(strm << _tao_aggregate.miop_version) &&
- (strm << _tao_aggregate.endpoints) &&
+ (strm << _tao_aggregate.the_address.in ()) &&
+ (strm << _tao_aggregate.the_port) &&
(strm << _tao_aggregate.components)
)
return 1;
else
return 0;
-
+
}
ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, MIOP::UIPMC_ProfileBody &_tao_aggregate)
{
if (
(strm >> _tao_aggregate.miop_version) &&
- (strm >> _tao_aggregate.endpoints) &&
+ (strm >> _tao_aggregate.the_address.out ()) &&
+ (strm >> _tao_aggregate.the_port) &&
(strm >> _tao_aggregate.components)
)
return 1;
else
return 0;
-
+
}
diff --git a/TAO/tao/PortableGroup/miopS.h b/TAO/tao/PortableGroup/miopS.h
index 67da382d880..1c9398e8f2b 100644
--- a/TAO/tao/PortableGroup/miopS.h
+++ b/TAO/tao/PortableGroup/miopS.h
@@ -24,6 +24,7 @@
#include "ace/pre.h"
#include "IOPS.h"
+#include "GIOPS.h"
#include "miopC.h"