本文整理汇总了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();
}
}
}
示例2: GetClassInfo
void CTrackManiaRaceInterface::SetCheckPointInfo_TimeText1 ( StringA value )
{
static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "CheckPointInfo_TimeText1" );
CMwStack stack;
stack.Push ( pMemberInfo );
CallMethod ( &stack, &value );
}
示例3: GetClassInfo
void CGameAdvertising::SetMode ( CGameAdvertising::eMode value )
{
static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "Mode" );
CMwStack stack;
stack.Push ( pMemberInfo );
CallMethod ( &stack, &value );
}
示例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;
}
示例5: GetClassInfo
void CPlugBitmapRenderCamera::SetCameraToVisual ( Matrix43 value )
{
static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "CameraToVisual" );
CMwStack stack;
stack.Push ( pMemberInfo );
CallMethod ( &stack, &value );
}
示例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;
}
示例7: GetClassInfo
void CFuncSegment::SetKeyCount ( uint value )
{
static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "KeyCount" );
CMwStack stack;
stack.Push ( pMemberInfo );
CallMethod ( &stack, &value );
}
示例8: GetClassInfo
void CControlSimi2::SetScaleX ( float value )
{
static CMwMemberInfo* pMemberInfo = GetClassInfo ()->GetMemberInfo ( "ScaleX" );
CMwStack stack;
stack.Push ( pMemberInfo );
CallMethod ( &stack, &value );
}
示例9: CallMethod
bool PYTHON_ACTION_PLUGIN::GetShowToolbarButton()
{
PyLOCK lock;
PyObject* result = CallMethod( "GetShowToolbarButton");
return PyObject_IsTrue(result);
}
示例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;
}