本文整理匯總了C++中ACE_SVC_NAME函數的典型用法代碼示例。如果您正苦於以下問題:C++ ACE_SVC_NAME函數的具體用法?C++ ACE_SVC_NAME怎麽用?C++ ACE_SVC_NAME使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ACE_SVC_NAME函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: ACE_NEW_THROW_EX
TAO_Stub *
TAO_Default_Stub_Factory::create_stub (const char *repository_id,
const TAO_MProfile &profiles,
TAO_ORB_Core *orb_core)
{
TAO_Stub *retval = 0;
ACE_NEW_THROW_EX (retval,
TAO_Stub (repository_id, profiles, orb_core),
CORBA::NO_MEMORY (0,
CORBA::COMPLETED_MAYBE));
return retval;
}
// ****************************************************************
ACE_STATIC_SVC_DEFINE (
TAO_Default_Stub_Factory,
ACE_TEXT ("Default_Stub_Factory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_Default_Stub_Factory),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0
)
ACE_FACTORY_DEFINE (TAO, TAO_Default_Stub_Factory)
TAO_END_VERSIONED_NAMESPACE_DECL
示例2: ACE_TEXT
return r;
}
int Replication_Service::release (void)
{
int r= replication_strategy->release();
TAO_FTRTEC::Log(3, ACE_TEXT("Lock Released %d\n"), r);
return r;
}
int Replication_Service::threads() const {
return FTRTEC::threads;
}
}
TAO_END_VERSIONED_NAMESPACE_DECL
ACE_FACTORY_NAMESPACE_DEFINE (
TAO_FTRTEC,
Replication_Service,
FTRTEC::Replication_Service)
ACE_STATIC_SVC_DEFINE (
Replication_Service,
ACE_TEXT ("FTRTEC_Replication"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (Replication_Service),
ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ,
0)
示例3: catch
// the object reference of the naming service.
obj = name_context._retn ();
}
}
catch (const ::CORBA::SystemException& ex)
{
if (TAO_debug_level >= 4)
{
ex._tao_print_exception ("CORBANAME_Parser");
}
}
return obj;
}
ACE_STATIC_SVC_DEFINE (TAO_CORBANAME_Parser,
ACE_TEXT ("CORBANAME_Parser"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_CORBANAME_Parser),
ACE_Service_Type::DELETE_THIS |
ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO, TAO_CORBANAME_Parser)
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_CORBANAME_PARSER == 1 */
示例4: singleton_initaliser
{
(*any) <<= value;
}
int
TAO_AnyTypeCode_Adapter_Impl::Initializer (void)
{
// The TAO::Unknown_IDL_Type::lock_i () is a PRIVATE thread unsafe singleton
// which we need to initialise before Unknown_IDL_Types are used in a
// threaded environment. This singleton is called for every constructed
// Unknown_IDL_Type, so just create a throw-a-way from a null typecode.
TAO::Unknown_IDL_Type singleton_initaliser (0);
ACE_UNUSED_ARG (singleton_initaliser);
return ACE_Service_Config::process_directive (
ace_svc_desc_TAO_AnyTypeCode_Adapter_Impl);
}
ACE_STATIC_SVC_DEFINE (
TAO_AnyTypeCode_Adapter_Impl,
ACE_TEXT ("AnyTypeCode_Adapter"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_AnyTypeCode_Adapter_Impl),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO_AnyTypeCode, TAO_AnyTypeCode_Adapter_Impl)
TAO_END_VERSIONED_NAMESPACE_DECL
示例5: if
if (npm == TAO::Portable_Server::Cached_Policies::
CLIENT_PROPAGATED_NETWORK_PRIORITY)
{
if (nph != 0)
{
dscp_codepoint = nph->get_dscp_codepoint (request_service_context);
}
}
else if (npm == TAO::Portable_Server::Cached_Policies::
SERVER_DECLARED_NETWORK_PRIORITY)
{
dscp_codepoint = poa.cached_policies ().reply_diffserv_codepoint ();
}
TAO_Connection_Handler *connection_handler =
req.transport ()->connection_handler ();
connection_handler->set_dscp_codepoint (dscp_codepoint);
}
ACE_FACTORY_DEFINE (TAO_DiffServPolicy, TAO_DiffServ_Network_Priority_Hook)
ACE_STATIC_SVC_DEFINE (TAO_DiffServ_Network_Priority_Hook,
ACE_TEXT ("TAO_Network_Priority_Hook"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_DiffServ_Network_Priority_Hook),
ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ,
0)
TAO_END_VERSIONED_NAMESPACE_DECL
示例6: ORBSVCS_DEBUG
TAO_EC_TPC_Factory::create_proxy_push_supplier (TAO_EC_Event_Channel_Base *ec)
{
if (TAO_EC_TPC_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG, "EC (%P|%t) EC_TPC_Factory::create_proxy_push_supplier\n"));
return new TAO_EC_TPC_ProxyPushSupplier (ec, this->consumer_validate_connection_);
}
TAO_EC_ProxyPushConsumer*
TAO_EC_TPC_Factory::create_proxy_push_consumer (TAO_EC_Event_Channel_Base *ec)
{
if (TAO_EC_TPC_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG, "EC (%P|%t) EC_TPC_Factory::create_proxy_push_consumer\n"));
return new TAO_EC_TPC_ProxyPushConsumer (ec);
}
TAO_END_VERSIONED_NAMESPACE_DECL
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_EC_TPC_Factory,
ACE_TEXT ("EC_Factory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_EC_TPC_Factory),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO_RTEvent_Serv, TAO_EC_TPC_Factory)
// ****************************************************************
示例7: ACE_STATIC_SVC_DEFINE
}
int
Lorica_MapperRegistry::initialize(void)
{
return ACE_Service_Config::process_directive(ace_svc_desc_Lorica_MapperRegistry);
}
bool
Lorica_MapperRegistry::poa_and_object_id(CORBA::Object_ptr ref,
CORBA::OctetSeq *& poaid,
PortableServer::ObjectId *& objid)
{
if (this->mappers_ == 0) {
poaid = new CORBA::OctetSeq;
objid = new PortableServer::ObjectId;
return false;
}
return this->mappers_->poa_and_object_id(ref, poaid, objid);
}
ACE_STATIC_SVC_DEFINE(Lorica_MapperRegistry,
ACE_TEXT("MapperRegistry"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME(Lorica_MapperRegistry),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE(Lorica_EvaluatorBase, Lorica_MapperRegistry)
示例8: ACE_NEW
{
ACE_NEW (this->rt_invocation_endpoint_selector_,
TAO_RT_Invocation_Endpoint_Selector);
}
RT_Endpoint_Selector_Factory::~RT_Endpoint_Selector_Factory (void)
{
delete this->rt_invocation_endpoint_selector_;
}
TAO_Invocation_Endpoint_Selector *
RT_Endpoint_Selector_Factory::get_selector (void)
{
return this->rt_invocation_endpoint_selector_;
}
// ****************************************************************
ACE_STATIC_SVC_DEFINE (RT_Endpoint_Selector_Factory,
ACE_TEXT ("RT_Endpoint_Selector_Factory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (RT_Endpoint_Selector_Factory),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO_RTCORBA, RT_Endpoint_Selector_Factory)
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
示例9: catch
PortableInterceptor::ORBInitializer_var orb_initializer;
orb_initializer = temp_orb_initializer;
PortableInterceptor::register_orb_initializer (orb_initializer.in ());
}
catch (const ::CORBA::Exception& ex)
{
ex._tao_print_exception (
"Unexpected exception caught while "
"initializing the RTORB");
return 1;
}
return 0;
}
/////////////////////////////////////////////////////////////////////
ACE_FACTORY_DEFINE (TAO_RTCORBA, TAO_RT_ORB_Loader)
ACE_STATIC_SVC_DEFINE (TAO_RT_ORB_Loader,
ACE_TEXT ("RT_ORB_Loader"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_RT_ORB_Loader),
ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ,
0)
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
示例10: ACE_NEW_RETURN
#include "tao/PortableServer/Object_Adapter_Factory.h"
#include "tao/PortableServer/Object_Adapter.h"
#include "tao/ORB_Core.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Adapter*
TAO_Object_Adapter_Factory::create (TAO_ORB_Core *orb_core)
{
TAO_Adapter* adapter = 0;
ACE_NEW_RETURN (adapter,
TAO_Object_Adapter (orb_core->server_factory ()->
active_object_map_creation_parameters (),
*orb_core),
0);
return adapter;
}
ACE_FACTORY_DEFINE (TAO_PortableServer, TAO_Object_Adapter_Factory)
ACE_STATIC_SVC_DEFINE (TAO_Object_Adapter_Factory,
ACE_TEXT ("TAO_Object_Adapter_Factory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_Object_Adapter_Factory),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
TAO_END_VERSIONED_NAMESPACE_DECL
示例11: ACE_NEW_RETURN
ACE::HTBP::Filter *filter = 0;
if (inside)
ACE_NEW_RETURN (filter,
ACE::HTBP::Inside_Squid_Filter (),0);
else
ACE_NEW_RETURN (filter,
ACE::HTBP::Outside_Squid_Filter (),0);
return filter;
}
int
ACE::HTBP::Filter_Factory::init (int /* argc */,
ACE_TCHAR * /* argv */ [])
{
return 0;
}
ACE_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (ACE_HTBP_Filter_Factory,
ACE_TEXT ("Filter_Factory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (ACE_HTBP_Filter_Factory),
ACE_Service_Type::DELETE_THIS |
ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_NAMESPACE_DEFINE (HTBP, ACE_HTBP_Filter_Factory,
ACE::HTBP::Filter_Factory)
示例12: ACE_FACTORY_DEFINE
TAO_CSD_Strategy_Repository::Strategy_Node::add_node(Strategy_Node *node)
{
if (this->next_)
this->next_->add_node(node);
else
this->next_ = node;
}
TAO_CSD_Strategy_Repository::Strategy_Node *
TAO_CSD_Strategy_Repository::Strategy_Node::find(const ACE_CString &name)
{
if (this->poa_name_ == name)
return this;
if (this->next_)
return this->next_->find(name);
return 0;
}
/////////////////////////////////////////////////////////////////////
ACE_FACTORY_DEFINE (TAO_CSD_FW, TAO_CSD_Strategy_Repository)
ACE_STATIC_SVC_DEFINE (TAO_CSD_Strategy_Repository,
ACE_TEXT ("TAO_CSD_Strategy_Repository"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_CSD_Strategy_Repository),
ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ,
0)
TAO_END_VERSIONED_NAMESPACE_DECL
示例13: catch
CORBA::SystemException::_tao_minor_code (
TAO::VMCID,
ENOMEM),
CORBA::COMPLETED_NO));
PortableInterceptor::ORBInitializer_var initializer = tmp;
PortableInterceptor::register_orb_initializer (initializer.in ());
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception (
"Unable to register LB_ClientComponent ORB ""initializer.");
return -1;
}
return 0;
}
TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (TAO_LB_ClientComponent,
ACE_TEXT ("LB_ClientComponent"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_LB_ClientComponent),
ACE_Service_Type::DELETE_THIS |
ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO_LoadBalancing, TAO_LB_ClientComponent)
示例14: ACE_STATIC_SVC_DEFINE
0);
return connector;
}
int
TAO::HTIOP::Protocol_Factory::requires_explicit_endpoint (void) const
{
return 0;
}
TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (TAO_HTIOP_Protocol_Factory,
ACE_TEXT ("HTIOP_Factory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_HTIOP_Protocol_Factory),
ACE_Service_Type::DELETE_THIS |
ACE_Service_Type::DELETE_OBJ,
0)
// Since the actual class instantiated by the factory is scoped inside a
// namespace, this macro is used in place of ACE_FACTORY_DEFINE, athough
// the declaration macro is the same. Note that the second argument must
// match the name class name used in the ACE_FACTORY_DECLARE, and the
// third argument is the fully scoped class to be instantiated.
ACE_FACTORY_NAMESPACE_DEFINE (HTIOP,
TAO_HTIOP_Protocol_Factory,
TAO::HTIOP::Protocol_Factory)
示例15: ACE_TEXT
ACE_TEXT ("(%P|%t) ERROR, Unable to get %s\n"),
strategy_name));
return strategy;
}
void
IdAssignmentStrategyFactoryImpl::destroy (IdAssignmentStrategy *)
{
// Noop because both types are singletons
}
}
}
ACE_STATIC_SVC_DEFINE (
IdAssignmentStrategyFactoryImpl,
ACE_TEXT ("IdAssignmentStrategyFactory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (IdAssignmentStrategyFactoryImpl),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_NAMESPACE_DEFINE (
ACE_Local_Service,
IdAssignmentStrategyFactoryImpl,
TAO::Portable_Server::IdAssignmentStrategyFactoryImpl)
TAO_END_VERSIONED_NAMESPACE_DECL