本文整理汇总了C++中VUUID类的典型用法代码示例。如果您正苦于以下问题:C++ VUUID类的具体用法?C++ VUUID怎么用?C++ VUUID使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VUUID类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: RetainParamGroup
CUAGGroup* RetainParamGroup(CUAGDirectory* directory, VJSParms_callStaticFunction& ioParms, sLONG paramNum)
{
CUAGGroup* result = nil;
if (paramNum <= ioParms.CountParams())
{
if (ioParms.IsStringParam(paramNum))
{
StErrorContextInstaller errs(false);
VString s;
ioParms.GetStringParam(paramNum, s);
result = directory->RetainGroup(s);
if (result == nil)
{
VUUID xid;
xid.FromString(s);
result = directory->RetainGroup(xid);
}
}
else
{
result = ioParms.GetParamObjectPrivateData<VJSGroup>(paramNum);
if (result != nil)
result->Retain();
}
}
return result;
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:27,代码来源:JsUAG.cpp
示例2: removeGroupFromGroup
VError removeGroupFromGroup(VJSParms_callStaticFunction& ioParms, CUAGGroup* inGroup, const VString& s)
{
VError err = VE_OK;
CUAGDirectory* dir = inGroup->GetDirectory();
CUAGGroup* group;
{
StErrorContextInstaller errs(false);
group = dir->RetainGroup(s);
if (group == nil)
{
VUUID id;
id.FromString(s);
group = dir->RetainGroup(id);
}
}
if (group != nil)
{
err = inGroup->RemoveFromGroup(group);
}
else
{
err = ThrowError(VE_UAG_GROUPNAME_DOES_NOT_EXIST, s);
}
QuickReleaseRefCountable(group);
return err;
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:26,代码来源:JsUAG.cpp
示例3: _getID
void VJSSession::_getID( XBOX::VJSParms_getProperty& ioParms, CUAGSession* inSession)
{
VString s;
VUUID xid;
inSession->GetID(xid);
xid.GetString(s);
ioParms.ReturnString(s);
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:8,代码来源:JsUAG.cpp
示例4: GetRootApplication
XBOX::VError VRIAJSRuntimeContext::SetUAGSession(CUAGSession* inSession, bool addSession)
{
VRIAServerProject *application = GetRootApplication();
if (fCurrentUAGSession != NULL)
{
if (fCurrentUAGSession->IsDefault() && !fCurrentUAGSession->IsEmpty() && inSession != NULL)
{
inSession->SetStorageObject(fCurrentUAGSession->GetStorageObject());
}
}
CopyRefCountable(&fCurrentUAGSession, inSession);
if (addSession)
{
VRIAHTTPSessionManager* sessionMgr = fRootApplication->RetainSessionMgr();
if (sessionMgr != NULL)
{
sessionMgr->AddSession(fCurrentUAGSession);
sessionMgr->Release();
}
}
VJSContext jscontext(fGlobalContext);
VJSSessionStorageObject* storage = GetSessionStorageObject();
if (storage == NULL)
{
VJSValue value( jscontext);
value.SetNull();
jscontext.GetGlobalObject().SetProperty( "sessionStorage", value);
}
else
jscontext.GetGlobalObject().SetProperty( "sessionStorage", VJSStorageClass::CreateInstance(jscontext, storage));
CDB4DContext* basecontext = RetainDB4DContext(application);
if (basecontext != NULL)
{
VUUID userID;
userID.SetNull(true);
basecontext->SetCurrentUser(userID, inSession);
basecontext->Release();
}
return VE_OK;
}
开发者ID:rajeshpillai,项目名称:core-Wakanda,代码行数:45,代码来源:VRIAServerJSContextMgr.cpp
示例5: GetVUUID
Boolean IPropertyCollector::GetUUID(VUUID& outID) const
{
Boolean succeed = GetVUUID(CVSTR("uuid"), outID);
if (!succeed)
outID.Clear();
return succeed;
}
开发者ID:sanyaade-webdev,项目名称:core-XToolbox,代码行数:9,代码来源:IPropertyCollector.cpp
示例6: catch
bool VBagLoader::GetUUID( const VValueBag& inBag, VUUID& outUUID)
{
bool ok;
if (fRegenerateUUIDs)
{
VUUID bag_uuid;
ok = inBag.GetVUUID( BagLoaderKeys::uuid, bag_uuid);
if (ok && !bag_uuid.IsNull())
{
try
{
MapVUUID::const_iterator i = fUUIDs.find( bag_uuid);
if (i != fUUIDs.end())
{
outUUID = i->second;
}
else
{
outUUID.Regenerate();
fUUIDs[bag_uuid] = outUUID;
}
}
catch(...)
{
ok = false;
}
}
else
{
outUUID.Regenerate();
}
}
else
{
ok = inBag.GetVUUID( BagLoaderKeys::uuid, outUUID);
if (!ok)
{
outUUID.Regenerate();
}
}
return ok;
}
开发者ID:StephaneH,项目名称:core-XToolbox,代码行数:43,代码来源:VValueBag.cpp
示例7: errs
void VJSDirectory::_getUser(VJSParms_callStaticFunction& ioParms, CUAGDirectory* inDirectory)
{
StErrorContextInstaller errs(false, true);
VString s;
ioParms.GetStringParam(1, s);
CUAGUser* user = inDirectory->RetainUser(s);
if (user == nil)
{
VUUID id;
id.FromString(s);
user = inDirectory->RetainUser(id);
}
if (user == nil)
ioParms.ReturnNullValue();
else
{
ioParms.ReturnValue(VJSUser::CreateInstance(ioParms.GetContext(), user));
user->Release();
}
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:20,代码来源:JsUAG.cpp
示例8: removeGroupFromGroup
VError removeGroupFromGroup(VJSParms_callStaticFunction& ioParms, CUAGGroup* inGroup, const VString& s)
{
VError err = VE_OK;
CUAGDirectory* dir = inGroup->GetDirectory();
CUAGGroup* group = dir->RetainGroup(s);
if (group == nil)
{
VUUID id;
id.FromString(s);
group = dir->RetainGroup(id);
}
if (group != nil)
{
err = inGroup->RemoveFromGroup(group);
}
else
{
err = ThrowError(VE_UAG_GROUPNAME_DOES_NOT_EXIST, s);
}
return err;
}
开发者ID:sanyaade-mobiledev,项目名称:core-Components,代码行数:21,代码来源:JsUAG.cpp
示例9: _setLoginListener
void VJSDirectory::_setLoginListener(VJSParms_callStaticFunction& ioParms, CUAGDirectory* inDirectory)
{
VError err;
VString listenerRef;
if (ioParms.IsStringParam(1))
{
ioParms.GetStringParam(1, listenerRef);
VString groupRef;
CUAGGroup* group = ioParms.GetParamObjectPrivateData<VJSGroup>(2);
if (group == NULL)
ioParms.GetStringParam(2, groupRef);
else
{
VUUID xid;
group->GetID(xid);
xid.GetString(groupRef);
}
inDirectory->SetLoginListener(listenerRef, groupRef);
}
else
XBOX::vThrowError(XBOX::VE_JVSC_WRONG_PARAMETER_TYPE_STRING, "1");
}
开发者ID:StephaneH,项目名称:core-Components,代码行数:22,代码来源:JsUAG.cpp
示例10: GetVUUID
void VUUID::GetVUUID(VUUID& outValue) const
{
outValue.FromVUUID(*this);
}
开发者ID:sanyaade-iot,项目名称:core-XToolbox,代码行数:4,代码来源:VUUID.cpp
示例11: FromVUUID
void VUUID::FromVUUID(const VUUID& inValue)
{
fData = inValue.fData;
_GotValue(inValue.IsNull());
}
开发者ID:sanyaade-iot,项目名称:core-XToolbox,代码行数:5,代码来源:VUUID.cpp
示例12:
VUUID::VUUID(const VUUID& inUUID):VValueSingle(inUUID.IsNull())
{
fCachedConvertedString = NULL;
fData = inUUID.fData;
}
开发者ID:sanyaade-iot,项目名称:core-XToolbox,代码行数:5,代码来源:VUUID.cpp
示例13: switch
VError DB4DJournalParser::NextOperation( uLONG8 &outOperation, uLONG8 *outGlobalOperation, CDB4DJournalData **outJournalData )
{
VError error = VE_OK;
RecordHeader recHeader;
if ( outJournalData )
*outJournalData = NULL;
outOperation = fCurrentOperation;
sLONG8 globaloperation = 0;
if ( fFileStream )
{
uLONG operationTag;
error = fFileStream->GetLong(operationTag);
if ( error == VE_OK )
{
if ( operationTag == kTagLogDB4D )
{
sLONG8 contextID;
DB4D_LogAction logAction;
sLONG len;
sLONG8 curpos;
error = fFileStream->GetLong8(globaloperation);
if ( error == VE_OK )
{
error = fFileStream->GetLong(len);
}
if ( !outJournalData )
{
error = fFileStream->SetPosByOffset( len - 24 );//- 4 /*Tag*/ - 8 /*Operation#*/- 4 /*len*/ - 4 /*len at the end*/ - 4 /*tag at the end*/
}
else
{
if ( error == VE_OK )
error = fFileStream->GetLong((uLONG&)logAction);
if ( error == VE_OK )
error = fFileStream->GetLong8(contextID);
uLONG8 timeStamp;
if (error == VE_OK)
error = fFileStream->GetLong8(timeStamp);
if (error == VE_OK)
{
switch (logAction)
{
case DB4D_Log_OpenData:
case DB4D_Log_CloseData:
case DB4D_Log_StartBackup:
case DB4D_Log_StartTrans:
case DB4D_Log_Commit:
case DB4D_Log_RollBack:
{
*outJournalData = new VDB4DJournalData(globaloperation, logAction,contextID, GetContextExtraData( contextID),timeStamp);
}
break;
case DB4D_Log_CloseContext:
{
*outJournalData = new VDB4DJournalData(globaloperation, logAction,contextID, GetContextExtraData( contextID),timeStamp);
fContextExtraByID.erase(contextID);
}
break;
case DB4D_Log_CreateRecord:
case DB4D_Log_ModifyRecord:
{
VUUID xTableID;
if ( error == VE_OK )
error = recHeader.ReadFromStream(fFileStream);
if ( error == VE_OK )
if ( !recHeader.Match(DBOH_Record) )
error = VE_DB4D_WRONGRECORDHEADER;
if ( error == VE_OK )
error = xTableID.ReadFromStream(fFileStream);
curpos = fFileStream->GetPos();
if ( error == VE_OK )
{
sLONG dataSize = recHeader.GetLen() + sizeof(ChampHeader)*(recHeader.GetNbFields());
error = fFileStream->SetPosByOffset(dataSize);
}
if ( error == VE_OK )
*outJournalData = new VDB4DJournalData(globaloperation, logAction,contextID, GetContextExtraData( contextID),&recHeader,timeStamp, curpos, fFileStream, xTableID);
}
break;
case DB4D_Log_DeleteBlob:
{
VString path;
sLONG blobnumber;
if ( error == VE_OK )
//.........这里部分代码省略.........
开发者ID:sanyaade-iot,项目名称:core-Components,代码行数:101,代码来源:journal_parser.cpp
注:本文中的VUUID类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论