VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfCsvScenarioDescriptionImporterExporter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
27 
29 {
30 public:
34 
37 
39  virtual DtScenarioDescriptionImporterExporter* clone() override;
40 
42  virtual bool importIntoSimulation(DtSimulationServices*) override;
43 
45  virtual bool importFromSimulation(DtSimulationServices*, const std::map<std::string, std::string>& exportData,
46  const DtMsdlHierarchyPropertyMappings&) override;
47 
48 protected:
50  virtual bool exportOrganization(const std::map<std::string, std::string>& exportData,
52 
53  virtual void determineAltitude(const DtVector& local, DtGeodeticCoord& geod, bool useAGL);
54 
56  virtual bool exportTacticalGraphics(const std::map<std::string, std::string>& exportData,
58 
60  virtual bool complete() const override;
61 
63  virtual bool importOrganization();
64 
66  virtual bool importTacticalGraphics();
67 
71  virtual bool prepareOrganizationCreationOrder(ObjectInformation* element);
72 
74  static void createObjectsCallback(void*);
75  virtual void processCreateObjects();
76 
78  virtual void createEntity(ObjectInformation*);
79 
81  virtual void createTacticalGraphic(ObjectInformation*);
82 
84  virtual DtString deconflictName(const DtString&, int kind);
85 
86 protected:
89  std::vector<ObjectInformation*> myOrganizedHierarchy;
90 
93  std::vector<ObjectInformation*> myOrganizationCreationOrder;
94 
96 };
This class is the interface for import from or export to CSV files. This class will not interact with...
Definition: vrfCsvScenarioDescriptionImporterExporter.h:28
virtual DtScenarioDescriptionImporterExporter * clone() override
Clone to create a new copy of the object. Will be used as a &quot;clean&quot; version for import.
virtual bool importFromSimulation(DtSimulationServices *, const std::map< std::string, std::string > &exportData, const DtMsdlHierarchyPropertyMappings &) override
Imports from the simulation into internal structures. DtSimulationServices is not defined at this lev...
This class is the interface for a scenario description importer/exporter. Subclasses will implement t...
Definition: scenarioDescriptionImporterExporter.h:27
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual bool importIntoSimulation(DtSimulationServices *) override
Imports into the simulation. DtSimulationServices is not defined at this level, so subclasses at vrfo...
Class DtObjectParser is an abstract parser that can be configured to parse object creation informatio...
Definition: createObjectParser.h:22
Definition: msdlHierarchyPropertyMappings.h:56
DtSimulationServices * mySimulationServices
Definition: vrfCsvScenarioDescriptionImporterExporter.h:95
Definition: csvScenarioDescriptionImporterExporter.h:23
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
std::vector< ObjectInformation * > myOrganizationCreationOrder
Order in which to create organization items or tactical graphics. Empty elements will signal to stop ...
Definition: vrfCsvScenarioDescriptionImporterExporter.h:93
std::vector< ObjectInformation * > myOrganizedHierarchy
Hierarchy with top level nodes and tactical graphics only. This is what will be used to create the ob...
Definition: vrfCsvScenarioDescriptionImporterExporter.h:89
virtual bool complete() const
Return true if import is complete. Default is true.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)