Public Member Functions |
| | DtVrfConfigurationFileComposer () |
| | Constructor.
|
| virtual | ~DtVrfConfigurationFileComposer () |
| | Destructor.
|
| virtual bool | init () |
| | initializes myObjectMap and myBackendMap
|
| virtual bool | readObjectMap (const DtFilename &objectMap) |
| | Reads the given object map into myObjectMap.
|
| virtual bool | readObjectMapFromZipFile (const DtFilename &scenarioZipFile, const DtFilename &objectMap) |
virtual std::set
< DtSimulationAddress > | scenarioBackends () const |
| | Get a list of backends referenced in myObjectMap.
|
| virtual DtBackendMap * | backendMap () |
| | returns myBackendMap
|
| virtual DtAddressMap * | objectMap () |
| | returns myObjectMap
|
| virtual bool | composeOrderOfBattleFile (const DtFilename &targetFileName, const DtList &files, DtString &sError, void *zf=0) |
| | Concatenates all the order of battles files pointed to in the files DtList into one single file named targetFileName.
|
| virtual bool | saveOrderOfBattleToZipFile (const DtFilename &targetFileName, const DtList &files, DtString &sError, void *zf=0) |
| | Saves the order of battle file information to the specified zip file.
|
| virtual bool | saveOrderOfBattleToFile (const DtFilename &targetFileName, const DtList &files, DtString &sError) |
| virtual bool | composeScenarioScriptsFile (const DtFilename &targetFileName, const DtString &files, void *zf=0) |
| | Concatenates all the scenario script files pointed to in the files DtList into one single file named targetFileName.
|
| virtual bool | composeOrbatFile (const DtFilename &targetFileName, const DtString &files, void *zf=0) |
| | Concatenates all the orbat files pointed to in the files DtList into one single file named targetFileName.
|
| virtual bool | composePlanFile (const DtFilename &targetFileName, const DtList &files, void *zf=0) |
| | Concatenates all the plan files pointed to in the files DtList into one single file named targetFileName.
|
| virtual bool | composeHostilityFile (const DtFilename &targetFileName, const DtList &files, void *zf=0) |
| | Concatenates all the force hostility files pointed to in the files DtList into one single file named targetFileName.
|
| virtual bool | composeScenarioExtrasFile (const DtFilename &targetFileName, const DtList &files, void *zf=0) |
| | Concatenates all the force scenario-extras files pointed to in the files DtList into one single file named targetFileName.
|
| virtual bool | createMapFile (const DtFilename &targetFileName, const DtList &simAddresses, const DtList &oobFiles, const DtList &planFiles, bool preserveMappings=true, void *zf=0) |
| | Creates a map file named targetFileName.
|
| std::vector< DtFilename > & | customComponentAttachmentFilenames () |
| const std::vector< DtFilename > & | customComponentAttachmentFilenames () const |
| virtual bool | decompose (const DtFilename &orderOfBattle, const DtFilename &plan, const DtFilename &globalPlan, bool &hasGlobalWeatherObject, bool &hasGlobalDynamicTerrainObject) |
| | Decompose the given .oob and .pln files into separate files for each back-end based on the omp file.
|
| virtual bool | decomposeFromZipFile (const DtFilename &scenarioZipFile, const DtFilename &orderOfBattle, const DtFilename &plan, const DtFilename &globalPlan, bool &hasGlobalWeatherObject, bool &hasGlobalDynamicTerrainObject) |
| virtual bool | decomposeScenarioScriptsFile (const DtFilename &) |
| | Decomposes the scenario script file.
|
| virtual bool | decomposeScenarioScriptsFromZipFile (const DtFilename &scenarioZipFile, const DtFilename &scriptsFile) |
| virtual bool | decomposeOrbatFile (const DtFilename &) |
| | Decomposes the orbat file.
|
| virtual bool | decomposeOrbatFromZipFile (const DtFilename &scenarioZipFile, const DtFilename &orbatFile) |
| virtual bool | decomposeComponentAttachmentFile (const DtFilename &originalFile, unsigned numBackends) |
| | Split the indicated component attachment file into separate temporary files, for distribution during scenario load.
|
| virtual const DtFilename & | getComponentAttachmentFile (unsigned idx) const |
| | Get the componentAttachmentFile for a given back end, by index.
|
| virtual const DtFilename & | tempDirectory () |
| | Set/Get the temp directory where generated file names will get stored.
|
| virtual void | setTempDirectory (const DtFilename &f) |
| virtual void | setFilePrefix (const DtString &) |
| | Sets a prefix to add before the default temp file name.
|
| virtual const DtString & | filePrefix () const |
|
| virtual DtFilename * | getOrderOfBattleFile (const DtSimulationAddress &addr) const |
| | Get a configuration file for the given simulation address.
|
| virtual DtFilename * | getScenarioScriptsFile (const DtSimulationAddress &addr) const |
| virtual DtFilename * | getOrbatFile (const DtSimulationAddress &addr) const |
| virtual DtFilename * | getPlanFile (const DtSimulationAddress &addr) const |
| virtual DtFilename * | getGlobalPlanFile (const DtSimulationAddress &addr) const |
Protected Member Functions |
| virtual bool | storeFileInZipFile (void *zf, const DtFilename &sourceFile, const DtFilename &destFile) |
| virtual bool | storeStringInZipFile (void *zf, const DtString &, const DtFilename &target) |
| virtual void | clear () |
| virtual bool | createBackendFiles (const DtFilename &origFileName, DtHashList &createdFiles, const char *prefix="(\n", bool *hasGlobalWeatherObject=0, bool *hasGlobalDynamicTerrainObject=0) |
| virtual bool | createBackendFilesFromZip (const DtFilename &zipFile, const DtFilename &origFileName, DtHashList &createdFiles, const char *prefix="(\n", bool *hasGlobalWeatherObject=0, bool *hasGlobalDynamicTerrainObject=0) |
| virtual bool | finalizeBackendFilesParse (const DtFilename &origFileName, DtHashlist &createdFiles, const char *prefix, bool *hasGlobalWeatherObject, bool *hasGlobalDynamicTerrainObject=0) |
| virtual bool | composePlanFileBody (FILE *fp, const DtList &files) |
| | Applicable to both global and entity plans.
|
| virtual bool | composePlanFileBody (DtString &fp, const DtList &files) |
| virtual bool | fastProcess (const DtFilename &fullname, FILE *fp, DtString *returnBuffer, int &size) |
| | Attempt to read file into memory and process there as a faster method.
|
| virtual bool | fastProcessPlanFileBody (const DtFilename &fullname, FILE *fp, DtString *returnBuffer, int &size) |
| | Attempt to read file into memory and process there as a faster method for the plan file body.
|
Instances of this class split up config files.