• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ CallMethod函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中CallMethod函数的典型用法代码示例。如果您正苦于以下问题:C++ CallMethod函数的具体用法?C++ CallMethod怎么用?C++ CallMethod使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: bind

void SoapServerInternal::CallMethod(const ::google::protobuf::MethodDescriptor* method,
  ::google::protobuf::RpcController* controller,
  const ::google::protobuf::Message* request,
  ::google::protobuf::Message* response,
  ::google::protobuf::Closure* done)
{
  string serviceName = method->service()->name();
  string methodName = method->name();

  SoapProtocol::ResponseCallback callback = bind(&SoapServerInternal::OnProtobufResponse, this, response, done, placeholders::_1);

  try
  {
    CallMethod(serviceName, methodName, *request, callback);
  }
  catch (exception &e)
  {
    if (controller)
    {
      controller->SetFailed(e.what());
      controller->Failed();
    }
  }
  catch (...)
  {
    if (controller)
    {
      controller->SetFailed("Unknown");
      controller->Failed();
    }
  }
  
}
开发者ID:lodle,项目名称:SoapServer,代码行数:33,代码来源:SoapServerInternal.cpp


示例2: GetClassInfo

 void CTrackManiaRaceInterface::SetCheckPointInfo_TimeText1 ( StringA value )
 {
     static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "CheckPointInfo_TimeText1" );
     CMwStack stack;
     stack.Push ( pMemberInfo );
     CallMethod ( &stack, &value );
 }
开发者ID:osvein,项目名称:TM2Unlimiter,代码行数:7,代码来源:CTrackManiaRaceInterface.Generated.cpp


示例3: GetClassInfo

 void CGameAdvertising::SetMode ( CGameAdvertising::eMode value )
 {
     static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "Mode" );
     CMwStack stack;
     stack.Push ( pMemberInfo );
     CallMethod ( &stack, &value );
 }
开发者ID:osvein,项目名称:TM2Unlimiter,代码行数:7,代码来源:CGameAdvertising.Generated.cpp


示例4: GetClassInfo

 void CPlugBitmapRenderCamera::SetCameraToVisual ( Matrix43 value )
 {
     static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "CameraToVisual" );
     CMwStack stack;
     stack.Push ( pMemberInfo );
     CallMethod ( &stack, &value );
 }
开发者ID:osvein,项目名称:TM2Unlimiter,代码行数:7,代码来源:CPlugBitmapRenderCamera.Generated.cpp


示例5: NetLoadFile

long NetLoadFile(CICell ih, char *filePath)
{
  CICell         netIH;
  NetPartInfoPtr net;
  long           ret, length, triesLeft;
  char           fileSpec[2048];
  
  net = (NetPartInfoPtr)ih;
  
  sprintf(fileSpec, "%s,%s", net->devSpec, filePath);
  
  printf("Opening [%s]...\n", fileSpec);
  
  triesLeft = 10;
  do {
    netIH = Open(fileSpec);
    triesLeft--;
  } while ((netIH == 0) &&  triesLeft);
  if (netIH == 0) return -1;
  
  triesLeft = 10;
  do {
    ret = CallMethod(1, 1, netIH, "load", kLoadAddr, &length);
    if (gOFVersion < kOFVersion3x) {
      if (length == 0) ret = -1;
    }
    triesLeft--;
  } while ((ret != kCINoError) && triesLeft);
  if (ret != kCINoError) return -1;
  
  Close(netIH);
  
  return length;
}
开发者ID:OpenDarwin-CVS,项目名称:SEDarwin,代码行数:34,代码来源:net.c


示例6: GetClassInfo

 void CFuncSegment::SetKeyCount ( uint value )
 {
     static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "KeyCount" );
     CMwStack stack;
     stack.Push ( pMemberInfo );
     CallMethod ( &stack, &value );
 }
开发者ID:osvein,项目名称:TM2Unlimiter,代码行数:7,代码来源:CFuncSegment.Generated.cpp


示例7: GetClassInfo

 void CControlSimi2::SetScaleX ( float value )
 {
     static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "ScaleX" );
     CMwStack stack;
     stack.Push ( pMemberInfo );
     CallMethod ( &stack, &value );
 }
开发者ID:osvein,项目名称:TM2Unlimiter,代码行数:7,代码来源:CControlSimi2.Generated.cpp


示例8: CallMethod

bool PYTHON_ACTION_PLUGIN::GetShowToolbarButton()
{
    PyLOCK lock;

    PyObject* result = CallMethod( "GetShowToolbarButton");

    return PyObject_IsTrue(result);
}
开发者ID:pointhi,项目名称:kicad-source-mirror,代码行数:8,代码来源:pcbnew_action_plugins.cpp


示例9: new

// -----------------------------------------------------------------------------
// CSTSCredentialManager::NewLC
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSTSCredentialManager* CSTSCredentialManager::NewLC()
{
    CSTSCredentialManager* self = new(ELeave) CSTSCredentialManager;
    CallMethod(self,&CSTSCredentialManager::AddToScheduler,self);
    CleanupStack::PushL(self);
    CallMethodL(self,&CSTSCredentialManager::ConstructL,self);
    return self;
}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:13,代码来源:cstscredentialmanager.cpp


示例10:

 std::vector<OpcUa::CallMethodResult> AddressSpaceInMemory::Call(std::vector<OpcUa::CallMethodRequest> methodsToCall)
 {
   std::vector<OpcUa::CallMethodResult>  results;
   for (auto method : methodsToCall)
   {
     results.push_back(CallMethod(method));
   }
   return results;
 }
开发者ID:Harha,项目名称:freeopcua,代码行数:9,代码来源:address_space_internal.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ CallNextEventHandler函数代码示例发布时间:2022-05-30
下一篇:
C++ CallGetService函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap