Beispiel #1
0
	/**
	 * @brief Update tags attached to an entity.
	 */
	void UpdateTags( gentity_t *ent )
	{
		// buildables are supposed to be static
		if( ent->s.eType == ET_BUILDABLE )
			return;

		if( ent->alienTag )
			UpdateTag( ent->alienTag, ent );
		if( ent->humanTag )
			UpdateTag( ent->humanTag, ent );
	}
Beispiel #2
0
bool CWizDatabase::UpdateTags(const std::deque<WIZTAGDATA>& arrayTag)
{
    if (arrayTag.empty())
        return false;

    __int64 nVersion = -1;

    bool bHasError = false;
    std::deque<WIZTAGDATA>::const_iterator it;
    for (it = arrayTag.begin(); it != arrayTag.end(); it++)
    {
        const WIZTAGDATA& tag = *it;

        Q_EMIT processLog("tag: " + tag.strName);

        if (!UpdateTag(tag))
        {
            bHasError = true;
        }

        nVersion = std::max<__int64>(nVersion, tag.nVersion);
    }
    if (!bHasError)
    {
        SetObjectVersion(WIZTAGDATA::ObjectName(), nVersion);
    }

    return !bHasError;
}
Beispiel #3
0
void tag() {
  const char* turl = gSystem->Getenv("ALIEN_JDL_OUTPUTDIR");
	
  gSystem->Load("libNet.so");
  //  gSystem->Load("libMonaLisa.so");
	
  //  new TMonaLisaWriter(0, "GridAliRoot-tag.C", 0, 0, "global");
	
  
  TString fESDFileName = "alien://";
  fESDFileName += turl;
  fESDFileName += "/AliESDs.root";  
	
  TString fGUID = 0;
  GetGUID(fGUID);
	
  gEnv->Print();
	
  TString fAliroot, fRoot, fGeant;
  GetVersions(fAliroot,fRoot,fGeant);
	
  TString fPeriod, fPass, fName;
  GetProductionInfo(fPeriod, fPass, fName);
	
  UpdateTag(fAliroot,fRoot,fGeant,fESDFileName,fGUID,fPeriod,fPass,fName);
}
Beispiel #4
0
void Update(LISTE *tags,TMxMsg *msg)
{	int i;
	if (TEST) return;
	char tagname[30];
	for(i=0;i<10;i++)
	{
		if (GetTagName(tags,msg->Variables[i].Repere,tagname))
		{
			UpdateTag(tagname,msg->Variables[i].Value);
			Log(LOG_DEBUG,"Update [%s] %d = %s\n",tagname,msg->Variables[i].Repere,msg->Variables[i].Value);
		}
	};
}
Beispiel #5
0
void tag() {
  const char* turl = gSystem->Getenv("ALIEN_JDL_OUTPUTDIR");
  TString fESDFileName = "alien://";
  fESDFileName += turl;
  fESDFileName += "/AliESDs.root";  

  TString fGUID = 0;
  GetGUID(fGUID);

  TString fAliroot, fRoot, fGeant;
  GetVersions(fAliroot,fRoot,fGeant);

  UpdateTag(fAliroot,fRoot,fGeant,fESDFileName,fGUID);
}