本文整理汇总了C++中VJSParms_callStaticFunction::ReturnBool方法的典型用法代码示例。如果您正苦于以下问题:C++ VJSParms_callStaticFunction::ReturnBool方法的具体用法?C++ VJSParms_callStaticFunction::ReturnBool怎么用?C++ VJSParms_callStaticFunction::ReturnBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VJSParms_callStaticFunction
的用法示例。
在下文中一共展示了VJSParms_callStaticFunction::ReturnBool方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _save
void VJSDirectory::_save(VJSParms_callStaticFunction& ioParms, CUAGDirectory* inDirectory)
{
VFile* dest = ioParms.RetainFileParam(1);
if (dest != nil || ioParms.CountParams() == 0)
ioParms.ReturnBool(inDirectory->Save(dest) == VE_OK);
else {
XBOX::vThrowError(XBOX::VE_JVSC_WRONG_PARAMETER_TYPE_FILE, "1");
ioParms.ReturnBool(false);
}
QuickReleaseRefCountable(dest);
}
示例2: _End
void VJSTextStream::_End (VJSParms_callStaticFunction &ioParms, VJSTextStreamState *inStreamState)
{
if (inStreamState != NULL && inStreamState->fStream->IsReading())
ioParms.ReturnBool(!inStreamState->fBuffer.GetLength()
&& inStreamState->fStream->GetSize() <= inStreamState->fStream->GetPos());
else
XBOX::vThrowError(XBOX::VE_JVSC_INVALID_STATE, L"TextStream.end()");
}
示例3: _belongsTo
void VJSSession::_belongsTo(VJSParms_callStaticFunction& ioParms, CUAGSession* inSession)
{
bool ok = false;
CUAGGroup* group = RetainParamGroup(inSession->GetDirectory(), ioParms, 1);
if (group != nil)
{
ok = inSession->BelongsTo(group);
}
QuickReleaseRefCountable(group);
ioParms.ReturnBool(ok);
}
示例4: _belongsTo
void VJSSession::_belongsTo(VJSParms_callStaticFunction& ioParms, CUAGSession* inSession)
{
bool ok = false;
CUAGGroup* group = RetainParamGroup(inSession->GetDirectory(), ioParms, 1);
if (group != nil)
{
CUAGThreadPrivilege* privileges = static_cast<CUAGThreadPrivilege*>(ioParms.GetContext().GetGlobalObjectPrivateInstance()->GetSpecific('uagX'));
ok = inSession->BelongsTo(group, privileges);
}
QuickReleaseRefCountable(group);
ioParms.ReturnBool(ok);
}
示例5: _checkPermission
void VJSSession::_checkPermission(VJSParms_callStaticFunction& ioParms, CUAGSession* inSession)
{
bool ok = false;
CUAGGroup* group = RetainParamGroup(inSession->GetDirectory(), ioParms, 1);
if (group != nil)
{
ok = inSession->BelongsTo(group);
}
if (!ok)
{
VString groupName;
if (group != nil)
group->GetName(groupName);
ThrowError(VE_UAG_SESSION_FAILED_PERMISSION, groupName);
}
QuickReleaseRefCountable(group);
ioParms.ReturnBool(ok);
}
示例6: _checkPermission
void VJSSession::_checkPermission(VJSParms_callStaticFunction& ioParms, CUAGSession* inSession)
{
bool ok = false;
CUAGGroup* group = RetainParamGroup(inSession->GetDirectory(), ioParms, 1);
if (group != nil)
{
CUAGThreadPrivilege* privileges = static_cast<CUAGThreadPrivilege*>(ioParms.GetContext().GetGlobalObjectPrivateInstance()->GetSpecific('uagX'));
ok = inSession->BelongsTo(group, privileges);
}
if (!ok)
{
VString groupName;
if (group != nil)
group->GetName(groupName);
ThrowError(VE_UAG_SESSION_FAILED_PERMISSION, groupName);
}
QuickReleaseRefCountable(group);
ioParms.ReturnBool(ok);
}
示例7: _IsByteSwapping
void VJSStream::_IsByteSwapping(VJSParms_callStaticFunction& ioParms, VStream* inStream)
{
ioParms.ReturnBool(inStream->NeedSwap());
}
示例8: _tryLock
void VJSStorageClass::_tryLock (VJSParms_callStaticFunction &ioParms, VJSStorageObject *inStorageObject)
{
xbox_assert(inStorageObject != NULL);
ioParms.ReturnBool(inStorageObject->TryLock());
}
示例9: _hasAdministrator
void VJSDirectory::_hasAdministrator(VJSParms_callStaticFunction& ioParms, CUAGDirectory* inDirectory)
{
ioParms.ReturnBool(! inDirectory->NoAdmin());
}