|
| | DtVrfMsdlScenarioDescriptionImporterExporter () |
| | CTOR. More...
|
| |
| virtual | ~DtVrfMsdlScenarioDescriptionImporterExporter () |
| | DTOR. More...
|
| |
virtual
DtScenarioDescriptionImporterExporter * | clone () |
| | Returns a new copy. More...
|
| |
| virtual bool | importIntoSimulation (DtSimManager *) |
| | Imports into the simulation. More...
|
| |
| virtual bool | importFromSimulation (DtSimManager *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| | Imports from the simulation into internal structures. More...
|
| |
| | DtMsdlScenarioDescriptionImporterExporter () |
| | CTOR. More...
|
| |
| virtual | ~DtMsdlScenarioDescriptionImporterExporter () |
| | DTOR. More...
|
| |
| virtual bool | loadScenarioDescription (const DtFilename &file, const std::map< std::string, std::string > &importData) |
| |
| virtual bool | loadScenarioDescription (const DtFilename &file, const std::map< std::string, std::string > &importData, const DtMsdlHierarchyPropertyMappings &) |
| | Loads the scenario description from the specified file into internal structures. More...
|
| |
| virtual bool | saveScenarioDescription (const DtFilename &file, const DtScenario &) const |
| | Saves the scenario description information to the specified file. More...
|
| |
| virtual const EquipmentPtr & | equipment () const |
| | Returns all the equipment loaded. More...
|
| |
| virtual const OrganizationPtr & | organizedOrganization () const |
| | Returns map to organized organization. More...
|
| |
| virtual const OrganizationPtr & | flatOrganization () const |
| | Returns map to flat hierarchy. More...
|
| |
| virtual const OverlayLayer & | overlayLayers () const |
| | Returns map to overlay layers. More...
|
| |
| virtual const ForceSides & | forces () const |
| | Returns map to forces. More...
|
| |
| virtual std::string | findValue (const std::map< std::string, DtMsdlScenarioContentsItem > &, const std::string &path) const |
| | Given a '/' path pattern, find the data in the contents dictionary. More...
|
| |
virtual std::map< std::string,
std::string > | findStdMapValue (const std::map< std::string, DtMsdlScenarioContentsItem > &, const std::string &path, const std::set< std::string > &ignore=std::set< std::string >()) const |
| |
| virtual bool | hasValue (const std::map< std::string, DtMsdlScenarioContentsItem > &, const std::string &path) const |
| |
| virtual std::string | convertMapToString (const std::map< std::string, std::string > &) const |
| | Converts a std::map to a single string identifier that can be used in findStdMapValue. More...
|
| |
| virtual bool | organizationUsesForce (Msdl_UUID) const |
| | Returns true if an organiation (unit) is part of the given force handle. More...
|
| |
| virtual std::string | supportedExtensions () |
| | Returns a space delimeted list of the extensions supported (i.e. "xml" or "csv txt") More...
|
| |
| virtual bool | canImportFile (const DtFilename &) |
| | Returns true if the supplied file can be loaded by this importer. More...
|
| |
| virtual void | clear () |
| | Clears internal structures. More...
|
| |
| virtual DtObjectParser * | parser () |
| | Returns null, msdl has imbedded its parser into the importer/exporter. More...
|
| |
| | DtScenarioDescriptionImporterExporter () |
| | CTOR Derived classes will need to create a parser. More...
|
| |
| virtual | ~DtScenarioDescriptionImporterExporter () |
| | DTOR. More...
|
| |
| const DtScenario & | scenario () const |
| |
| const std::string & | error () const |
| |
| virtual void | setDesiredForce (int force) |
| |
|
| virtual bool | exportableObject (const DtEntityType &t) const |
| | Returns true if object is exportable. More...
|
| |
| virtual bool | importEntities (DtSimManager *) |
| | Imports all entities and creates aggregate hierarchy structures. More...
|
| |
| virtual bool | importTacticalGraphics (DtSimManager *) |
| | Imports all tactical graphics and assigns them to overlay layers. More...
|
| |
| virtual bool | importHostilityMatrix (DtSimManager *) |
| | Modifies existing hostility matrix with force information found in Msdl file. More...
|
| |
| virtual bool | prepareOrganizationCreationOrder (DtSimManager *, DtMsdlSimulatedElement *) |
| | Creates the entire organization represented by the supplied node. More...
|
| |
| 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. More...
|
| |
| virtual bool | createTacticalGraphicOnLayer (DtSimManager *mgr, DtMsdlSimulatedTacticalGraphic &, const DtMsdlOverlayLayer &) |
| | Creates the tactical graphic on the specified layer. More...
|
| |
| virtual bool | complete () const |
| | Returns true if myOrganizationCreationOrder is 0 length. More...
|
| |
| virtual void | processCreateObjects () |
| |
| virtual void | createEntity (DtMsdlSimulatedElement *) |
| | Creates an entity from the element. More...
|
| |
| virtual void | exportHostilityManager (DtSimManager *, const std::map< std::string, std::string > &exportData) |
| | Exports hostility manager into myForces member. More...
|
| |
| virtual void | exportOrganization (DtSimManager *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| | Exports units and equipment from the org manager. More...
|
| |
| virtual void | exportTacticalGraphics (DtSimManager *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| | Exports tactical graphics and overlay layers from the object manager. More...
|
| |
| virtual void | exportTacticalGraphic (const DtVrfObject *, DtSimManager *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| |
| virtual void | exportUnit (const DtVrfObject *obj, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| | Creates the data to be able to write out the supplied unit. More...
|
| |
| virtual void | exportEquipmentItem (const DtVrfObject *obj, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) |
| | Creates the data to be able to write out the supplied equipment item. More...
|
| |
| virtual Msdl_UUID | generateUUID () const |
| | Generates a Msdl style UUID. More...
|
| |
| virtual DtVector | correctedAltitudeLocation (const DtMSDLVector &, bool &amClampedToGround) |
| | If the altitude is AGL, then clamp and assign altitude above terrain. More...
|
| |
| virtual const std::string | countryCode (DtRwForceDescription *force) |
| | Gets the 3-letter ISO-3166 country code from the country code in force. More...
|
| |
| virtual void | convertExtentLocalToDis (DtExtent *extent, Coordinate_System *coordSys) |
| | Converts an extent which is taken to be in local coordinates, to geocentric coordinates. More...
|
| |
| virtual std::string | pad (int) const |
| | Returns a string that contains the number of spaces. More...
|
| |
| virtual bool | parseMilitaryScenario (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses the miliary scenario. More...
|
| |
| virtual bool | parseScenarioID (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses the scenario ID section. More...
|
| |
| virtual bool | parseOptions (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses the Options section. Currently unimplemented. More...
|
| |
| virtual bool | parseEnvironment (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses the Environment section. Currently unimplemented. More...
|
| |
| virtual bool | parseForces (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses the ForcesSides section. More...
|
| |
| virtual bool | parseForce (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses the ForceSide section. Will add to the supplied map the new force and id. More...
|
| |
| virtual bool | parsePOC (xmlNodePtr) |
| | Simply parses the point of contact information and adds it as scenario extra daata. More...
|
| |
| virtual std::string | content (xmlNodePtr) const |
| | Returns the content of the particular node. More...
|
| |
| virtual bool | parseAssociations (xmlNodePtr, Associations &) |
| | Parses all associations and fills in the supplied association map. More...
|
| |
| virtual bool | parseAssociation (xmlNodePtr, Associations &) |
| | Parses a single association and adds it to the map. More...
|
| |
| virtual bool | parseOrganizations (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses organization structure and places results in the myOrganization member. More...
|
| |
| virtual bool | parseUnits (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses units structure and places results in the myOrganization member. More...
|
| |
| virtual bool | parseUnit (xmlNodePtr, const std::map< std::string, std::string > &importData, DtMsdlSimulatedElement &unit) |
| | Parses unit structure and places results in the myOrganization member. More...
|
| |
| virtual bool | parseEquipmentItem (xmlNodePtr, const std::map< std::string, std::string > &importData, DtMsdlSimulatedElement &unit) |
| | Parses the equipment item for relevant information. More...
|
| |
| virtual void | addUnitToFlatOrganization (const DtMsdlSimulatedElement &) |
| | Places the newly created unit into the flat organization structure. More...
|
| |
| virtual void | addEquipmentToOrganization (const DtMsdlSimulatedElement &) |
| | Finds the correct superior and adds the equipment to that item. Also adds to the myEquipment member. More...
|
| |
| virtual bool | parseEquipment (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses equipment structure and places results in the myOrganization member. More...
|
| |
| virtual bool | parseContents (xmlNodePtr, DtMsdlScenarioContentsItem &) |
| | Will simply read the contents of the node pointer into the key/value pair. More...
|
| |
| virtual bool | parseDisposition (xmlNodePtr, DtMsdlSimulatedElement &) |
| | Parses out the location, speed and heading all other items will be placed into the contents member. More...
|
| |
| virtual bool | parseOverlays (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses out all the overlays and adds them to the overlay layers member. More...
|
| |
| virtual bool | parseOverlay (xmlNodePtr, const std::map< std::string, std::string > &importData, DtMsdlOverlayLayer &) |
| | Parses a single overlay and fills out the supplied structure. More...
|
| |
| virtual bool | parseTacticalGraphics (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Parses out all the tactical graphics and adds them to the overlay in question. More...
|
| |
| virtual bool | parseTacticalGraphic (xmlNodePtr, const std::map< std::string, std::string > &importData, DtMsdlSimulatedTacticalGraphic &) |
| | Parses out all the tactical graphics and adds them to the overlay in question. More...
|
| |
| virtual std::vector< DtMSDLVector > | parseAnchorPoints (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Returns a vector of geocentric locations. More...
|
| |
| virtual DtMSDLVector | parseAnchorPoint (xmlNodePtr, const std::map< std::string, std::string > &importData) |
| | Returns a vector for the location point. More...
|
| |
| virtual DtMSDLVector | parseLocation (xmlNodePtr) |
| | Parses out the location and returns a geocentric vector. More...
|
| |
| virtual DtMSDLVector | parseLocationGCC (xmlNodePtr) |
| | Parses geocentric. More...
|
| |
| virtual DtMSDLVector | parseLocationMGRS (xmlNodePtr) |
| | Parses MGRS. More...
|
| |
| virtual DtMSDLVector | parseLocationUTM (xmlNodePtr) |
| | Parses UTM. More...
|
| |
| virtual DtMSDLVector | parseLocationGDC (xmlNodePtr) |
| | Parses geodetic degree. More...
|
| |
| virtual void | convertFlatOrganizationToOrganizationHierarchy () |
| | Converts the flat hierarchy to an organization hierarchy of units. More...
|
| |
| virtual std::string | enumerationForUnit (const std::string &symbolIdentifier, const DtMsdlSimulatedElement &) |
| | Sets the unit enumeration based on symbol identifier and subordinate. More...
|
| |
| virtual int | forceTypeFromName (const std::string &, int curForce, const std::map< std::string, std::string > &) const |
| | Attempts to rework the force type from the name, given a few keywords (BLU, OP, NEU). More...
|
| |
| virtual std::string | countryCodeForForce (Msdl_UUID forceHandle) const |
| | Returns the country code for the force (two character) or blank if no country code. Supply the force handle. More...
|
| |
| virtual void | saveScenarioId (std::ostream &, const DtScenario &) const |
| | Saves out scenario id information. More...
|
| |
| virtual void | saveAdditionalScenarioInformation (std::ostream &, const DtScenario &) const |
| | Saves out any additional (VRF specific) scenario information. Default is no-op. More...
|
| |
| virtual void | saveOptions (std::ostream &) const |
| | Saves out Msdl options. More...
|
| |
| virtual void | saveEnvironment (std::ostream &) const |
| | Saves out Msdl environment. More...
|
| |
| virtual void | saveForceSides (std::ostream &) const |
| | Saves out force side (myForces) information. More...
|
| |
| virtual void | saveForceSide (std::ostream &, const Msdl_UUID &, const DtForceSide &) const |
| | Saves out a force side structure. More...
|
| |
| virtual void | saveOverlayLayers (std::ostream &) const |
| | Saves out overlay layers. More...
|
| |
| virtual void | saveOverlayLayer (std::ostream &, const DtMsdlOverlayLayer &) const |
| |
| virtual void | saveTacticalGraphics (std::ostream &) const |
| | Saves out tactical graphics. More...
|
| |
| virtual void | saveTacticalGraphic (std::ostream &, const DtMsdlSimulatedTacticalGraphic &) const |
| |
| virtual void | saveAnchorPoints (std::ostream &, const DtMsdlSimulatedTacticalGraphic &, int indent) const |
| | Saves out tactical graphic locations. Geocentric only. More...
|
| |
| virtual void | saveAnchorPoint (std::ostream &, const DtVector &, int indent) const |
| |
| virtual void | saveOrganizations (std::ostream &) const |
| | Saves out unit and equipment information. More...
|
| |
| virtual void | saveUnits (std::ostream &) const |
| | Saves out units (aggregates) More...
|
| |
| virtual void | saveUnit (std::ostream &, DtMsdlSimulatedElement *) const |
| |
| virtual void | saveDisposition (std::ostream &, DtMsdlSimulatedElement *, int indent) const |
| | Location, speed, direction of movement. More...
|
| |
| virtual void | saveLocation (std::ostream &, DtMsdlSimulatedElement *, int indent) const |
| | Currently will only save out geocentric (GCC) More...
|
| |
| virtual void | saveLocation (std::ostream &, const DtMSDLVector &, int indent) const |
| |
| virtual void | saveUnitRelations (std::ostream &, DtMsdlSimulatedElement *) const |
| | Saves out relation (force) information for units. More...
|
| |
| virtual void | saveEquipmentRelations (std::ostream &, DtMsdlSimulatedElement *) const |
| | Saves out relation (force) information for equipment. More...
|
| |
| virtual void | saveUnitModel (std::ostream &, DtMsdlSimulatedElement *) const |
| | Saves out model information (resolution and aggregate state) for a unit. More...
|
| |
| virtual void | saveEquipmentModel (std::ostream &, DtMsdlSimulatedElement *) const |
| | Saves out model information for equipment. Currently only saves "ENHANCED" resolution. More...
|
| |
| virtual void | saveOneSAFIdentifiers (std::ostream &, const std::string &type, DtMsdlSimulatedElement *, int indent) const |
| | Saves out DIS Enumerations, military hierarchy code, etc. More...
|
| |
| virtual void | saveEquipment (std::ostream &) const |
| |
| virtual void | saveEquipmentItem (std::ostream &, DtMsdlSimulatedElement *) const |
| |
| virtual void | finalize () |
| | Finalizes structures. More...
|
| |
| virtual int | nextForceType () const |
| |
| virtual void | saveUnitSymbolModifiers (std::ostream &, DtMsdlSimulatedElement *) const |
| |
| virtual void | saveFormationPosition (std::ostream &, DtMsdlSimulatedElement *, int indent) const |
| |
| virtual void | saveOwnFormation (std::ostream &, DtMsdlSimulatedElement *, int indent) const |
| |
| virtual void | saveEquipmentSymbolModifiers (std::ostream &, DtMsdlSimulatedElement *) const |
| |
| virtual void | saveOneSAFBasicLoadInformation (std::ostream &, DtMsdlSimulatedElement *) const |
| |
| virtual void | saveSymbolClassData (std::ostream &, const DtMsdlSimulatedTacticalGraphic &) const |
| |