ifr_extendedc.cpp

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

CPP
2,608
字号
    CORBA::Visibility access
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ValueMemberDef_Proxy_Broker_ == 0)
    {
      CORBA_ValueMemberDef_setup_collocation (
          this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
        );
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits<CORBA::Visibility>::in_arg_val _tao_access (access);
  
  TAO::Argument *_tao_signature [] =
    {
      &_tao_retval,
      &_tao_access
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _tao_signature,
      2,
      "_set_access",
      11,
      this->the_TAO_ValueMemberDef_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

CORBA::ValueMemberDef::ValueMemberDef (int collocated)
 : the_TAO_ValueMemberDef_Proxy_Broker_ (0)
{
  this->CORBA_ValueMemberDef_setup_collocation (collocated);
}

void
CORBA::ValueMemberDef::CORBA_ValueMemberDef_setup_collocation (int collocated)
{
  if (collocated)
    {
      this->the_TAO_ValueMemberDef_Proxy_Broker_ =
        ::CORBA__TAO_ValueMemberDef_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->CORBA_Contained_setup_collocation (collocated);
}

CORBA::ValueMemberDef::~ValueMemberDef (void)
{}

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

CORBA::ValueMemberDef_ptr
CORBA::ValueMemberDef::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ValueMemberDef>::narrow (
        _tao_objref,
        "IDL:omg.org/CORBA/ValueMemberDef:1.0",
        CORBA__TAO_ValueMemberDef_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CORBA::ValueMemberDef_ptr
CORBA::ValueMemberDef::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ValueMemberDef>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CORBA/ValueMemberDef:1.0",
        CORBA__TAO_ValueMemberDef_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CORBA::ValueMemberDef_ptr
CORBA::ValueMemberDef::_duplicate (ValueMemberDef_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
CORBA::ValueMemberDef::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/IRObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Contained:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/ValueMemberDef:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return this->ACE_NESTED_CLASS (CORBA, Object)::_is_a (
          value
          ACE_ENV_ARG_PARAMETER
        );
    }
}

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

CORBA::Boolean
CORBA::ValueMemberDef::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CORBA_ValueMemberDef[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  37,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x434f5242), 
  ACE_NTOHL (0x412f5661), 
  ACE_NTOHL (0x6c75654d), 
  ACE_NTOHL (0x656d6265), 
  ACE_NTOHL (0x72446566), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CORBA/ValueMemberDef:1.0
    15,
  ACE_NTOHL (0x56616c75), 
  ACE_NTOHL (0x654d656d), 
  ACE_NTOHL (0x62657244), 
  ACE_NTOHL (0x65660000),  // name = ValueMemberDef
  };

static CORBA::TypeCode _tc_TAO_tc_CORBA_ValueMemberDef (
    CORBA::tk_objref,
    sizeof (_oc_CORBA_ValueMemberDef),
    (char *) &_oc_CORBA_ValueMemberDef,
    0,
    sizeof (CORBA::ValueMemberDef)
  );

namespace CORBA
{
  ::CORBA::TypeCode_ptr _tc_ValueMemberDef =
    &_tc_TAO_tc_CORBA_ValueMemberDef;
}

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

// Traits specializations for CORBA::ValueDef.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::ValueDef_ptr
TAO::Objref_Traits<CORBA::ValueDef>::tao_duplicate (
    CORBA::ValueDef_ptr p
  )
{
  return CORBA::ValueDef::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CORBA::ValueDef>::tao_release (
    CORBA::ValueDef_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::ValueDef_ptr
TAO::Objref_Traits<CORBA::ValueDef>::tao_nil (void)
{
  return CORBA::ValueDef::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CORBA::ValueDef>::tao_marshal (
    CORBA::ValueDef_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return p->marshal (cdr);
}

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

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

::CORBA::InterfaceDefSeq * CORBA::ValueDef::supported_interfaces (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ValueDef_Proxy_Broker_ == 0)
    {
      CORBA_ValueDef_setup_collocation (
          this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
        );
    }
  
  TAO::Arg_Traits<CORBA::InterfaceDefSeq>::ret_val _tao_retval;
  
  TAO::Argument *_tao_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _tao_signature,
      1,
      "_get_supported_interfaces",
      25,
      this->the_TAO_ValueDef_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CORBA::ValueDef::supported_interfaces (
    const CORBA::InterfaceDefSeq & supported_interfaces
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ValueDef_Proxy_Broker_ == 0)
    {
      CORBA_ValueDef_setup_collocation (
          this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
        );
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits<CORBA::InterfaceDefSeq>::in_arg_val _tao_supported_interfaces (supported_interfaces);
  
  TAO::Argument *_tao_signature [] =
    {
      &_tao_retval,
      &_tao_supported_interfaces
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _tao_signature,
      2,
      "_set_supported_interfaces",
      25,
      this->the_TAO_ValueDef_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

::CORBA::InitializerSeq * CORBA::ValueDef::initializers (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ValueDef_Proxy_Broker_ == 0)
    {
      CORBA_ValueDef_setup_collocation (
          this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
        );
    }
  
  TAO::Arg_Traits<CORBA::InitializerSeq>::ret_val _tao_retval;
  
  TAO::Argument *_tao_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _tao_signature,
      1,
      "_get_initializers",
      17,
      this->the_TAO_ValueDef_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CORBA::ValueDef::initializers (
    const CORBA::InitializerSeq & initializers
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ValueDef_Proxy_Broker_ == 0)
    {
      CORBA_ValueDef_setup_collocation (
          this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
        );
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits<CORBA::InitializerSeq>::in_arg_val _tao_initializers (initializers);
  
  TAO::Argument *_tao_signature [] =
    {
      &_tao_retval,
      &_tao_initializers
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _tao_signature,
      2,
      "_set_initializers",
      17,
      this->the_TAO_ValueDef_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

::CORBA::ValueDef_ptr CORBA::ValueDef::base_value (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ValueDef_Proxy_Broker_ == 0)
    {
      CORBA_ValueDef_setup_collocation (
          this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
        );
    }
  
  TAO::Arg_Traits<CORBA::ValueDef>::ret_val _tao_retval;
  
  TAO::Argument *_tao_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _tao_signature,
      1,
      "_get_base_value",
      15,
      this->the_TAO_ValueDef_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CORBA::ValueDef::base_value (
    CORBA::ValueDef_ptr base_value
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ValueDef_Proxy_Broker_ == 0)
    {
      CORBA_ValueDef_setup_collocation (
          this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
        );
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits<CORBA::ValueDef>::in_arg_val _tao_base_value (base_value);
  
  TAO::Argument *_tao_signature [] =
    {
      &_tao_retval,
      &_tao_base_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _tao_signature,
      2,
      "_set_base_value",
      15,
      this->the_TAO_ValueDef_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

::CORBA::ValueDefSeq * CORBA::ValueDef::abstract_base_values (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);

⌨️ 快捷键说明

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