VR-Forces 4.5 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
include
vrfutil
scriptedTaskVariableConverters.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfutil/vrfutilDefines.h
"
12
#include <matrix/vlVector.h>
13
14
#include <string>
15
#include <map>
16
17
class
DtReaderWriter
;
18
class
DtScriptedTaskVariable
;
19
class
DtVertexList
;
20
class
DtTaitBryan;
21
class
DtRwNLengthUUIDVector
;
22
class
DtRwNLengthStringVector
;
23
class
DtSphere
;
24
27
class
DT_DLL_vrfutil
DtScriptedTaskVariableConverter
28
{
29
public
:
31
virtual
DtReaderWriter
* toRwPtr(
const
DtScriptedTaskVariable
&)
const
= 0;
32
35
virtual
std::string fromRwPtr(
const
DtReaderWriter
*)
const
= 0;
36
38
virtual
DtString
stringRep(
const
DtReaderWriter
*)
const
= 0;
39
41
static
DtString
formatOffset(
const
DtVector
& loc);
42
static
DtString
formatTime(
int
time);
43
static
DtString
formatDateTime(time_t time);
44
static
DtString
formatLocation(
const
DtVector
& loc);
45
static
DtString
formatSphere(
const
DtSphere
& loc);
46
static
DtString
formatDistance(
double
d);
47
static
DtString
formatHeading(
double
d);
48
static
DtString
formatRate(
double
d);
49
static
DtString
formatAltitudeRate(
double
d);
50
static
DtString
formatTurnRate(
double
d);
51
};
52
55
class
DT_DLL_vrfutil
DtScriptedTaskVariableConverterFactory
56
{
57
public
:
59
DtScriptedTaskVariableConverterFactory
();
60
62
virtual
~
DtScriptedTaskVariableConverterFactory
();
76
virtual
void
addConverter(
const
std::string& variableType,
DtScriptedTaskVariableConverter
*);
77
virtual
DtScriptedTaskVariableConverter
* converterFor(
const
std::string& variableType);
79
80
protected
:
81
typedef
std::map<std::string, DtScriptedTaskVariableConverter*>
Converters
;
82
Converters
myConverters
;
83
};
84
86
class
DT_DLL_vrfutil
DtScriptedTaskRwIntVariableConverter
:
public
DtScriptedTaskVariableConverter
87
{
88
public
:
90
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
91
94
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
95
97
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
98
};
99
101
class
DT_DLL_vrfutil
DtScriptedTaskRwIntTimeVariableConverter
:
public
DtScriptedTaskRwIntVariableConverter
102
{
103
public
:
104
106
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
107
};
108
110
class
DT_DLL_vrfutil
DtScriptedTaskComboBoxVariableConverter
:
public
DtScriptedTaskRwIntVariableConverter
111
{
112
public
:
114
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
115
};
116
118
class
DT_DLL_vrfutil
DtScriptedTaskRwColorVariableConverter
:
public
DtScriptedTaskVariableConverter
119
{
120
public
:
122
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
123
126
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
127
129
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
130
};
131
133
class
DT_DLL_vrfutil
DtScriptedTaskRwRealVariableConverter
:
public
DtScriptedTaskVariableConverter
134
{
135
public
:
137
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
138
141
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
142
144
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
145
};
146
148
class
DT_DLL_vrfutil
DtScriptedTaskRwRealHeadingVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
149
{
150
public
:
152
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
153
};
154
156
class
DT_DLL_vrfutil
DtScriptedTaskRwRealRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
157
{
158
public
:
160
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
161
};
162
164
class
DT_DLL_vrfutil
DtScriptedTaskRwRealAltitudeRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
165
{
166
public
:
168
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
169
};
170
172
class
DT_DLL_vrfutil
DtScriptedTaskRwRealTurnRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
173
{
174
public
:
176
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
177
};
178
180
class
DT_DLL_vrfutil
DtScriptedTaskRwRealRangeVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
181
{
182
public
:
184
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
185
};
186
188
class
DT_DLL_vrfutil
DtScriptedTaskRwRealDateTimeVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
189
{
190
public
:
192
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
193
};
194
196
class
DT_DLL_vrfutil
DtScriptedTaskRwStringVariableConverter
:
public
DtScriptedTaskVariableConverter
197
{
198
public
:
200
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
201
204
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
205
207
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
208
};
209
211
class
DT_DLL_vrfutil
DtScriptedTaskRwBooleanVariableConverter
:
public
DtScriptedTaskVariableConverter
212
{
213
public
:
215
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
216
219
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
220
222
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
223
};
224
226
class
DT_DLL_vrfutil
DtScriptedTaskRwForceTypeVariableConverter
:
public
DtScriptedTaskVariableConverter
227
{
228
public
:
230
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
231
234
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
235
237
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
238
};
239
241
class
DT_DLL_vrfutil
DtScriptedTaskRwEntityTypeVariableConverter
:
public
DtScriptedTaskVariableConverter
242
{
243
public
:
245
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
246
249
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
250
252
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
253
};
254
256
class
DT_DLL_vrfutil
DtScriptedTaskRwVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
257
{
258
public
:
260
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
261
264
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
265
267
virtual
DtString
convertToString(
const
DtVector
&)
const
;
268
270
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
271
};
272
274
class
DT_DLL_vrfutil
DtScriptedTaskRwSphereVariableConverter
:
public
DtScriptedTaskVariableConverter
275
{
276
public
:
278
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
279
282
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
283
285
virtual
DtString
convertToString(
const
DtSphere
&)
const
;
286
288
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
289
};
290
292
class
DT_DLL_vrfutil
DtScriptedTaskRwVertexListVariableConverter
:
public
DtScriptedTaskVariableConverter
293
{
294
public
:
296
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
297
300
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
301
303
virtual
DtString
convertToString(
const
DtVertexList
&)
const
;
304
306
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
307
};
308
310
class
DT_DLL_vrfutil
DtScriptedTaskRwOffsetVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
311
{
312
public
:
314
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
315
318
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
319
321
virtual
DtString
convertToString(
const
DtVector
&)
const
;
322
324
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
325
};
326
328
class
DT_DLL_vrfutil
DtScriptedTaskRwAnimationModelStringVariableConverter
:
public
DtScriptedTaskVariableConverter
329
{
330
public
:
332
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
333
336
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
337
339
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
340
};
341
343
class
DT_DLL_vrfutil
DtScriptedTaskRwTaitBryanVariableConverter
:
public
DtScriptedTaskVariableConverter
344
{
345
public
:
347
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
348
351
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
352
354
virtual
DtString
convertToString(
const
DtTaitBryan&)
const
;
355
357
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
358
};
359
361
class
DT_DLL_vrfutil
DtScriptedTaskRwObjectNameVariableConverter
:
public
DtScriptedTaskVariableConverter
362
{
363
public
:
365
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
366
369
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
370
372
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
373
};
374
376
class
DT_DLL_vrfutil
DtScriptedTaskRwNLengthUUIDVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
377
{
378
public
:
380
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
381
384
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
385
387
virtual
DtString
convertToString(
const
DtRwNLengthUUIDVector
&)
const
;
388
390
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
391
};
392
394
class
DT_DLL_vrfutil
DtScriptedTaskRwNLengthStringVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
395
{
396
public
:
398
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
399
402
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
403
405
virtual
DtString
convertToString(
const
DtRwNLengthStringVector
&)
const
;
406
408
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
409
};
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)