VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenarioDescriptionImporterExporter.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 
11 #include "vrfutil/vrfutilDefines.h"
12 #include "vrfutil/scenario.h"
14 #include <terrainCS/coordSystem.h>
15 
16 #include <string>
17 #include <vector>
18 
19 class DtFilename;
20 class DtSimManager;
21 class DtObjectParser;
22 
23 
24 
28 {
29 public:
32 
35 
36  virtual bool loadScenarioDescription(const DtFilename& file,
37  const std::map<std::string, std::string>& importData) = 0;
38 
39  const DtScenario& scenario() const;
40 
41  const std::string& error() const;
42 
44  virtual DtScenarioDescriptionImporterExporter* clone() = 0;
45 
48  virtual bool importIntoSimulation(DtSimManager*) = 0;
49 
52  virtual bool importFromSimulation(DtSimManager*,
53  const std::map<std::string, std::string>& exportData, const DtMsdlHierarchyPropertyMappings&) = 0;
54 
56  virtual bool saveScenarioDescription(const DtFilename& file, const DtScenario&) const = 0;
57 
58  virtual void setDesiredForce(int force);
59 
61  virtual DtObjectParser * parser() = 0;
62 
64  virtual std::string supportedExtensions() = 0;
65 
67  virtual bool canImportFile(const DtFilename&) = 0;
68 
70  virtual bool complete() const;
71 
72 
73 protected:
75  mutable std::string myError;
77  DtForceType myDesiredForce;
78 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)