VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
csvScenarioImporterExporter
csvScenarioImporterExporterSim
csvScenarioDescriptionImporterExporter.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
7
8
#pragma once
9
10
#include "
vrfutil/scenarioDescriptionImporterExporter.h
"
11
23
24
class
DtVrfObject
;
25
class
DtMsdlHierarchyPropertyMappings
;
26
27
class
DtCSVScenarioDescriptionImporterExporter
:
public
DtScenarioDescriptionImporterExporter
28
{
29
public
:
31
DtCSVScenarioDescriptionImporterExporter
();
32
34
virtual
~DtCSVScenarioDescriptionImporterExporter
();
35
39
virtual
bool
loadScenarioDescription
(
const
DtFilename& file,
const
std::map<std::string, std::string>& importData,
40
const
DtMsdlHierarchyPropertyMappings
&);
41
43
virtual
DtScenarioDescriptionImporterExporter
*
clone
();
44
47
virtual
bool
importIntoSimulation
(
DtSimManager
*);
48
51
virtual
bool
importFromSimulation
(
DtSimManager
*,
const
std::map<std::string, std::string>& exportData,
52
const
DtMsdlHierarchyPropertyMappings
&);
53
56
virtual
bool
saveScenarioDescription
(
const
DtFilename& file,
const
DtScenario
&)
const
;
57
59
virtual
std::string
supportedExtensions
();
60
62
virtual
bool
canImportFile
(
const
DtFilename&);
63
64
protected
:
67
struct
ObjectInformation
68
{
69
DtString
name
;
70
DtEntityType
type
;
71
int
force
;
72
DtString
parent
;
73
std::vector<DtVector>
points
;
74
std::vector<ObjectInformation*>
children
;
77
78
DtVrfObject
*
object
;
79
};
80
82
typedef
std::map<DtString, ObjectInformation*>
ObjectMap
;
83
84
ObjectMap
myObjectMap
;
85
88
typedef
std::map<DtString, std::vector<ObjectInformation*> >
WaitingMap
;
89
WaitingMap
myToBeParented
;
90
};
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)