rtcorbac.cpp

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 2,576 行 · 第 1/5 页

CPP
2,576
字号
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  33,
  ACE_NTOHL (0x49444c3a),
  ACE_NTOHL (0x6f6d672e),
  ACE_NTOHL (0x6f72672f),
  ACE_NTOHL (0x5254434f),
  ACE_NTOHL (0x5242412f),
  ACE_NTOHL (0x50726f74),
  ACE_NTOHL (0x6f636f6c),
  ACE_NTOHL (0x3a312e30),
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/RTCORBA/Protocol:1.0
    9,
  ACE_NTOHL (0x50726f74),
  ACE_NTOHL (0x6f636f6c),
  ACE_NTOHL (0x0),  // name = Protocol
  3, // member count
    14,
  ACE_NTOHL (0x70726f74),
  ACE_NTOHL (0x6f636f6c),
  ACE_NTOHL (0x5f747970),
  ACE_NTOHL (0x65000000),  // name = protocol_type
    CORBA::tk_alias, // typecode kind for typedefs
  60, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    30,
    ACE_NTOHL (0x49444c3a),
    ACE_NTOHL (0x6f6d672e),
    ACE_NTOHL (0x6f72672f),
    ACE_NTOHL (0x494f502f),
    ACE_NTOHL (0x50726f66),
    ACE_NTOHL (0x696c6549),
    ACE_NTOHL (0x643a312e),
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/IOP/ProfileId:1.0
        10,
    ACE_NTOHL (0x50726f66),
    ACE_NTOHL (0x696c6549),
    ACE_NTOHL (0x64000000),  // name = ProfileId
        CORBA::tk_ulong,


  24,
  ACE_NTOHL (0x6f72625f),
  ACE_NTOHL (0x70726f74),
  ACE_NTOHL (0x6f636f6c),
  ACE_NTOHL (0x5f70726f),
  ACE_NTOHL (0x70657274),
  ACE_NTOHL (0x69657300),  // name = orb_protocol_properties
    CORBA::tk_objref, // typecode kind
  76, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a),
    ACE_NTOHL (0x6f6d672e),
    ACE_NTOHL (0x6f72672f),
    ACE_NTOHL (0x5254434f),
    ACE_NTOHL (0x5242412f),
    ACE_NTOHL (0x50726f74),
    ACE_NTOHL (0x6f636f6c),
    ACE_NTOHL (0x50726f70),
    ACE_NTOHL (0x65727469),
    ACE_NTOHL (0x65733a31),
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/RTCORBA/ProtocolProperties:1.0
        19,
    ACE_NTOHL (0x50726f74),
    ACE_NTOHL (0x6f636f6c),
    ACE_NTOHL (0x50726f70),
    ACE_NTOHL (0x65727469),
    ACE_NTOHL (0x65730000),  // name = ProtocolProperties

  30,
  ACE_NTOHL (0x7472616e),
  ACE_NTOHL (0x73706f72),
  ACE_NTOHL (0x745f7072),
  ACE_NTOHL (0x6f746f63),
  ACE_NTOHL (0x6f6c5f70),
  ACE_NTOHL (0x726f7065),
  ACE_NTOHL (0x72746965),
  ACE_NTOHL (0x73000000),  // name = transport_protocol_properties
    CORBA::tk_objref, // typecode kind
  76, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a),
    ACE_NTOHL (0x6f6d672e),
    ACE_NTOHL (0x6f72672f),
    ACE_NTOHL (0x5254434f),
    ACE_NTOHL (0x5242412f),
    ACE_NTOHL (0x50726f74),
    ACE_NTOHL (0x6f636f6c),
    ACE_NTOHL (0x50726f70),
    ACE_NTOHL (0x65727469),
    ACE_NTOHL (0x65733a31),
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/RTCORBA/ProtocolProperties:1.0
        19,
    ACE_NTOHL (0x50726f74),
    ACE_NTOHL (0x6f636f6c),
    ACE_NTOHL (0x50726f70),
    ACE_NTOHL (0x65727469),
    ACE_NTOHL (0x65730000),  // name = ProtocolProperties

};

