imr_locatorc.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 1,238 行 · 第 1/3 页
CPP
1,238 行
// -*- C++ -*-
//
// ImR_LocatorC.cpp,v 1.15 2003/12/28 16:12:31 jwillemsen Exp
// **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
// TAO and the TAO IDL Compiler have been developed by:
// Center for Distributed Object Computing
// Washington University
// St. Louis, MO
// USA
// http://www.cs.wustl.edu/~schmidt/doc-center.html
// and
// Distributed Object Computing Laboratory
// University of California at Irvine
// Irvine, CA
// USA
// http://doc.ece.uci.edu/
// and
// Institute for Software Integrated Systems
// Vanderbilt University
// Nashville, TN
// USA
// http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
// .\be\be_codegen.cpp:338
#include "ImR_LocatorC.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Object_T.h"
#include "tao/Typecode.h"
#include "tao/Any_Impl_T.h"
#include "tao/Any_Dual_Impl_T.h"
#include "tao/Basic_Arguments.h"
#include "tao/Object_Argument_T.h"
#include "tao/UB_String_Arguments.h"
#include "tao/Var_Size_Argument_T.h"
#include "ace/OS_NS_string.h"
#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
#include "ImR_LocatorC.i"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// .\be\be_visitor_arg_traits.cpp:62
// Arg traits specializations.
namespace TAO
{
#if !defined (_IMPLEMENTATIONREPOSITORY_SERVEROBJECT__ARG_TRAITS_CS_)
#define _IMPLEMENTATIONREPOSITORY_SERVEROBJECT__ARG_TRAITS_CS_
ACE_TEMPLATE_SPECIALIZATION
class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerObject>
: public
Object_Arg_Traits_T<
ImplementationRepository::ServerObject_ptr,
ImplementationRepository::ServerObject_var,
ImplementationRepository::ServerObject_out,
TAO::Objref_Traits<ImplementationRepository::ServerObject>
>
{
};
#endif /* end #if !defined */
// TAO_IDL - Generated from
// .\be\be_visitor_arg_traits.cpp:474
#if !defined (_IMPLEMENTATIONREPOSITORY_STARTUPOPTIONS__ARG_TRAITS_CS_)
#define _IMPLEMENTATIONREPOSITORY_STARTUPOPTIONS__ARG_TRAITS_CS_
ACE_TEMPLATE_SPECIALIZATION
class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::StartupOptions>
: public
Var_Size_Arg_Traits_T<
ImplementationRepository::StartupOptions,
ImplementationRepository::StartupOptions_var,
ImplementationRepository::StartupOptions_out
>
{
};
#endif /* end #if !defined */
// TAO_IDL - Generated from
// .\be\be_visitor_arg_traits.cpp:474
#if !defined (_IMPLEMENTATIONREPOSITORY_SERVERINFORMATION__ARG_TRAITS_CS_)
#define _IMPLEMENTATIONREPOSITORY_SERVERINFORMATION__ARG_TRAITS_CS_
ACE_TEMPLATE_SPECIALIZATION
class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerInformation>
: public
Var_Size_Arg_Traits_T<
ImplementationRepository::ServerInformation,
ImplementationRepository::ServerInformation_var,
ImplementationRepository::ServerInformation_out
>
{
};
#endif /* end #if !defined */
// TAO_IDL - Generated from
// .\be\be_visitor_arg_traits.cpp:265
#if !defined (_IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONLIST__ARG_TRAITS_CS_)
#define _IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONLIST__ARG_TRAITS_CS_
ACE_TEMPLATE_SPECIALIZATION
class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerInformationList>
: public
Var_Size_Arg_Traits_T<
ImplementationRepository::ServerInformationList,
ImplementationRepository::ServerInformationList_var,
ImplementationRepository::ServerInformationList_out
>
{
};
#endif /* end #if !defined */
#if !defined (_IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONITERATOR__ARG_TRAITS_CS_)
#define _IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONITERATOR__ARG_TRAITS_CS_
ACE_TEMPLATE_SPECIALIZATION
class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerInformationIterator>
: public
Object_Arg_Traits_T<
ImplementationRepository::ServerInformationIterator_ptr,
ImplementationRepository::ServerInformationIterator_var,
ImplementationRepository::ServerInformationIterator_out,
TAO::Objref_Traits<ImplementationRepository::ServerInformationIterator>
>
{
};
#endif /* end #if !defined */
#if !defined (_IMPLEMENTATIONREPOSITORY_ADMINISTRATION__ARG_TRAITS_CS_)
#define _IMPLEMENTATIONREPOSITORY_ADMINISTRATION__ARG_TRAITS_CS_
ACE_TEMPLATE_SPECIALIZATION
class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::Administration>
: public
Object_Arg_Traits_T<
ImplementationRepository::Administration_ptr,
ImplementationRepository::Administration_var,
ImplementationRepository::Administration_out,
TAO::Objref_Traits<ImplementationRepository::Administration>
>
{
};
#endif /* end #if !defined */
// TAO_IDL - Generated from
// .\be\be_visitor_arg_traits.cpp:265
#if !defined (_IMPLEMENTATIONREPOSITORY_LOCATOR_SERVERNAMELIST__ARG_TRAITS_CS_)
#define _IMPLEMENTATIONREPOSITORY_LOCATOR_SERVERNAMELIST__ARG_TRAITS_CS_
ACE_TEMPLATE_SPECIALIZATION
class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::Locator::ServerNameList>
: public
Var_Size_Arg_Traits_T<
ImplementationRepository::Locator::ServerNameList,
ImplementationRepository::Locator::ServerNameList_var,
ImplementationRepository::Locator::ServerNameList_out
>
{
};
#endif /* end #if !defined */
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_interface/interface_cs.cpp:60
// Traits specializations for ImplementationRepository::Locator.
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
ImplementationRepository::Locator_ptr
TAO::Objref_Traits<ImplementationRepository::Locator>::tao_duplicate (
ImplementationRepository::Locator_ptr p
)
{
return ImplementationRepository::Locator::_duplicate (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<ImplementationRepository::Locator>::tao_release (
ImplementationRepository::Locator_ptr p
)
{
CORBA::release (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
ImplementationRepository::Locator_ptr
TAO::Objref_Traits<ImplementationRepository::Locator>::tao_nil (void)
{
return ImplementationRepository::Locator::_nil ();
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<ImplementationRepository::Locator>::tao_marshal (
ImplementationRepository::Locator_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*ImplementationRepository__TAO_Locator_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_sequence/sequence_cs.cpp:65
#if !defined (_IMPLEMENTATIONREPOSITORY_LOCATOR_SERVERNAMELIST_CS_)
#define _IMPLEMENTATIONREPOSITORY_LOCATOR_SERVERNAMELIST_CS_
ImplementationRepository::Locator::ServerNameList::ServerNameList (void)
{}
ImplementationRepository::Locator::ServerNameList::ServerNameList (
CORBA::ULong max
)
: TAO_Unbounded_String_Sequence
(max)
{}
ImplementationRepository::Locator::ServerNameList::ServerNameList (
CORBA::ULong max,
CORBA::ULong length,
char * * buffer,
CORBA::Boolean release
)
: TAO_Unbounded_String_Sequence
(max, length, buffer, release)
{}
ImplementationRepository::Locator::ServerNameList::ServerNameList (
const ServerNameList &seq
)
: TAO_Unbounded_String_Sequence
(seq)
{}
ImplementationRepository::Locator::ServerNameList::~ServerNameList (void)
{}
void ImplementationRepository::Locator::ServerNameList::_tao_any_destructor (
void * _tao_void_pointer
)
{
ServerNameList * _tao_tmp_pointer =
ACE_static_cast (ServerNameList *, _tao_void_pointer);
delete _tao_tmp_pointer;
}
#endif /* end #if !defined */
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_ImplementationRepository_Locator_ServerNameList[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
56,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x496d706c),
ACE_NTOHL (0x656d656e),
ACE_NTOHL (0x74617469),
ACE_NTOHL (0x6f6e5265),
ACE_NTOHL (0x706f7369),
ACE_NTOHL (0x746f7279),
ACE_NTOHL (0x2f4c6f63),
ACE_NTOHL (0x61746f72),
ACE_NTOHL (0x2f536572),
ACE_NTOHL (0x7665724e),
ACE_NTOHL (0x616d654c),
ACE_NTOHL (0x6973743a),
ACE_NTOHL (0x312e3000), // repository ID = IDL:ImplementationRepository/Locator/ServerNameList:1.0
15,
ACE_NTOHL (0x53657276),
ACE_NTOHL (0x65724e61),
ACE_NTOHL (0x6d654c69),
ACE_NTOHL (0x73740000), // name = ServerNameList
CORBA::tk_sequence, // typecode kind
16, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
CORBA::tk_string,
0U, // string length
0U,
};
static CORBA::TypeCode _tc_TAO_tc_ImplementationRepository_Locator_ServerNameList (
CORBA::tk_alias,
sizeof (_oc_ImplementationRepository_Locator_ServerNameList),
(char *) &_oc_ImplementationRepository_Locator_ServerNameList,
0,
sizeof (ImplementationRepository::Locator::ServerNameList)
);
::CORBA::TypeCode_ptr ImplementationRepository::Locator::_tc_ServerNameList =
&_tc_TAO_tc_ImplementationRepository_Locator_ServerNameList;
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
void ImplementationRepository::Locator::activate_server_in_activator (
const char * server,
const char * activator
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
, ImplementationRepository::NotFound
, ImplementationRepository::CannotActivate
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_server (server);
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_server,
&_tao_activator
};
static TAO::Exception_Data
_tao_ImplementationRepository_Locator_activate_server_in_activator_exceptiondata [] =
{
{
"IDL:ImplementationRepository/NotFound:1.0",
ImplementationRepository::NotFound::_alloc,
ImplementationRepository::_tc_NotFound
},
{
"IDL:ImplementationRepository/CannotActivate:1.0",
ImplementationRepository::CannotActivate::_alloc,
ImplementationRepository::_tc_CannotActivate
}
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
3,
"activate_server_in_activator",
28,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (
_tao_ImplementationRepository_Locator_activate_server_in_activator_exceptiondata,
2
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK;
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
void ImplementationRepository::Locator::remove_server_in_activator (
const char * server,
const char * activator
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
, ImplementationRepository::NotFound
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?