当前位置: 首页>>代码示例>>C++>>正文


C++ ObjectPtr::ice_id方法代码示例

本文整理汇总了C++中ice::ObjectPtr::ice_id方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectPtr::ice_id方法的具体用法?C++ ObjectPtr::ice_id怎么用?C++ ObjectPtr::ice_id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ice::ObjectPtr的用法示例。


在下文中一共展示了ObjectPtr::ice_id方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Exception

void 
createAdminInterface( const Context& context, Ice::ObjectPtr& object, const orca::FQComponentName& fqName )
{
    if ( object==0 )
        throw gbxutilacfr::Exception( ERROR_INFO, "Cannot add a null object to the admin interface" );

    const std::string interfaceType = object->ice_id();
    const std::string facetName = orcaice::toAdminFacet( fqName, interfaceType );

//     try
//     {
        context.communicator()->addAdminFacet( object, facetName );
        context.tracer().info( string("Added admin facet ")+facetName );
//     }
//     catch ( const Ice::AlreadyRegisteredException& e )
//     {
//         stringstream ss;
//         ss << "(while installng "<<facetName<<" facet) : "<<e.what();
//         context_.tracer().error( ss.str() );
//         context_.shutdown();
//         
//     }

    // manually to home registry
    orca::ProvidedInterface iface;
    iface.name = facetName;
    // this is a local call
    iface.id   = interfaceType;
    context.home().addProvidedInterface( iface );
}
开发者ID:mjs513,项目名称:orca-robotics,代码行数:30,代码来源:icegridutils.cpp

示例2: assert

void 
MyUtil::__patch__GlobalIdPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::MyUtil::GlobalIdPtr* p = static_cast< ::MyUtil::GlobalIdPtr*>(__addr);
    assert(p);
    *p = ::MyUtil::GlobalIdPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::MyUtil::GlobalId::ice_staticId(), v->ice_id());
    }
}
开发者ID:xiaoyu-real,项目名称:Test,代码行数:11,代码来源:Util.cpp

示例3: assert

void 
Factory::__patch__DeviceFactoryPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::Factory::DeviceFactoryPtr* p = static_cast< ::Factory::DeviceFactoryPtr*>(__addr);
    assert(p);
    *p = ::Factory::DeviceFactoryPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::Factory::DeviceFactory::ice_staticId(), v->ice_id());
    }
}
开发者ID:z80,项目名称:IPM,代码行数:11,代码来源:factory.cpp

示例4: assert

void ICE_DECLSPEC_EXPORT
loggerice::__patch__loggerctrlPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::loggerice::loggerctrlPtr* p = static_cast< ::loggerice::loggerctrlPtr*>(__addr);
    assert(p);
    *p = ::loggerice::loggerctrlPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::loggerice::loggerctrl::ice_staticId(), v->ice_id());
    }
}
开发者ID:hamletg,项目名称:dbg_log,代码行数:11,代码来源:loggerctrl.cpp

示例5: assert

void 
level1::level2::__patch__testPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::level1::level2::testPtr* p = static_cast< ::level1::level2::testPtr*>(__addr);
    assert(p);
    *p = ::level1::level2::testPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::level1::level2::test::ice_staticId(), v->ice_id());
    }
}
开发者ID:mvxi,项目名称:icetest,代码行数:11,代码来源:test.cpp

示例6: assert

void 
jderobot::__patch__QuadrotorPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::jderobot::QuadrotorPtr* p = static_cast< ::jderobot::QuadrotorPtr*>(__addr);
    assert(p);
    *p = ::jderobot::QuadrotorPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::jderobot::Quadrotor::ice_staticId(), v->ice_id());
    }
}
开发者ID:irodmar,项目名称:JdeRobot,代码行数:11,代码来源:quadrotor.cpp

示例7: assert

void 
Temp::__patch__TimeInfoPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::Temp::TimeInfoPtr* p = static_cast< ::Temp::TimeInfoPtr*>(__addr);
    assert(p);
    *p = ::Temp::TimeInfoPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::Temp::TimeInfo::ice_staticId(), v->ice_id());
    }
}
开发者ID:mvxi,项目名称:icetest,代码行数:11,代码来源:TimeInfo.cpp

示例8: assert

void 
GlobalTable::__patch__DistributedMapPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::GlobalTable::DistributedMapPtr* p = static_cast< ::GlobalTable::DistributedMapPtr*>(__addr);
    assert(p);
    *p = ::GlobalTable::DistributedMapPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::GlobalTable::DistributedMap::ice_staticId(), v->ice_id());
    }
}
开发者ID:azybler,项目名称:Yahoo_LDA,代码行数:11,代码来源:DistributedMap.cpp

示例9: assert

void 
Communication::__patch__DataInterfacePtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::Communication::DataInterfacePtr* p = static_cast< ::Communication::DataInterfacePtr*>(__addr);
    assert(p);
    *p = ::Communication::DataInterfacePtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::Communication::DataInterface::ice_staticId(), v->ice_id());
    }
}
开发者ID:butchalline,项目名称:tum-teambots,代码行数:11,代码来源:DataInterface.cpp

示例10: assert

