VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
15 #include <string>
16 #include <map>
17 
18 class DtFilename;
19 class DtSimManager;
20 
24 {
25 public:
28 
31 
32  virtual bool loadScenarioDescription(const DtFilename& file,
33  const std::map<std::string, std::string>& importData, const DtMsdlHierarchyPropertyMappings&) = 0;
34 
35  const DtScenario& scenario() const
36  {
37  return myScenario;
38  }
39 
40  const std::string& error() const
41  {
42  return myError;
43  }
44 
46  virtual DtScenarioDescriptionImporterExporter* clone() = 0;
47 
50  virtual bool importIntoSimulation(DtSimManager*) = 0;
51 
54  virtual bool importFromSimulation(DtSimManager*,
55  const std::map<std::string, std::string>& exportData, const DtMsdlHierarchyPropertyMappings&) = 0;
56 
58  virtual bool saveScenarioDescription(const DtFilename& file, const DtScenario&) const = 0;
59 
61  virtual std::string supportedExtensions() = 0;
62 
64  virtual bool canImportFile(const DtFilename&) = 0;
65 
67  virtual bool complete() const
68  {
69  return true;
70  }
71 
72 protected:
74  mutable std::string myError;
75 };

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)