9 #ifndef GwNavGen_GeneratorRunOptions_H
10 #define GwNavGen_GeneratorRunOptions_H
30 class GeneratorRunOptionsBlob
33 KY_ROOT_BLOB_CLASS(Generator, GeneratorRunOptionsBlob, 0)
36 GeneratorRunOptionsBlob() {}
37 BlobFieldArray m_fields;
41 SwapEndianness(e,
self.m_fields);
48 class GeneratorRunOptions
78 KyResult ReadBlob(
const GeneratorRunOptionsBlob& blob);
79 KyResult ReadFromAggregate(BlobAggregate& aggregate);
81 void InitBlobFieldsMapping(BlobFieldsMapping& mapping);
82 void InitBlobFieldsMapping(BlobFieldsMapping& mapping)
const;
166 template <
class OSTREAM>
169 os << KY_LOG_SMALL_TITLE_BEGIN(
"",
"GeneratorRunOptions");
181 os <<
"doProfile : " << runOptions.
m_doProfile << Endl;
187 os << KY_LOG_SMALL_TITLE_END(
"",
"GeneratorRunOptions");
193 class GeneratorRunOptionsBlobBuilder :
public BaseBlobBuilder<GeneratorRunOptionsBlob>
196 GeneratorRunOptionsBlobBuilder(
const GeneratorRunOptions* runOptions) : m_runOptions(runOptions) {}
198 virtual void DoBuild();
199 const GeneratorRunOptions* m_runOptions;
205 #endif // GwNavGen_GeneratorRunOptions_H
bool DoReallyUseMultiCore() const
Indicates whether or not the Generator will actually use parallel processing.
Definition: generatorrunoptions.h:75
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
KyUInt32 m_limitedMemoryModeTileSizeInNbCells
Size of the internally used tiles for large scale generations and/or running generation with low memo...
Definition: generatorrunoptions.h:130
String m_generatorInputOuputSaveFileName
FileName of the saved GeneratorInputOutput.
Definition: generatorrunoptions.h:103
bool DoReallyUseVisualDebug() const
For internal use.
Definition: generatorrunoptions.h:78
void Clear()
Reset members as if the object was freshly constructed.
GeneratorVisualDebugOptions m_visualDebugOptions
For internal use. Do not modify.
Definition: generatorrunoptions.h:169
bool m_doWriteColDataFiles
Determines whether or not .ColData files are written.
Definition: generatorrunoptions.h:115
The BlobHandler class is a top-level mechanism for serializing blobs between objects in memory and fi...
Definition: blobhandler.h:45
IntermediateFilesConfig m_intermediateFiles
Contains configuration parameters that relate to the generation of intermediate data files...
Definition: generatorrunoptions.h:172
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
KyUInt32 m_outputFilesEndianness
Determines the endianness of the final output files.
Definition: generatorrunoptions.h:136
void AddCellToBuild(const CellPos &pos)
Restricts NavData generation to the specified cell, and generates intermediate data for that cell...
Definition: generatorrunoptions.h:71
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
bool m_doLogReportDetails
Determines whether or not the Generator will log verbose details in its report for each run...
Definition: generatorrunoptions.h:158
bool m_doLogReport
Determines whether or not the Generator will log a report the results of each run.
Definition: generatorrunoptions.h:154
This class provides information about Gameware Navigation version.
Definition: version.h:20
const IntermediateFilesConfig & Intermediates() const
Read accessor for m_intermediateFiles.
Definition: generatorrunoptions.h:64
bool m_doLogPerSectorReport
Determines whether or not the Generator will log per Sector information in its report for each run...
Definition: generatorrunoptions.h:162
KyUInt32 m_generationRevision
Incremented each time a Generator operates on the GeneratorInputOutput.
Definition: generatorrunoptions.h:93
bool m_doLogProgress
Determines whether or not the Generator will log the progress of the Generation, useful from very lon...
Definition: generatorrunoptions.h:166
This class defines a two-dimensional vector whose coordinates are stored using 32-bit integers...
Definition: vec2i.h:26
Definition: gamekitcrowddispersion.h:20
bool m_doEnableLimitedMemoryMode
Determines whether or not the input geometry consumption is buffered to avoid exceeding the memory li...
Definition: generatorrunoptions.h:124
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
BaseBlobBuilder is an abstract base class that builds a blob within a contiguous block of memory...
Definition: baseblobbuilder.h:30
The GeneratorRunOptions class contains configuration parameters that control the way in which the Gen...
Definition: generatorrunoptions.h:49
bool m_doSaveGeneratorInputOutput
Determines whether or not the Generator saves the GeneratorInputOutput content.
Definition: generatorrunoptions.h:99
bool m_doWriteNavDataFiles
Determines whether or not .NavData files are written.
Definition: generatorrunoptions.h:111
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
bool m_doUseTlsIfAvailable
Determines whether or not the Generator uses thread local storage when an ITlsAlloc object is provide...
Definition: generatorrunoptions.h:140
void SetDefaultValues()
alias for Clear()
Definition: generatorrunoptions.h:61
bool m_doLogConfiguration
Determines whether or not the Generator will log its configuration parameters in its report for each ...
Definition: generatorrunoptions.h:149
bool m_doProfile
Determines whether or not the Generator will profile its CPU performance.
Definition: generatorrunoptions.h:144
bool m_doMultiCore
Determines whether or not the NavData generation system spreads computations across all available CPU...
Definition: generatorrunoptions.h:107