void 
HSFoward::__patch__HSBnsProcPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::HSFoward::HSBnsProcPtr* p = static_cast< ::HSFoward::HSBnsProcPtr*>(__addr);
    assert(p);
    *p = ::HSFoward::HSBnsProcPtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::HSFoward::HSBnsProc::ice_staticId(), v->ice_id());
    }
}
开发者ID:xly931,项目名称:demo,代码行数:11,代码来源:demo.cpp

示例11: assert

void 
orca::util::__patch__LatencyPingerPtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::orca::util::LatencyPingerPtr* p = static_cast< ::orca::util::LatencyPingerPtr*>(__addr);
    assert(p);
    *p = ::orca::util::LatencyPingerPtr::dynamicCast(v);
    if(v && !*p)
    {
        ::Ice::UnexpectedObjectException e(__FILE__, __LINE__);
        e.type = v->ice_id();
        e.expectedType = ::orca::util::LatencyPinger::ice_staticId();
        throw e;
    }
}
开发者ID:mjs513,项目名称:orca-robotics,代码行数:14,代码来源:pingreply.cpp

示例12: assert

void 
com::renren::sixin::account::__patch__MiscServicePtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::com::renren::sixin::account::MiscServicePtr* p = static_cast< ::com::renren::sixin::account::MiscServicePtr*>(__addr);
    assert(p);
    *p = ::com::renren::sixin::account::MiscServicePtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::com::renren::sixin::account::MiscService::ice_staticId(), v->ice_id());
    }
}
开发者ID:xiaoyu-real,项目名称:Test,代码行数:11,代码来源:miscService.cpp

示例13: assert

void 
com::xiaonei::wap::push::token::__patch__TokenServicePtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::com::xiaonei::wap::push::token::TokenServicePtr* p = static_cast< ::com::xiaonei::wap::push::token::TokenServicePtr*>(__addr);
    assert(p);
    *p = ::com::xiaonei::wap::push::token::TokenServicePtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::com::xiaonei::wap::push::token::TokenService::ice_staticId(), v->ice_id());
    }
}
开发者ID:xiaoyu-real,项目名称:Test,代码行数:11,代码来源:token.cpp

示例14: tprintf

TestIntfPrx
allTests(const Ice::CommunicatorPtr& communicator)
{
    Ice::ObjectPrx obj = communicator->stringToProxy("Test:default -p 12010");
    TestIntfPrx test = TestIntfPrx::checkedCast(obj);

    tprintf("base as Object... ");
    {
        Ice::ObjectPtr o;
        try
        {
            o = test->SBaseAsObject();
            test(o);
            test(o->ice_id() == "::Test::SBase");
        }
        catch(...)
        {
            test(0);
        }
        SBasePtr sb = SBasePtr::dynamicCast(o);
        test(sb);
        test(sb->sb == "SBase.sb");
    }
    tprintf("ok\n");

    tprintf("base as base... ");
    {
        SBasePtr sb;
        try
        {
            sb = test->SBaseAsSBase();
            test(sb->sb == "SBase.sb");
        }
        catch(...)
        {
            test(0);
        }
    }
    tprintf("ok\n");

    tprintf("base with known derived as base... ");
    {
        SBasePtr sb;
        try
        {
            sb = test->SBSKnownDerivedAsSBase();
            test(sb->sb == "SBSKnownDerived.sb");
        }
        catch(...)
        {
            test(0);
        }
        SBSKnownDerivedPtr sbskd = SBSKnownDerivedPtr::dynamicCast(sb);
        test(sbskd);
        test(sbskd->sbskd == "SBSKnownDerived.sbskd");
    }
    tprintf("ok\n");

    tprintf("base with known derived as known derived... ");
    {
        SBSKnownDerivedPtr sbskd;
        try
        {
            sbskd = test->SBSKnownDerivedAsSBSKnownDerived();
            test(sbskd->sbskd == "SBSKnownDerived.sbskd");
        }
        catch(...)
        {
            test(0);
        }
    }
    tprintf("ok\n");

    tprintf("base with unknown derived as base... ");
    {
        SBasePtr sb;
        try
        {
            sb = test->SBSUnknownDerivedAsSBase();
            test(sb->sb == "SBSUnknownDerived.sb");
        }
        catch(...)
        {
            test(0);
        }
    }
    tprintf("ok\n");

    tprintf("unknown with Object as Object... ");
    {
        Ice::ObjectPtr o;
        try
        {
            o = test->SUnknownAsObject();
            test(0);
        }
        catch(const Ice::MarshalException&)
        {
        }
        catch(...)
//.........这里部分代码省略.........
开发者ID:glockwork,项目名称:dfu,代码行数:101,代码来源:AllTests.cpp

示例15: assert

void
SeaBeeSimEvents::__patch__CameraConfigMessagePtr(void* __addr, ::Ice::ObjectPtr& v)
{
    ::SeaBeeSimEvents::CameraConfigMessagePtr* p = static_cast< ::SeaBeeSimEvents::CameraConfigMessagePtr*>(__addr);
    assert(p);
    *p = ::SeaBeeSimEvents::CameraConfigMessagePtr::dynamicCast(v);
    if(v && !*p)
    {
        IceInternal::Ex::throwUOE(::SeaBeeSimEvents::CameraConfigMessage::ice_staticId(), v->ice_id());
    }
}
开发者ID:ulyssesrr,项目名称:carmen_lcad,代码行数:11,代码来源:SeaBeeMessages.ice.C


注:本文中的ice::ObjectPtr::ice_id方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。