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


C++ CallMethod函数代码示例

本文整理汇总了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: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例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;未经允许,请勿转载。