Oolite 1.91.0.7658-250404-b1488af
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOLogging.h File Reference
import "OOCocoa.h"
import "OOFunctionAttributes.h"
#include <stdarg.h>
+ Include dependency graph for OOLogging.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OOLog(class, format, ...)
 
#define OOLogWithArguments(class, format, args)
 
#define OOLogIndentIf(class)
 
#define OOLogOutdentIf(class)
 
#define OOLOG_ERROR_PREFIX   @"***** ERROR: "
 
#define OOLOG_WARNING_PREFIX   @"----- WARNING: "
 
#define OOLogERR(class, format, ...)
 
#define OOLogWARN(class, format, ...)
 
#define OOLogGenericParameterError()
 
#define OOLogGenericSubclassResponsibility()
 
#define NSLog(format, ...)
 
#define NSLogv(format, args)
 
#define OODebugLog(class, format, ...)
 
#define OOExtraLog   OOLog
 

Functions

BOOL OOLogWillDisplayMessagesInClass (NSString *inMessageClass)
 
void OOLogIndent (void)
 
void OOLogOutdent (void)
 
void OOLogPushIndent (void)
 
void OOLogPopIndent (void)
 
void OOLogWithPrefix (NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inPrefix, NSString *inFormat,...) OO_TAKES_FORMAT_STRING(6
 
void void OOLogWithFunctionFileAndLine (NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inFormat,...) OO_TAKES_FORMAT_STRING(5
 
void void void OOLogWithFunctionFileAndLineAndArguments (NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inFormat, va_list inArguments) OO_TAKES_FORMAT_STRING(5
 
void OOLogGenericParameterErrorForFunction (const char *inFunction)
 
void OOLogGenericSubclassResponsibilityForFunction (const char *inFunction)
 

Variables

NSString *const kOOLogSubclassResponsibility
 
NSString *const kOOLogParameterError
 
NSString *const kOOLogDeprecatedMethod
 
NSString *const kOOLogAllocationFailure
 
NSString *const kOOLogInconsistentState
 
NSString *const kOOLogException
 
NSString *const kOOLogFileNotFound
 
NSString *const kOOLogFileNotLoaded
 
NSString *const kOOLogOpenGLError
 
NSString *const kOOLogUnconvertedNSLog
 

Macro Definition Documentation

◆ NSLog

#define NSLog ( format,
... )

◆ NSLogv

#define NSLogv ( format,
args )
Value:
#define OOLogWithArguments(class, format, args)
Definition OOLogging.h:89

Definition at line 138 of file OOLogging.h.

◆ OODebugLog

#define OODebugLog ( class,
format,
... )
Value:
do { (void)class; if (0) (void)format; } while (0)

Definition at line 146 of file OOLogging.h.

Referenced by OOCacheManager::clearCache:, OOCacheManager::objectForKey:inCache:, OOCacheManager::removeObjectForKey:inCache:, and OOCacheManager::setObject:forKey:inCache:.

◆ OOExtraLog

#define OOExtraLog   OOLog

Definition at line 152 of file OOLogging.h.

Referenced by Universe::MaintainLinkedLists.

◆ OOLog

