Bazaar developer reference

CvGlobals::getInfoTypeForString(const char *, bool) const

Defined in
CvGlobals.cpp, line 6280
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getInfoTypeForString

Hooks

static bool BeforeCvGlobals_getInfoTypeForString(const CvGlobals* self, const char* szType, bool hideAssert, int& result);static void AfterCvGlobals_getInfoTypeForString(const CvGlobals* self, const char* szType, bool hideAssert, int& result);static int ReplaceCvGlobals_getInfoTypeForString(int (*original)(const CvGlobals*, const char*, bool), const CvGlobals* self, const char* szType, bool hideAssert);CivRegisterBefore<CivHooks::CvGlobals_getInfoTypeForString>(host, &BeforeCvGlobals_getInfoTypeForString);CivRegisterAfter<CivHooks::CvGlobals_getInfoTypeForString>(host, &AfterCvGlobals_getInfoTypeForString);CivRegisterReplace<CivHooks::CvGlobals_getInfoTypeForString>(host, &ReplaceCvGlobals_getInfoTypeForString);

Code

6280int CvGlobals::getInfoTypeForString(const char* szType, bool hideAssert) const6281{6282	if(!hideAssert)6283	{6284		CvAssertMsg(szType, "null info type string");6285	}62866287	if(szType == NULL)6288		return -1;628962906291	InfosMap::const_iterator it = m_infosMap.find(szType);6292	if(it!=m_infosMap.end())6293	{6294		return it->second;6295	}62966297	if(!hideAssert)6298	{6299		//6300		// *** EFB: Need to restore this logging??? ***6301		//6302		CvString strError;6303		strError.Format("Info type %s not found.", szType);6304		CvAssertMsg(strcmp(szType, "NONE")==0 || strcmp(szType, "")==0, strError.c_str());6305//		gDLL->logMsg("xml.log", szError);6306	}63076308	return -1;6309}

Calls

Called by

203 functions in 43 files