static CORBA::TypeCode _tc_TAO_tc_RTCORBA_Protocol (
    CORBA::tk_struct,
    sizeof (_oc_RTCORBA_Protocol),
    (char *) &_oc_RTCORBA_Protocol,
    0,
    sizeof (RTCORBA::Protocol)
  );

namespace RTCORBA
{
  ::CORBA::TypeCode_ptr _tc_Protocol =
    &_tc_TAO_tc_RTCORBA_Protocol;
}

// TAO_IDL - Generated from
// be/be_visitor_structure/structure_cs.cpp:66

void
RTCORBA::Protocol::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  Protocol *_tao_tmp_pointer =
    ACE_static_cast (Protocol *, _tao_void_pointer);
  delete _tao_tmp_pointer;
}

// TAO_IDL - Generated from
// be/be_visitor_sequence/sequence_cs.cpp:65

#if !defined (_RTCORBA_PROTOCOLLIST_CS_)
#define _RTCORBA_PROTOCOLLIST_CS_

RTCORBA::ProtocolList::ProtocolList (void)
{}

RTCORBA::ProtocolList::ProtocolList (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        RTCORBA::Protocol
      >
    (max)
{}

RTCORBA::ProtocolList::ProtocolList (
    CORBA::ULong max,
    CORBA::ULong length,
    RTCORBA::Protocol * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        RTCORBA::Protocol
      >
    (max, length, buffer, release)
{}

RTCORBA::ProtocolList::ProtocolList (
    const ProtocolList &seq
  )
  : TAO_Unbounded_Sequence<
        RTCORBA::Protocol
      >
    (seq)
{}

RTCORBA::ProtocolList::~ProtocolList (void)
{}

void RTCORBA::ProtocolList::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  ProtocolList * _tao_tmp_pointer =
    ACE_static_cast (ProtocolList *, _tao_void_pointer);
  delete _tao_tmp_pointer;
}

#endif /* end #if !defined */

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284

static const CORBA::Long _oc_RTCORBA_ProtocolList[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  37,
  ACE_NTOHL (0x49444c3a),
  ACE_NTOHL (0x6f6d672e),
  ACE_NTOHL (0x6f72672f),
  ACE_NTOHL (0x5254434f),
  ACE_NTOHL (0x5242412f),
  ACE_NTOHL (0x50726f74),
  ACE_NTOHL (0x6f636f6c),
  ACE_NTOHL (0x4c697374),
  ACE_NTOHL (0x3a312e30),
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/RTCORBA/ProtocolList:1.0
    13,
  ACE_NTOHL (0x50726f74),
  ACE_NTOHL (0x6f636f6c),
  ACE_NTOHL (0x4c697374),
  ACE_NTOHL (0x0),  // name = ProtocolList
    CORBA::tk_sequence, // typecode kind
  400, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    384, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      33,
      ACE_NTOHL (0x49444c3a),
      ACE_NTOHL (0x6f6d672e),
      ACE_NTOHL (0x6f72672f),
      ACE_NTOHL (0x5254434f),
      ACE_NTOHL (0x5242412f),
      ACE_NTOHL (0x50726f74),
      ACE_NTOHL (0x6f636f6c),
      ACE_NTOHL (0x3a312e30),
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/RTCORBA/Protocol:1.0
            9,
      ACE_NTOHL (0x50726f74),
      ACE_NTOHL (0x6f636f6c),
      ACE_NTOHL (0x0),  // name = Protocol
      3, // member count
            14,
      ACE_NTOHL (0x70726f74),
      ACE_NTOHL (0x6f636f6c),
      ACE_NTOHL (0x5f747970),
      ACE_NTOHL (0x65000000),  // name = protocol_type
            CORBA::tk_alias, // typecode kind for typedefs
      60, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        30,
        ACE_NTOHL (0x49444c3a),
        ACE_NTOHL (0x6f6d672e),
        ACE_NTOHL (0x6f72672f),
        ACE_NTOHL (0x494f502f),
        ACE_NTOHL (0x50726f66),
        ACE_NTOHL (0x696c6549),
        ACE_NTOHL (0x643a312e),
        ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/IOP/ProfileId:1.0
                10,
        ACE_NTOHL (0x50726f66),
        ACE_NTOHL (0x696c6549),
        ACE_NTOHL (0x64000000),  // name = ProfileId
                CORBA::tk_ulong,


      24,
      ACE_NTOHL (0x6f72625f),
      ACE_NTOHL (0x70726f74),
      ACE_NTOHL (0x6f636f6c),
      ACE_NTOHL (0x5f70726f),
      ACE_NTOHL (0x70657274),
      ACE_NTOHL (0x69657300),  // name = orb_protocol_properties
            CORBA::tk_objref, // typecode kind
      76, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        43,
        ACE_NTOHL (0x49444c3a),
        ACE_NTOHL (0x6f6d672e),
        ACE_NTOHL (0x6f72672f),
        ACE_NTOHL (0x5254434f),
        ACE_NTOHL (0x5242412f),
        ACE_NTOHL (0x50726f74),
        ACE_NTOHL (0x6f636f6c),
        ACE_NTOHL (0x50726f70),
        ACE_NTOHL (0x65727469),
        ACE_NTOHL (0x65733a31),
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/RTCORBA/ProtocolProperties:1.0
                19,
        ACE_NTOHL (0x50726f74),
        ACE_NTOHL (0x6f636f6c),
        ACE_NTOHL (0x50726f70),
        ACE_NTOHL (0x65727469),
        ACE_NTOHL (0x65730000),  // name = ProtocolProperties

      30,
      ACE_NTOHL (0x7472616e),
      ACE_NTOHL (0x73706f72),
      ACE_NTOHL (0x745f7072),
      ACE_NTOHL (0x6f746f63),
      ACE_NTOHL (0x6f6c5f70),
      ACE_NTOHL (0x726f7065),
      ACE_NTOHL (0x72746965),
      ACE_NTOHL (0x73000000),  // name = transport_protocol_properties
            CORBA::tk_objref, // typecode kind
      76, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        43,
        ACE_NTOHL (0x49444c3a),
        ACE_NTOHL (0x6f6d672e),
        ACE_NTOHL (0x6f72672f),
        ACE_NTOHL (0x5254434f),
        ACE_NTOHL (0x5242412f),
        ACE_NTOHL (0x50726f74),
        ACE_NTOHL (0x6f636f6c),
        ACE_NTOHL (0x50726f70),
        ACE_NTOHL (0x65727469),
        ACE_NTOHL (0x65733a31),
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/RTCORBA/ProtocolProperties:1.0
                19,
        ACE_NTOHL (0x50726f74),
        ACE_NTOHL (0x6f636f6c),
        ACE_NTOHL (0x50726f70),
        ACE_NTOHL (0x65727469),
        ACE_NTOHL (0x65730000),  // name = ProtocolProperties


    0U,

};

static CORBA::TypeCode _tc_TAO_tc_RTCORBA_ProtocolList (
    CORBA::tk_alias,
    sizeof (_oc_RTCORBA_ProtocolList),
    (char *) &_oc_RTCORBA_ProtocolList,
    0,
    sizeof (RTCORBA::ProtocolList)
  );

namespace RTCORBA
{
  ::CORBA::TypeCode_ptr _tc_ProtocolList =
    &_tc_TAO_tc_RTCORBA_ProtocolList;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60

// Traits specializations for RTCORBA::ServerProtocolPolicy.

RTCORBA::ServerProtocolPolicy_ptr
TAO::Objref_Traits<RTCORBA::ServerProtocolPolicy>::tao_duplicate (
    RTCORBA::ServerProtocolPolicy_ptr p
  )
{
  return RTCORBA::ServerProtocolPolicy::_duplicate (p);
}

void
TAO::Objref_Traits<RTCORBA::ServerProtocolPolicy>::tao_release (
    RTCORBA::ServerProtocolPolicy_ptr p
  )
{
  CORBA::release (p);
}

RTCORBA::ServerProtocolPolicy_ptr
TAO::Objref_Traits<RTCORBA::ServerProtocolPolicy>::tao_nil (void)
{
  return RTCORBA::ServerProtocolPolicy::_nil ();
}

CORBA::Boolean
TAO::Objref_Traits<RTCORBA::ServerProtocolPolicy>::tao_marshal (
    RTCORBA::ServerProtocolPolicy_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return p->marshal (cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*RTCORBA__TAO_ServerProtocolPolicy_Proxy_Broker_Factory_function_pointer) (
    CORBA::Object_ptr obj
  ) = 0;

RTCORBA::ServerProtocolPolicy::ServerProtocolPolicy (void)
{}

RTCORBA::ServerProtocolPolicy::~ServerProtocolPolicy (void)
{}

void
RTCORBA::ServerProtocolPolicy::_tao_any_destructor (void *_tao_void_pointer)
{
  ServerProtocolPolicy *_tao_tmp_pointer =
    ACE_static_cast (ServerProtocolPolicy *, _tao_void_pointer);
  CORBA::release (_tao_tmp_pointer);
}

RTCORBA::ServerProtocolPolicy_ptr
RTCORBA::ServerProtocolPolicy::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return ServerProtocolPolicy::_nil ();
    }

  ServerProtocolPolicy_ptr proxy =
    dynamic_cast<ServerProtocolPolicy_ptr> (_tao_objref);

  return ServerProtocolPolicy::_duplicate (proxy);
}

RTCORBA::ServerProtocolPolicy_ptr
RTCORBA::ServerProtocolPolicy::_duplicate (ServerProtocolPolicy_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }

  return obj;
}