#define OOLog ( class,
format,
... )
Value:
do { if (OOLogWillDisplayMessagesInClass(class)) { OOLogWithFunctionFileAndLine(class, OOLOG_FUNCTION_NAME, OOLOG_FILE_NAME, __LINE__, format, ## __VA_ARGS__); }} while (0)
BOOL OOLogWillDisplayMessagesInClass(NSString *inMessageClass)
Definition OOLogging.m:144
void void OOLogWithFunctionFileAndLine(NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inFormat,...) OO_TAKES_FORMAT_STRING(5

Definition at line 88 of file OOLogging.h.

Referenced by ShipEntity::abandonShip, ShipEntity::acceptAsEscort:, PlayerEntity::activateSelectedInterface, PlayerEntity(Scripting)::add:, Universe::addEntity:, PlayerEntity(Scripting)::addEqScriptForKey:, PlayerEntity(Scripting)::addMoon:, PlayerEntity(Scripting)::addPlanet:, PlayerEntity(Scripting)::addShips:, PlayerEntity(Scripting)::addShipsAt:, PlayerEntity(Scripting)::addShipsAtPrecisely:, PlayerEntity(Scripting)::addShipsWithinRadius:, StationEntity(OOPrivate)::addShipToLaunchQueue:withPriority:, PlayerEntity(Scripting)::addSystemShips:, Entity::addToLinkedLists, AddTriangle_slow(), ShipEntity(PureAI)::ai_debugMessage:, OOShipRegistry(Singleton)::allocWithZone:, OORoleSet::anyRole, OODebugMonitor::appendJSConsoleLine:colorKey:emphasisRange:, GameController::applicationDidFinishLaunching:, OOTextureLoader(OOPrivate)::applySettings, ResourceManager::areRequirementsFulfilled:forOXP:andFile:, OOTexture(OOPrivate)::autoreleaseInContext:, PlayerEntity(Scripting)::awardCargo:, PlayerEntity(ScriptMethods)::awardCommodityType:amount:, PlayerEntity(Scripting)::awardEquipment:, PlayerEntity::baseMass, ShipEntity::becomeExplosion, OOOXZManager(NSURLConnectionDataDelegate)::beginDownload:, ShipEntity::behaviour_scripted_ai:, OODebugTCPConsoleClient(OOPrivate)::breakConnectionWithMessage:, OOOXPVerifier(OOPrivate)::buildDependencyGraph, CacheRemoveOldest(), OOJSScript::callMethod:inContext:withArguments:count:result:, OOOXZManager::cancelUpdate, CanonicalizeMaterialSpecifier(), ResourceManager::checkCacheUpToDateForPaths:, OOSunEntity::checkCloseCollisionWith:, PlanetEntity::checkCloseCollisionWith:, OOFileScannerVerifierStage(OOPrivate)::checkConfigFiles, OOFileScannerVerifierStage(OOPrivate)::checkKnownFiles, Entity(OOPrivate)::checkLinkedLists, OOModelVerifierStage(OOPrivate)::checkModel:context:materials:shaders:, ResourceManager::checkOXPMessagesInPath:, OOFileScannerVerifierStage(OOPrivate)::checkPListFormat:file:folder:, ResourceManager::checkPotentialPath:path:, OOFileScannerVerifierStage(OOPrivate)::checkRootFolders, PlayerEntity(Scripting)::checkScript, OOOpenGLExtensionManager(OOPrivate)::checkShadersSupported, OOTextureVerifierStage(OOPrivate)::checkTextureNamed:inFolder:, ClassifyLHSConditionSelector(), AI(OOPrivate)::cleanActions:forHandler:state:stateMachine:, OODebugMonitor::clearJSConsole, ShipEntity(Private)::cloakPassive, NSFileManager(OOExtensions)::commanderContentsOfPath:, PlayerEntity::commodityScriptNamed:, OOScriptTimer::compareByNextFireTime:, CompileSystemDescriptions(), OOOXZManager(NSURLConnectionDataDelegate)::connection:didFailWithError:, OOOXZManager(NSURLConnectionDataDelegate)::connection:didReceiveData:, OOOXZManager(NSURLConnectionDataDelegate)::connection:didReceiveResponse:, OOOXZManager(NSURLConnectionDataDelegate)::connectionDidFinishLoading:, CopyDataFromFile(), OOJavaScriptEngine(Private)::createMainThreadContext, MyOpenGLView::currentScreenSize, ShipEntity::dealEnergyDamage:atRange:withBias:, OOALSoundVorbisCodec::dealloc, OOConcreteTexture::dealloc, Universe::debugDumpEntities, AI::debugDumpPendingMessages, OOJavaScriptEngine::DebuggerHook, PlayerEntity(Scripting)::debugMessage:, PlayerEntity(Scripting)::debugOff, PlayerEntity(Scripting)::debugOn, OOJoystickManager::decodeAxisEvent:, OOJoystickManager::decodeButtonEvent:, DecodeFormat(), PlayerEntity(Scripting)::decrement:, OOMaterial(OOConvenienceCreators)::defaultShaderMaterialWithName:cacheKey:configuration:macros:bindingTarget:, OOPListSchemaVerifier(OOPrivate)::delegateVerifierWithPropertyList:named:failedForProperty:withError:expectedType:, OOPListSchemaVerifier(OOPrivate)::delegateVerifierWithPropertyList:named:testProperty:atPath:againstType:error:, ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, ResourceManager::directoryExists:create:, OOCacheManager(Private)::directoryExists:create:, OODebugMonitor::disconnectDebugger:message:, OODebugMonitor(Private)::disconnectDebuggerWithMessage:, OODebugTCPConsoleClient(OOPrivate)::dispatchPacket:ofType:, OOPNGTextureLoader(OOPrivate)::doLoadTexture, GameController(OOPrivate)::doPerformGameTick, Universe(OOPrivate)::doRemoveEntity:, Universe::drawUniverse, OODebugMonitor::dumpMemoryStatistics, Entity::dumpSelfState, OOMesh::dumpSelfState, PlayerEntity::dumpSelfState, ShipEntity::dumpSelfState, StationEntity::dumpSelfState, WormholeEntity::dumpSelfState, AI::dumpState, Entity::dumpState, DumpVariable(), OOSoundChannel(Private)::enqueueBuffer:, Universe::ensureEntityReallyRemoved:, OOOXZManager(NSURLConnectionDataDelegate)::ensureInstallPath, Universe::entityForUniversalID:, ErrorCallback(), ExportSystemDescriptions(), OOOXZManager(NSURLConnectionDataDelegate)::extractOXZ:, fillSquareImageDataWithCloudTexture(), fillSquareImageWithPlanetTex(), Universe::filterSortedLists, CollisionRegion::findCollisions, MyOpenGLView::findDisplayModeForWidth:Height:Refresh:, Universe::findSystemAtCoords:withGalaxy:, StationEntity::fitsInDock:andLogNoFit:, FloatRGBFromDictColor(), OOConcreteTexture(Private)::forceRebind, ShipEntity::fuelChargeRate, Universe::getContainersOfCommodity:commodity_name:, Universe::getContainersOfGoods:scarce:legal:, OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, PlayerEntity::getDestroyedBy:damageType:, MyOpenGLView::getNativeSize, OOSystemDescriptionManager::getNeighbourIDsForSystem:inGalaxy:, TextureStore::getPlanetTextureNameFor:intoData:width:height:, OOSystemDescriptionManager::getPropertiesForCurrentSystem, OOSystemDescriptionManager::getPropertiesForSystem:inGalaxy:, OOSystemDescriptionManager::getPropertiesForSystemKey:, OOSystemDescriptionManager::getProperty:forSystem:inGalaxy:, Universe::getRandomAmountOfCommodity:, OOSystemDescriptionManager::getRandomSeedForCurrentSystem, OOSystemDescriptionManager::getRandomSeedForSystem:inGalaxy:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, GetShaderSource(), Universe::getSunSkimEndPositionForShip:, Universe::getSunSkimStartPositionForShip:, GLDumpCullingState(), GLDumpFogState(), GLDumpLightState(), GLDumpMaterialState(), GLDumpStateFlags(), GlobalLog(), OODebugTCPConsoleClient(OOPrivate)::handleApproveConnectionPacket:, OODebugTCPConsoleClient(OOPrivate)::handleCloseConnectionPacket:, OOMacJoystickManager::handleDeviceAttach:, OOMacJoystickManager::handleDeviceRemoval:, OOMacJoystickManager::handleJoystickAttach:, Universe::handleOoliteException:, OODebugTCPConsoleClient(OOPrivate)::handleRejectConnectionPacket:, OOSDLJoystickManager::handleSDLEvent:, OOSystemDescriptionManager::importScriptedChanges:, PlayerEntity(Scripting)::increment:, MyOpenGLView::init, OODebugController::init, OOJavaScriptEngine::init, OOMacJoystickManager::init, OOOpenALController::init, OOOXZManager::init, OOSDLJoystickManager::init, OOSoundChannel::init, InitAsyncWorkManager(), MyOpenGLView::initialiseGLWithSize:useVideoMode:, MyOpenGLView::initSplashScreen, OOSunEntity::initSunWithColor:andDictionary:, OODebugTCPConsoleClient::initWithAddress:port:, OOSound::initWithContentsOfFile:, WormholeEntity::initWithDict:, MyOpenGLView::initWithFrame:, Universe::initWithGameView:, OOEquipmentType(Private)::initWithInfo:, ShipEntity::initWithKey:definition:, OOALSoundVorbisCodec::initWithPath:, OOOXPVerifier(OOPrivate)::initWithPath:, OOJSScript::initWithPath:properties:, OOProbabilisticTextureManager::initWithPListName:options:anisotropy:lodBias:seed:, OOSkyQuadSet::initWithQuadsWithTexture:inArray:count:, OORoleSet(OOPrivate)::initWithRolesAndProbabilities:, OOOXZManager(NSURLConnectionDataDelegate)::installableState:, OOOXZManager(NSURLConnectionDataDelegate)::installOXZ:, MyOpenGLView::keyDown:, KeyToIndex(), MyOpenGLView::keyUp:, ShipEntity::landOnPlanet:, StationEntity::launchDefenseShip, StationEntity::launchEscort, StationEntity::launchIndependentShip:, StationEntity::launchMiner, ShipEntity(OOAIStationStubs)::launchPatrol, StationEntity::launchPatrol, StationEntity::launchPirateShip, ShipEntity(Private)::launchPodWithCrew:, StationEntity::launchPolice, StationEntity::launchScavenger, StationEntity::launchShipWithRole:, StationEntity::launchShuttle, OOCacheManager(Private)::loadCache, OOMesh(Private)::loadData:scaleFactor:, OOShipRegistry(OODataLoader)::loadDemoShips, OOCacheManager(Private)::loadDict, OOTextureLoader::loaderWithPath:options:, OOCommodityMarket::loadPlayerAmounts:, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, ResourceManager::loadScripts, OOShipRegistry(OODataLoader)::loadShipData, AI(OOPrivate)::loadStateMachine:jsName:, OOCommodityMarket::loadStationAmounts:, Universe::locationByCode:withSun:andPlanet:, LogOpenGLState(), ResourceManager::logPaths, GameController::logProgress:, OOOpenGLExtensionManager(OOPrivate)::lookUpPerGPUSettingsWithVersionString:extensionsString:, PlayerEntity(OOLoadSavePrivate)::lsCommanders:directory:pageNumber:highlightName:, main(), ResourceManager::manifest:HasUnmetDependency:logErrors:, ResourceManager::manifestAllowedByScenario:, ResourceManager::manifestHasConflicts:logErrors:, ResourceManager::mergeRoleCategories:intoDictionary:, OOCheckShipDataPListVerifierStage(OOPrivate)::message:, PlayerEntity(Scripting)::messageShipAIs:, ShipEntity::missileLaunchPosition, MissionRunCallback(), OOCommodities(OOPrivate)::modifyGood:withScript:atStation:inSystem:localMode:, Universe::newDockWithName:andScaleFactor:, Universe::newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:, Universe::newVisualEffectWithName:, OOMesh::octreeDepth, NSData(OOExtensions)::oo_dataWithOXZFile:, OOCheckOpenGLErrors(), OOCPUInfoInit(), OOGenerateMipMaps(), OOInterpretTextureSpecifier(), OOJSBeginProfiling(), OOJSDumpStack(), OOJSEndProfiling(), OOJSProfileEnter(), OOJSStartTimeLimiterWithTimeLimit_(), OOJSStopTimeLimiter_(), OOJSUnreachable(), OOLogGenericParameterErrorForFunction(), OOLogGenericSubclassResponsibilityForFunction(), OOLogOutputHandlerInit(), OOPrintLogHeader(), OOPropertyListFromData(), OORandomPositionInCylinder(), OOSanitizeLegacyScriptConditionsInternal(), OOSanitizeLegacyScriptInternal(), OOStandardsInternal(), OOFileScannerVerifierStage::pathForFile:inFolder:referencedFrom:checkBuiltIn:, ResourceManager::pathForFileNamed:inFolder:cache:, OOMusicController(Private)::pauseiTunes, OOAsyncCacheWriter::performAsyncTask, OOTextureLoader::performAsyncTask, OOOXPVerifierStage(OOInternal)::performRun, OOMusicController(Private)::playiTunesPlaylist:, OOFileScannerVerifierStage::plistNamed:inFolder:referencedFrom:checkBuiltIn:, PNGError(), MyOpenGLView::pngSaveSurface:withSurface:, PNGWarning(), PlayerEntity(OOControlsPrivate)::pollApplicationControls, MyOpenGLView::pollControls, PlayerEntity(Controls)::pollControls:, PlayerEntity(OOControlsPrivate)::pollDockedControls:, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, MyOpenGLView::populateFullScreenModelist, Universe(OOPrivate)::populateSpaceFromActiveWormholes, ResourceManager::preloadFileListFromOXZ:forFolders:, ResourceManager::preloadFilePathFor:inFolder:atPath:, AI::preserveCurrentStateMachine, OOOXZManager(NSURLConnectionDataDelegate)::processDownloadedManifests, OOOXZManager(NSURLConnectionDataDelegate)::processDownloadedOXZ, PlayerEntity(Scripting)::processSceneDictionary:atOffset:, PlayerEntity(Scripting)::processSceneString:atOffset:, OOOXZManager::processSelection, OOCache::prune, PlayerEntity(LoadSave)::quicksavePlayer, OOConcreteMutableProbabilitySet::randomObject, ShipEntity(PureAI)::randomPauseAI:, Universe::randomShipKeyForRoleRespectingConditions:, AI::reactToMessage:context:, OOOXPVerifier(OOPrivate)::registerBaseStages, OOOXPVerifier::registerStage:, OOTexture(OOPrivate)::releaseInContext:, PlayerEntity(Scripting)::removeAllCargo:, Universe::removeAllEntitiesExceptPlayer, RemoveCallbackAtIndex(), PlayerEntity(Scripting)::removeEqScriptForKey:, PlayerEntity(Scripting)::removeEquipment:, Entity::removeFromLinkedLists, OOOXZManager(NSURLConnectionDataDelegate)::removeOXZ:, PlayerEntity::removeTrumble:, OOMesh::renderOpaqueParts, PlayerEntity(Scripting)::replaceVariablesInString:, ReportJSError(), AI::reportStackOverflow, GameController(OOPrivate)::reportUnhandledStartupException:, OOJavaScriptEngine::reset, OOOpenGLExtensionManager::reset, PlayerEntity(Scripting)::reset:, OOGraphicsResetManager::resetGraphicsState, GuiDisplayGen::resizeTo:characterHeight:title:, AI::restorePreviousStateMachine, OOTexture(OOPrivate)::retainInContext:, ShipEntity(PureAI)::rollD:, OOCheckDemoShipsPListVerifierStage::run, OOCheckEquipmentPListVerifierStage::run, OOCheckPListSyntaxVerifierStage::run, OOCheckRequiresPListVerifierStage::run, OOCheckShipDataPListVerifierStage::run, OOListUnusedFilesStage::run, OOModelVerifierStage::run, OOOXPVerifier(OOPrivate)::run, OOCheckDemoShipsPListVerifierStage(OOPrivate)::runCheckWithDemoShips:shipData:, OOCheckEquipmentPListVerifierStage(OOPrivate)::runCheckWithEquipment:, PlayerEntity(Scripting)::runScriptActions:withContextName:forTarget:, OOOXPVerifier(OOPrivate)::runStages, OOOXPVerifier::runVerificationIfRequested, OOPListScript::runWithTarget:, SanitizeActionStatement(), SanitizeCondition(), SanitizeConditionalStatement(), OOFileScannerVerifierStage(OOPrivate)::scanDirectory:, OOFileScannerVerifierStage(OOPrivate)::scanForFiles, ShipEntity(PureAI)::scanForNearestShipMatchingPredicate:, ShipEntity(PureAI)::scriptActionOnTarget:, PlayerEntity(ScriptingPrivate)::scriptTestCondition:, PlayerEntity(Scripting)::scriptTestConditions:, OOProbabilisticTextureManager::selectTexture, OODebugTCPConsoleClient(OOPrivate)::sendDictionary:, PlayerEntity(Scripting)::set:, ShipEntity(AI)::setAIScript:, PlayerEntity::setCommanderDataFromDictionary:, OODebugMonitor::setConfigurationValue:forKey:, ShipEntity(PureAI)::setCoordinates:, OODebugMonitor::setDebugger:, Universe::setDetailLevel:, PlayerEntity::setDockingClearanceStatus:, PlayerEntity::setExtraGuiScreenKeys:definition:, PlayerEntity(Scripting)::setFuelLeak:, PlayerEntity(Scripting)::setGalacticHyperspaceBehaviourTo:, PlayerEntity(Scripting)::setGalacticHyperspaceFixedCoordsTo:, OOSunEntity::setGoingNova:inTime:, PlayerEntity(Scripting)::setMissionChoicesDictionary:, OOMesh(Private)::setModelFromModelData:name:, GameController::setMouseInteractionMode:, Universe::setNextBeacon:, PlayerEntity(Scripting)::setPlanetinfo:, OOSystemDescriptionManager::setProperties:forSystemKey:, OOSystemDescriptionManager(OOPrivate)::setProperties:inDescription:, OOSystemDescriptionManager::setProperty:forSystemKey:andLayer:toValue:fromManifest:, PlayerEntity(Scripting)::setSpecificPlanetInfo:, ShipEntity::setSubEntityTakingDamage:, ShipEntity(PureAI)::setTakeOffFromPlanet, OODebugMonitor::setTCPIgnoresDroppedPackets:, OOTexture::setTrace:, PlayerEntity::setTrumbleValueFrom:, OOTextureLoader::setUp, PlayerEntity::setUpAndConfirmOK:saveGame:, OOOXPVerifier(OOPrivate)::setUpDependencies:forStage:, OOOXPVerifier(OOPrivate)::setUpDependents:forStage:, OOVisualEffectEntity(Private)::setUpOneStandardSubentity:, ShipEntity::setUpOneStandardSubentity:asTurret:, Universe::setUpPlanet, Universe::setUpSpace, StationEntity::setUpSubEntities, OOConcreteTexture(Private)::setUpTexture, Universe::setUpWitchspaceBetweenSystem:andSystem:, DockEntity::shipIsInDockingCorridor:, OODebugMonitor::showJSConsole, PlayerEntity(Scripting)::showShipModel:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, MyOpenGLView::snapShot:, OOALBufferedSound::soundBuffer, OOALStreamedSound::soundBuffer, Universe::soundNameForCustomSoundKey:, ShipEntity::spawn:, PlayerEntity(Scripting)::spawnShip:, ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, PlayerEntity(LoadSave)::startScenario, OOAIStateMachineVerifierStage::stateMachineNamed:usedByShip:, Entity::subEntityReallyDied:, PlayerEntity(Scripting)::subtract:, ShipEntity(AI)::suggestEscortTo:, PlayerEntity::switchHudTo:, SwitchLogFile(), ResourceManager::systemDescriptionManager, AI::takeAction:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, OoliteApp::terminate:, TessVertexCallback(), OOTextureVerifierStage::textureNamed:usedInContext:, OOTexture::textureWithGenerator:enqueue:, PlayerEntity::tidyMissilePylons, OOShipRegistry(OODataLoader)::translateOldStandardBasicSubentityDeclaration:forShip:shipData:fatalError:, OOShipRegistry(OODataLoader)::translateOldStyleFlasherDeclaration:forShip:fatalError:, TreeInsert(), TreeSplay(), PlayerEntity(OOPrivate)::tryBuyingItem:, PlayerEntity::unloadAllCargoPodsForType:toManifest:, PlayerEntity::unloadCargoPods, PlayerEntity::unloadCargoPodsForType:amount:, OOSoundChannel::update, OOSunEntity::update:, ShipEntity::update:, SkyEntity::update:, Universe::update:, OOOXZManager(NSURLConnectionDataDelegate)::updateAllOXZ, PlayerEntity(StickMapper)::updateFunction:, Entity::updateLinkedLists, PlayerEntity(OOPrivate)::updateTargeting, OOConcreteTexture(Private)::uploadTexture, ResourceManager::userRootPaths, PlayerEntity(Scripting)::useSpecialCargo:, OOAIStateMachineVerifierStage(Private)::validateAI:, ResourceManager::validateManifest:forOXP:, OOSystemDescriptionEntry(OOPrivate)::validateProperty:withValue:, ShipEntity::validForAddToUniverse, ValueIfClass(), OOCheckShipDataPListVerifierStage(OOPrivate)::verboseMessage:, Universe(OOPrivate)::verifyDescriptions, Universe::VerifyDescString, VerifyOpenGLStateInternal(), OOCheckShipDataPListVerifierStage(OOPrivate)::verifyShipInfo:withName:, Entity::warnAboutHostiles, OOMaterial(OOSubclassInterface)::willDealloc, PlayerEntity(OOPrivate)::witchStart, OOScript::worldScriptsAtPath:, OOCacheManager(Private)::write, OOCacheManager(Private)::writeDict:, OODebugMonitor::writeMemStat:, and PlayerEntity(OOLoadSavePrivate)::writePlayerToPath:.

◆ OOLOG_ERROR_PREFIX

#define OOLOG_ERROR_PREFIX   @"***** ERROR: "

Definition at line 109 of file OOLogging.h.

◆ OOLOG_WARNING_PREFIX

#define OOLOG_WARNING_PREFIX   @"----- WARNING: "

Definition at line 110 of file OOLogging.h.

◆ OOLogERR

#define OOLogERR ( class,
format,
... )
Value:
OOLogWithPrefix(class, OOLOG_FUNCTION_NAME, OOLOG_FILE_NAME, __LINE__, OOLOG_ERROR_PREFIX ,format, ## __VA_ARGS__)
void OOLogWithPrefix(NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inPrefix, NSString *inFormat,...) OO_TAKES_FORMAT_STRING(6
#define OOLOG_ERROR_PREFIX
Definition OOLogging.h:109

Definition at line 112 of file OOLogging.h.

Referenced by HeadUpDisplay::addDial:, HeadUpDisplay::addLegend:, OOShipRegistry(OODataLoader)::applyLikeShips:withKey:, ApplyOneOperator(), OODefaultShaderSynthesizer::assignIDForTexture:, OOShipRegistry(OODataLoader)::canonicalizeAndTagSubentities:, OOShipRegistry(OODataLoader)::canonicalizeSubentityDeclaration:forShip:shipData:fatalError:, PlayerEntity(Scripting)::clearMissionDescriptionForMission:, NSFileManager(OOExtensions)::commanderContentsOfPath:, PlayerEntity::createCargoPodWithType:andAmount:, NSFileManager(OOExtensions)::defaultCommanderPath, PlayerEntity::dialMissileStatus, ShipEntity(PureAI)::disengageAutopilot, DockEntity::dockingInstructionsForShip:, HeadUpDisplay(Private)::drawCustomImage:, ExpandDigitKey(), ExpandStringKeyFromDescriptions(), OOMacJoystickManager::handleInputEvent:, WormholeEntity::identFromShip:, MyOpenGLView::init, PlanetEntity(OOPrivate)::initAsAtmosphereForPlanet:dictionary:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, MyOpenGLView::initialiseGLWithSize:useVideoMode:, Universe(OOPrivate)::initTargetFramebufferWithViewSize:, OOTextureLoader::initWithPath:options:, OOJSScript::initWithPath:properties:, PlayerEntity::isDocked, OOVisualEffectEntity(SubEntityRelationship)::isShipWithSubEntityShip:, ShipEntity(SubEntityRelationship)::isShipWithSubEntityShip:, OOScript::jsAIScriptFromFileNamed:properties:, OOScript::jsScriptFromFileNamed:properties:, OOShipRegistry(OODataLoader)::loadAndApplyShipDataOverrides:, OOCombinedEmissionMapGenerator::loadTexture, main(), OOShipRegistry(OODataLoader)::makeShipEntriesMutable:, AI::message:, OOScript::name, OperationCallback(), OODefaultShaderSynthesizer::performStage:, RandomSeedFromString(), AI::reactToMessage:context:, OOShipRegistry(OODataLoader)::removeUnusableEntries:shipMode:, AI::reportStackOverflow, OOScript::runWithTarget:, ScanQuaternionFromString(), ScanVectorAndQuaternionFromString(), ScanVectorFromString(), OOScript::scriptDescription, OOScript::scriptsFromFileAtPath:, OOScript::scriptsFromFileNamed:, ShipEntity::selectMissile, OOCharacter(Private)::setCharacterFromDictionary:, PlayerEntity(Scripting)::setMissionChoicesDictionary:, PlayerEntity(Scripting)::setMissionDescription:forMission:, PlayerEntity(Scripting)::setMissionInstructions:forMission:, PlayerEntity(Scripting)::setMissionInstructionsList:forMission:, Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, Universe::soundNameForCustomSoundKey:, Universe::spawnShip:, ShipEntity(Private)::subEntityReallyDied:, PlayerEntity(OOControlsPrivate)::switchToThisView:fromView:andProcessWeaponFacing:justNotify:, AI::takeAction:, OOTexture::textureWithGenerator:enqueue:, Universe::tradeInValueForCommanderDictionary:, OOShipRegistry(OODataLoader)::translateOldStyleSubentityDeclaration:forShip:shipData:fatalError:, Universe::update:, OOShipRegistry(OODataLoader)::validateNewStyleStandardSubentityDeclaration:forShip:fatalError:, OOShipRegistry(OODataLoader)::validateNewStyleSubentityDeclaration:forShip:fatalError:, Entity::validForAddToUniverse, Universe::VerifyDesc, Universe(OOPrivate)::verifyEntitySessionIDs, OOScript::version, OOScript::worldScriptsAtPath:, and OODefaultShaderSynthesizer::writeLightMaps.

◆ OOLogGenericParameterError

#define OOLogGenericParameterError ( )
Value:
void OOLogGenericParameterErrorForFunction(const char *inFunction)
Definition OOLogging.m:495

Definition at line 125 of file OOLogging.h.

Referenced by EnsureCorrectDataSize(), EntityFromArgumentList(), OOMaterial::name, and OOScalePixMap().

◆ OOLogGenericSubclassResponsibility

◆ OOLogIndentIf

◆ OOLogOutdentIf

◆ OOLogWARN

#define OOLogWARN ( class,
format,
... )
Value:
OOLogWithPrefix(class, OOLOG_FUNCTION_NAME, OOLOG_FILE_NAME, __LINE__, OOLOG_WARNING_PREFIX, format, ## __VA_ARGS__)
#define OOLOG_WARNING_PREFIX
Definition OOLogging.h:110

Definition at line 113 of file OOLogging.h.

Referenced by PlayerEntity(Scripting)::addMoon:, PlayerEntity(Scripting)::addPlanet:, OOTextureLoader(OOPrivate)::applySettings, SkyEntity::changeProperty:withDictionary:, OOSunEntity::changeSunProperty:withDictionary:, AI(OOPrivate)::cleanActions:forHandler:state:stateMachine:, AI(OOPrivate)::cleanHandlers:forState:stateMachine:, MyOpenGLView::createSurface, OOAsyncQueue::dealloc, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, MyOpenGLView::init, MyOpenGLView::initSplashScreen, OOShipRegistry(OODataLoader)::loadAndMergeShipyard:, OOMesh(Private)::loadData:scaleFactor:, OOTextureLoader::loaderWithTextureSpecifier:extraOptions:folder:, AI(OOPrivate)::loadStateMachine:jsName:, OOInterpretTextureSpecifier(), OOLookUpPluralDescriptionPRIV(), ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:toSystem:, PlayerEntity(Controls)::processKeyCode:, SkyEntity(OOPrivate)::readColor1:andColor2:andColor3:andColor4:fromDictionary:, OODefaultShaderSynthesizer::readOneChannelForTextureSpec:mapName:, OODefaultShaderSynthesizer::readRGBForTextureSpec:mapName:, PlayerEntity(Scripting)::removeAllCargo:, RunDeferredOperations(), OOShipRegistry(OODataLoader)::sanitizeConditions:, ShipEntity::selectMissile, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToGameOptionsScreen, Universe::setUpBreakPattern:orientation:forDocking:, ShipEntity::setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, Universe::setUpSpace, Universe::spawnShip:, OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:, TimerFinalize(), OOShipRegistry(OODataLoader)::translateOldStandardBasicSubentityDeclaration:forShip:shipData:fatalError:, OOShipRegistry(OODataLoader)::translateOldStyleSubentityDeclaration:forShip:shipData:fatalError:, OOShipRegistry(OODataLoader)::validateNewStyleFlasherDeclaration:forShip:fatalError:, OOShipRegistry(OODataLoader)::validateNewStyleStandardSubentityDeclaration:forShip:fatalError:, ShipEntity::verifiedMissileTypeFromRole:, OODefaultShaderSynthesizer::writeNormalIfNeeded, and OODefaultShaderSynthesizer::writeTextureCoordRead.

◆ OOLogWithArguments

#define OOLogWithArguments ( class,
format,
args )
Value:
do { if (OOLogWillDisplayMessagesInClass(class)) { OOLogWithFunctionFileAndLineAndArguments(class, OOLOG_FUNCTION_NAME, OOLOG_FILE_NAME, __LINE__, format, args); }} while (0)
void void void OOLogWithFunctionFileAndLineAndArguments(NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inFormat, va_list inArguments) OO_TAKES_FORMAT_STRING(5

Definition at line 89 of file OOLogging.h.

Function Documentation

◆ OOLogGenericParameterErrorForFunction()

void OOLogGenericParameterErrorForFunction ( const char * inFunction)

Definition at line 495 of file OOLogging.m.

496{
497 OOLog(kOOLogParameterError, @"***** %s: bad parameters. (This is an internal programming error, please report it.)", inFunction);
498}
NSString *const kOOLogParameterError
Definition OOLogging.m:647

References kOOLogParameterError, and OOLog.

◆ OOLogGenericSubclassResponsibilityForFunction()

void OOLogGenericSubclassResponsibilityForFunction ( const char * inFunction)

Definition at line 501 of file OOLogging.m.

502{
503 OOLog(kOOLogSubclassResponsibility, @"***** %s is a subclass responsibility. (This is an internal programming error, please report it.)", inFunction);
504}
NSString *const kOOLogSubclassResponsibility
Definition OOLogging.m:646

References kOOLogSubclassResponsibility, and OOLog.

◆ OOLogIndent()

void OOLogIndent ( void )

Definition at line 366 of file OOLogging.m.

367{
368 INDENT_LOCK();
369
371
373}
OOINLINE unsigned GetIndentLevel(void) PURE_FUNC
Definition OOLogging.m:302
OOINLINE void SetIndentLevel(unsigned level)
Definition OOLogging.m:309
#define INDENT_LOCK()
Definition OOLogging.m:298
#define INDENT_UNLOCK()
Definition OOLogging.m:299

References GetIndentLevel(), INDENT_LOCK, INDENT_UNLOCK, and SetIndentLevel().

Referenced by Universe::debugDumpEntities, OODebugMonitor::dumpEntity:withState:parentVisible:, OODebugMonitor::dumpMemoryStatistics, ShipEntity::dumpSelfState, StationEntity::dumpSelfState, Entity::dumpState, GLDumpCullingState(), GLDumpFogState(), GLDumpLightState(), GLDumpMaterialState(), GLDumpStateFlags(), OOMacJoystickManager::handleJoystickAttach:, LogOpenGLState(), OOCheckShipDataPListVerifierStage(OOPrivate)::message:, OOCheckOpenGLErrors(), OOJSBeginProfiling(), OOJSProfileEnter(), OOFileScannerVerifierStage::plistNamed:inFolder:referencedFrom:checkBuiltIn:, AI::reportStackOverflow, OOOXPVerifier(OOPrivate)::runStages, AI::takeAction:, OOCheckShipDataPListVerifierStage(OOPrivate)::verboseMessage:, and VerifyOpenGLStateInternal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OOLogOutdent()

void OOLogOutdent ( void )

Definition at line 376 of file OOLogging.m.

377{
378 INDENT_LOCK();
379
380 unsigned indentLevel = GetIndentLevel();
381 if (indentLevel != 0) SetIndentLevel(indentLevel - 1);
382
384}

References GetIndentLevel(), INDENT_LOCK, INDENT_UNLOCK, and SetIndentLevel().

Referenced by Universe::debugDumpEntities, OODebugMonitor::dumpEntity:withState:parentVisible:, OODebugMonitor::dumpMemoryStatistics, StationEntity::dumpSelfState, GLDumpCullingState(), GLDumpFogState(), GLDumpLightState(), GLDumpMaterialState(), GLDumpStateFlags(), OOMacJoystickManager::handleJoystickAttach:, LogOpenGLState(), OOCheckOpenGLErrors(), OOJSEndProfiling(), OOFileScannerVerifierStage::plistNamed:inFolder:referencedFrom:checkBuiltIn:, AI::reportStackOverflow, OOOXPVerifier(OOPrivate)::runStages, AI::takeAction:, UpdateProfileForFrame(), and VerifyOpenGLStateInternal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OOLogPopIndent()

void OOLogPopIndent ( void )

Definition at line 340 of file OOLogging.m.

341{
342 OOLogIndentStackElement *elem = NULL;
343 NSMutableDictionary *threadDict = nil;
344 NSValue *val = nil;
345
346 threadDict = [[NSThread currentThread] threadDictionary];
347 val = [threadDict objectForKey:kIndentStackKey];
348
349 elem = [val pointerValue];
350
351 if (elem != NULL)
352 {
353 [threadDict setObject:[NSNumber numberWithUnsignedInt:elem->indent] forKey:kIndentLevelKey];
354 [threadDict setObject:[NSValue valueWithPointer:elem->link] forKey:kIndentStackKey];
355 free(elem);
356 }
357 else
358 {
359 OOLogInternal(OOLOG_BAD_POP_INDENT, @"OOLogPopIndent(): state stack underflow.");
360 }
361}
static NSString *const kIndentStackKey
Definition OOLogging.m:53
#define OOLogInternal(cond, format,...)
Definition OOLogging.m:106
static NSString *const kIndentLevelKey
Definition OOLogging.m:52
#define OOLOG_BAD_POP_INDENT
Definition OOLogging.m:68
return nil
OOLogIndentStackElement * link
Definition OOLogging.m:76

References nil, OOLOG_BAD_POP_INDENT, and OOLogInternal.

Referenced by ShipEntity::dumpSelfState, Entity::dumpState, AI(OOPrivate)::loadStateMachine:jsName:, OOOXPVerifierStage(OOInternal)::performRun, OOOXPVerifier(OOPrivate)::runStages, and OOCheckShipDataPListVerifierStage(OOPrivate)::verifyShipInfo:withName:.

+ Here is the caller graph for this function:

◆ OOLogPushIndent()

void OOLogPushIndent ( void )

Definition at line 316 of file OOLogging.m.

317{
318 OOLogIndentStackElement *elem = NULL;
319 NSMutableDictionary *threadDict = nil;
320 NSValue *val = nil;
321
322 elem = malloc(sizeof *elem);
323 if (elem != NULL)
324 {
325 threadDict = [[NSThread currentThread] threadDictionary];
326 val = [threadDict objectForKey:kIndentStackKey];
327
328 elem->indent = [[threadDict objectForKey:kIndentLevelKey] intValue];
329 elem->link = [val pointerValue];
330
331 /*
332 Clang static analyzer reports elem not released here. It is in fact
333 released in OOLogPopIndent().
334 */
335 [threadDict setObject:[NSValue valueWithPointer:elem] forKey:kIndentStackKey];
336 }
337}

References OOLogIndentStackElement::indent, OOLogIndentStackElement::link, and nil.

Referenced by ShipEntity::dumpSelfState, Entity::dumpState, AI(OOPrivate)::loadStateMachine:jsName:, OOOXPVerifierStage(OOInternal)::performRun, OOOXPVerifier(OOPrivate)::runStages, and OOCheckShipDataPListVerifierStage(OOPrivate)::verifyShipInfo:withName:.

+ Here is the caller graph for this function:

◆ OOLogWillDisplayMessagesInClass()

BOOL OOLogWillDisplayMessagesInClass ( NSString * inMessageClass)

Definition at line 144 of file OOLogging.m.

145{
146 id value = nil;
147
148 if (!Inited()) return NO;
149
151
152 [sLock lock];
153
154 // Look for cached value
155 value = [sDerivedSettingsCache objectForKey:inMessageClass];
156 if (EXPECT_NOT(value == nil))
157 {
158 @try
159 {
160 // No cached value.
161 value = ResolveDisplaySetting(inMessageClass);
162
163 if (value != nil)
164 {
165 if (EXPECT_NOT(sDerivedSettingsCache == nil)) sDerivedSettingsCache = [[NSMutableDictionary alloc] init];
166 [sDerivedSettingsCache setObject:value forKey:inMessageClass];
167 }
168 }
169 @catch (id exception)
170 {
171 [sLock unlock];
172 @throw exception;
173 }
174 }
175 [sLock unlock];
176
177 OOLogInternal(OOLOG_SETTING_RETRIEVE, @"%@ is %s", inMessageClass, (value == kTrueToken) ? "on" : "off");
178 return value == kTrueToken;
179}
#define EXPECT_NOT(x)
static NSString *const kTrueToken
Definition OOLogging.m:100
#define OOLOG_SETTING_RETRIEVE
Definition OOLogging.m:64
static BOOL sOverrideValue
Definition OOLogging.m:97
OOINLINE BOOL Inited(void)
Definition OOLogging.m:136
static NSLock * sLock
Definition OOLogging.m:83
static BOOL sOverrideInEffect
Definition OOLogging.m:96
static id ResolveDisplaySetting(NSString *inMessageClass)
Definition OOLogging.m:861
static NSMutableDictionary * sDerivedSettingsCache
Definition OOLogging.m:85

References EXPECT_NOT, Inited(), kTrueToken, nil, OOLOG_SETTING_RETRIEVE, OOLogInternal, ResolveDisplaySetting(), sDerivedSettingsCache, sOverrideInEffect, and sOverrideValue.

Referenced by Universe::addEntity:, ConsoleDisplayMessagesInClass(), Universe::debugDumpEntities, OODebugController::dumpEntityListAction:, ShipEntity::dumpSelfState, Entity::dumpState, GlobalLog(), OOMacJoystickManager::handleDeviceAttach:, OOMacJoystickManager::handleJoystickAttach:, ResourceManager::loadScripts, LogOpenGLState(), OOCheckOpenGLErrors(), OOLogWithFunctionFileAndLineAndArguments(), OOLogWithPrefix(), OONSLogCStringFunction(), ReportJSError(), AI::reportStackOverflow, SyntaxIssue(), OODebugController::toggleThisLogMessageClassAction:, OOCheckShipDataPListVerifierStage(OOPrivate)::verboseMessage:, and VerifyOpenGLStateInternal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OOLogWithFunctionFileAndLine()

void void OOLogWithFunctionFileAndLine ( NSString * inMessageClass,
const char * inFunction,
const char * inFile,
unsigned long inLine,
NSString * inFormat,
... )

References OO_TAKES_FORMAT_STRING, and OOLogWithFunctionFileAndLine().

Referenced by OOLogWithFunctionFileAndLine(), and OONSLogCStringFunction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OOLogWithFunctionFileAndLineAndArguments()

void void void OOLogWithFunctionFileAndLineAndArguments ( NSString * inMessageClass,
const char * inFunction,
const char * inFile,
unsigned long inLine,
NSString * inFormat,
va_list inArguments )

References OO_TAKES_FORMAT_STRING, and OOLogWithFunctionFileAndLineAndArguments().

Referenced by OOCheckShipDataPListVerifierStage(OOPrivate)::message:, OOLogWithFunctionFileAndLineAndArguments(), SyntaxIssue(), and OOCheckShipDataPListVerifierStage(OOPrivate)::verboseMessage:.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OOLogWithPrefix()

void OOLogWithPrefix ( NSString * inMessageClass,
const char * inFunction,
const char * inFile,
unsigned long inLine,
NSString * inPrefix,
NSString * inFormat,
... )

Variable Documentation

◆ kOOLogAllocationFailure

NSString* const kOOLogAllocationFailure
extern

◆ kOOLogDeprecatedMethod

NSString* const kOOLogDeprecatedMethod
extern

Definition at line 648 of file OOLogging.m.

◆ kOOLogException

◆ kOOLogFileNotFound

◆ kOOLogFileNotLoaded

NSString* const kOOLogFileNotLoaded
extern

Definition at line 653 of file OOLogging.m.

◆ kOOLogInconsistentState

◆ kOOLogOpenGLError

NSString* const kOOLogOpenGLError
extern

Definition at line 654 of file OOLogging.m.

Referenced by OOCheckOpenGLErrors().

◆ kOOLogParameterError

◆ kOOLogSubclassResponsibility

NSString* const kOOLogSubclassResponsibility
extern

◆ kOOLogUnconvertedNSLog

NSString* const kOOLogUnconvertedNSLog
extern

Definition at line 655 of file OOLogging.m.