![]() |
VR-Forces 4.6 Class Documentation
|
This class is the interface for import from or export to CSV files. More...

Public Member Functions | |
| DtVrfCsvScenarioDescriptionImporterExporter () | |
| DtVrfCSVScenarioDescriptionImporterExporter. | |
| virtual | ~DtVrfCsvScenarioDescriptionImporterExporter () |
| DTOR. | |
| virtual DtScenarioDescriptionImporterExporter * | clone () |
| Clone to create a new copy of the object. Will be used as a "clean" version for import. | |
| virtual bool | importIntoSimulation (DtSimManager *) |
| Imports into the simulation. | |
| virtual bool | importFromSimulation (DtSimManager *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| Imports from the simulation into internal structures. | |
Public Member Functions inherited from DtCsvScenarioDescriptionImporterExporter | |
| DtCsvScenarioDescriptionImporterExporter () | |
| CTOR. | |
| virtual | ~DtCsvScenarioDescriptionImporterExporter () |
| DTOR. | |
| virtual bool | loadScenarioDescription (const DtFilename &file, const std::map< std::string, std::string > &importData) |
| Loads information from the supplied ACO file into internal structures. | |
| virtual bool | saveScenarioDescription (const DtFilename &file, const DtScenario &) const |
| Saves the scenario description information to the specified file. | |
| virtual std::string | supportedExtensions () |
| Returns a space delimeted list of the extensions supported ("ACO txt") | |
| virtual bool | canImportFile (const DtFilename &) |
| Returns true if the supplied file can be loaded by this importer. | |
| virtual void | setAltInAGL (const bool agl) |
| virtual void | setOptionalName (const std::string &name) |
| virtual DtObjectParser * | parser () |
| Returns parser, if doesn't exist yet will create it. | |
Public Member Functions inherited from DtScenarioDescriptionImporterExporter | |
| DtScenarioDescriptionImporterExporter () | |
| CTOR Derived classes will need to create a parser. | |
| virtual | ~DtScenarioDescriptionImporterExporter () |
| DTOR. | |
| const DtScenario & | scenario () const |
| const std::string & | error () const |
| virtual void | setDesiredForce (int force) |
Protected Member Functions | |
| virtual bool | exportOrganization (DtSimManager *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| Exports the entities and aggregates into internal structures. | |
| virtual void | determineAltitude (const DtVector &local, DtGeodeticCoord &geod, bool useAGL) |
| virtual bool | exportTacticalGraphics (DtSimManager *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| Exports the tactical graphics into internal structures. | |
| virtual bool | complete () const |
| Returns true if myOrganizationCreationOrder is 0 length. | |
| virtual bool | importOrganization (DtSimManager *) |
| Schedule aggregates/entities for creation. | |
| virtual bool | importTacticalGraphics (DtSimManager *) |
| Schedule tactical graphics for creation. | |
| virtual bool | prepareOrganizationCreationOrder (DtSimManager *mgr, ObjectInformation *element) |
| Recursively add elements in order to be created – entities then containing superiors. | |
| virtual void | processCreateObjects () |
| virtual void | createEntity (ObjectInformation *) |
| Creates an entity or an aggregate. If an aggregate will also aggregate entities into the hierarchy. | |
| virtual void | createTacticalGraphic (ObjectInformation *) |
| Creates a tactical graphic object. | |
| virtual DtString | deconflictName (DtSimManager *, const DtString &, int kind) |
| Deconflicts duplicate names if they appear in the object manager. Will simply prepend a <n>_ to the name. | |
Static Protected Member Functions | |
| static void | createObjectsCallback (void *) |
| Creates objects. | |
Protected Attributes | |
| std::vector< ObjectInformation * > | myOrganizedHierarchy |
| Hierarchy with top level nodes and tactical graphics only. | |
| std::vector< ObjectInformation * > | myOrganizationCreationOrder |
| Order in which to create organization items or tactical graphics. | |
| DtSimManager * | mySimManager |
Protected Attributes inherited from DtCsvScenarioDescriptionImporterExporter | |
| bool | myIsAgl |
| std::string | myOptionalName |
Protected Attributes inherited from DtScenarioDescriptionImporterExporter | |
| DtScenario | myScenario |
| std::string | myError |
| DtObjectParser * | myParser |
| DtForceType | myDesiredForce |
This class is the interface for import from or export to CSV files.
This class will not interact with the simulation engine directory. The subclass vrfCSVScenarioDescriptionImporterExporter will perform that action based on what this class reads in from the file
This CSV file will contain the following information (in column format): NAME - The name of the object ENUMERATION - The DIS enumeration FORCE - The object's FORCE SUPERIOR OR OVERLAY - The name of the superior or overlay this object is on, or blank if none POINTS - Triplets of points in DDS (degrees) LAT/LON/ALT
This file will extend the import/export class by interfacing with the simulation engine to incorporate scenario information
| DtVrfCsvScenarioDescriptionImporterExporter::DtVrfCsvScenarioDescriptionImporterExporter | ( | ) |
|
virtual |
DTOR.
|
virtual |
Clone to create a new copy of the object. Will be used as a "clean" version for import.
Reimplemented from DtCsvScenarioDescriptionImporterExporter.
|
virtual |
Imports into the simulation.
Reimplemented from DtCsvScenarioDescriptionImporterExporter.
|
virtual |
Imports from the simulation into internal structures.
Reimplemented from DtCsvScenarioDescriptionImporterExporter.
|
protectedvirtual |
Exports the entities and aggregates into internal structures.
|
protectedvirtual |
|
protectedvirtual |
Exports the tactical graphics into internal structures.
|
protectedvirtual |
Returns true if myOrganizationCreationOrder is 0 length.
Reimplemented from DtScenarioDescriptionImporterExporter.
|
protectedvirtual |
Schedule aggregates/entities for creation.
|
protectedvirtual |
Schedule tactical graphics for creation.
|
protectedvirtual |
Recursively add elements in order to be created – entities then containing superiors.
Once all elements from a hierarchy have been scheduled to be create, set marker to wait until next tick to create other elements
|
staticprotected |
Creates objects.
|
protectedvirtual |
|
protectedvirtual |
Creates an entity or an aggregate. If an aggregate will also aggregate entities into the hierarchy.
|
protectedvirtual |
Creates a tactical graphic object.
|
protectedvirtual |
Deconflicts duplicate names if they appear in the object manager. Will simply prepend a <n>_ to the name.
|
protected |
Hierarchy with top level nodes and tactical graphics only.
This is what will be used to create the objects in the simulation
|
protected |
Order in which to create organization items or tactical graphics.
Empty elements will signal to stop the creation for this tick and continue next tick
|
protected |