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


C++ VJSParms_callStaticFunction::ReturnBool方法代码示例

本文整理汇总了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);
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:17,代码来源:JsUAG.cpp

示例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()");
}
开发者ID:sanyaade-webdev,项目名称:core-XToolbox,代码行数:11,代码来源:VJSRuntime_stream.cpp

示例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);
}
开发者ID:sanyaade-mobiledev,项目名称:core-Components,代码行数:13,代码来源:JsUAG.cpp

示例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);
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:14,代码来源:JsUAG.cpp

示例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);
}
开发者ID:sanyaade-mobiledev,项目名称:core-Components,代码行数:21,代码来源:JsUAG.cpp

示例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);
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:22,代码来源:JsUAG.cpp

示例7: _IsByteSwapping

void VJSStream::_IsByteSwapping(VJSParms_callStaticFunction& ioParms, VStream* inStream)
{
	ioParms.ReturnBool(inStream->NeedSwap());
}
开发者ID:sanyaade-webdev,项目名称:core-XToolbox,代码行数:4,代码来源:VJSRuntime_stream.cpp

示例8: _tryLock

void VJSStorageClass::_tryLock (VJSParms_callStaticFunction &ioParms, VJSStorageObject *inStorageObject)
{
	xbox_assert(inStorageObject != NULL);

	ioParms.ReturnBool(inStorageObject->TryLock());
}
开发者ID:StephaneH,项目名称:core-XToolbox,代码行数:6,代码来源:VJSWebStorage.cpp

示例9: _hasAdministrator

void VJSDirectory::_hasAdministrator(VJSParms_callStaticFunction& ioParms, CUAGDirectory* inDirectory)
{
	ioParms.ReturnBool(! inDirectory->NoAdmin());
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:4,代码来源:JsUAG.cpp


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