CORBA::Boolean
RTCORBA::ServerProtocolPolicy::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Policy:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/RTCORBA/ServerProtocolPolicy:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* RTCORBA::ServerProtocolPolicy::_interface_repository_id (void) const
{
  return "IDL:omg.org/RTCORBA/ServerProtocolPolicy:1.0";
}

CORBA::Boolean
RTCORBA::ServerProtocolPolicy::marshal (TAO_OutputCDR &)
{
  return 0;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284

static const CORBA::Long _oc_RTCORBA_ServerProtocolPolicy[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a),
  ACE_NTOHL (0x6f6d672e),
  ACE_NTOHL (0x6f72672f),
  ACE_NTOHL (0x5254434f),
  ACE_NTOHL (0x5242412f),
  ACE_NTOHL (0x53657276),
  ACE_NTOHL (0x65725072),
  ACE_NTOHL (0x6f746f63),
  ACE_NTOHL (0x6f6c506f),
  ACE_NTOHL (0x6c696379),
  ACE_NTOHL (0x3a312e30),
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/RTCORBA/ServerProtocolPolicy:1.0
    21,
  ACE_NTOHL (0x53657276),
  ACE_NTOHL (0x65725072),
  ACE_NTOHL (0x6f746f63),
  ACE_NTOHL (0x6f6c506f),
  ACE_NTOHL (0x6c696379),
  ACE_NTOHL (0x0),  // name = ServerProtocolPolicy
  };

static CORBA::TypeCode _tc_TAO_tc_RTCORBA_ServerProtocolPolicy (
    CORBA::tk_objref,
    sizeof (_oc_RTCORBA_ServerProtocolPolicy),
    (char *) &_oc_RTCORBA_ServerProtocolPolicy,
    0,
    sizeof (RTCORBA::ServerProtocolPolicy)
  );

namespace RTCORBA
{
  ::CORBA::TypeCode_ptr _tc_ServerProtocolPolicy =
    &_tc_TAO_tc_RTCORBA_ServerProtocolPolicy;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60

// Traits specializations for RTCORBA::ClientProtocolPolicy.

RTCORBA::ClientProtocolPolicy_ptr
TAO::Objref_Traits<RTCORBA::ClientProtocolPolicy>::tao_duplicate (
    RTCORBA::ClientProtocolPolicy_ptr p
  )
{
  return RTCORBA::ClientProtocolPolicy::_duplicate (p);
}

void
TAO::Objref_Traits<RTCORBA::ClientProtocolPolicy>::tao_release (
    RTCORBA::ClientProtocolPolicy_ptr p
  )

⌨️ 快捷键说明

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