VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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
DtRwVectorList
;
21
class
DtTaitBryan;
22
class
DtRwNLengthUUIDVector
;
23
class
DtRwNLengthStringVector
;
24
class
DtRwStringAttributeList
;
25
class
DtSphere
;
26
class
DtRwKeyValueList
;
27
class
DtRwIntegerAttributeList
;
28
class
DtRwStringAttributeList
;
29
class
DtRwRealAttributeList
;
30
class
DtRwOffsetVectorList
;
31
34
class
DT_DLL_vrfutil
DtScriptedTaskVariableConverter
35
{
36
public
:
38
virtual
DtReaderWriter
* toRwPtr(
const
DtScriptedTaskVariable
&)
const
= 0;
39
42
virtual
std::string fromRwPtr(
const
DtReaderWriter
*)
const
= 0;
43
45
virtual
DtString
stringRep(
const
DtReaderWriter
*)
const
= 0;
46
48
static
DtString
formatOffset(
const
DtVector
& loc);
49
static
DtString
formatTime(
int
time);
50
static
DtString
formatDateTime(time_t time);
51
static
DtString
formatLocation(
const
DtVector
& loc);
52
static
DtString
formatSphere(
const
DtSphere
& loc);
53
static
DtString
formatDistance(
double
d);
54
static
DtString
formatHeading(
double
d);
55
static
DtString
formatRate(
double
d);
56
static
DtString
formatAltitudeRate(
double
d);
57
static
DtString
formatTurnRate(
double
d);
58
};
59
62
class
DT_DLL_vrfutil
DtScriptedTaskVariableConverterFactory
63
{
64
public
:
66
DtScriptedTaskVariableConverterFactory
();
67
69
virtual
~
DtScriptedTaskVariableConverterFactory
();
83
virtual
void
addConverter(
const
std::string& variableType,
DtScriptedTaskVariableConverter
*);
84
virtual
DtScriptedTaskVariableConverter
* converterFor(
const
std::string& variableType);
86
87
protected
:
88
typedef
std::map<std::string, DtScriptedTaskVariableConverter*>
Converters
;
89
Converters
myConverters
;
90
};
91
93
class
DT_DLL_vrfutil
DtScriptedTaskRwIntVariableConverter
:
public
DtScriptedTaskVariableConverter
94
{
95
public
:
97
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
98
101
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
102
104
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
105
};
106
108
class
DT_DLL_vrfutil
DtScriptedTaskRwIntTimeVariableConverter
:
public
DtScriptedTaskRwIntVariableConverter
109
{
110
public
:
111
113
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
114
116
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
117
118
virtual
void
parseTime(
const
std::string& s,
int
& days,
int
& hours,
int
& minutes,
int
& seconds)
const
;
119
};
120
122
class
DT_DLL_vrfutil
DtScriptedTaskComboBoxVariableConverter
:
public
DtScriptedTaskRwIntVariableConverter
123
{
124
public
:
126
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
127
};
128
130
class
DT_DLL_vrfutil
DtScriptedTaskImageComboBoxVariableConverter
:
public
DtScriptedTaskRwIntVariableConverter
131
{
132
public
:
134
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
135
};
136
138
class
DT_DLL_vrfutil
DtScriptedTaskRwColorVariableConverter
:
public
DtScriptedTaskVariableConverter
139
{
140
public
:
142
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
143
146
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
147
149
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
150
};
151
153
class
DT_DLL_vrfutil
DtScriptedTaskRwRealVariableConverter
:
public
DtScriptedTaskVariableConverter
154
{
155
public
:
157
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
158
161
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
162
164
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
165
};
166
168
class
DT_DLL_vrfutil
DtScriptedTaskRwRealHeadingVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
169
{
170
public
:
172
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
173
};
174
176
class
DT_DLL_vrfutil
DtScriptedTaskRwRealRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
177
{
178
public
:
180
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
181
};
182
184
class
DT_DLL_vrfutil
DtScriptedTaskRwRealAltitudeRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
185
{
186
public
:
188
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
189
};
190
192
class
DT_DLL_vrfutil
DtScriptedTaskRwRealTurnRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
193
{
194
public
:
196
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
197
};
198
200
class
DT_DLL_vrfutil
DtScriptedTaskRwRealRangeVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
201
{
202
public
:
204
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
205
};
206
208
class
DT_DLL_vrfutil
DtScriptedTaskRwRealDateTimeVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
209
{
210
public
:
212
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
213
};
214
216
class
DT_DLL_vrfutil
DtScriptedTaskRwStringVariableConverter
:
public
DtScriptedTaskVariableConverter
217
{
218
public
:
220
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
221
224
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
225
227
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
228
};
229
231
class
DT_DLL_vrfutil
DtScriptedTaskRwBooleanVariableConverter
:
public
DtScriptedTaskVariableConverter
232
{
233
public
:
235
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
236
239
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
240
242
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
243
};
244
246
class
DT_DLL_vrfutil
DtScriptedTaskRwForceTypeVariableConverter
:
public
DtScriptedTaskVariableConverter
247
{
248
public
:
250
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
251
254
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
255
257
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
258
};
259
261
class
DT_DLL_vrfutil
DtScriptedTaskRwEntityTypeVariableConverter
:
public
DtScriptedTaskVariableConverter
262
{
263
public
:
265
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
266
269
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
270
272
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
273
};
274
276
class
DT_DLL_vrfutil
DtScriptedTaskRwVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
277
{
278
public
:
280
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
281
284
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
285
287
virtual
DtString
convertToString(
const
DtVector
&)
const
;
288
290
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
291
};
292
294
class
DT_DLL_vrfutil
DtScriptedTaskRwSphereVariableConverter
:
public
DtScriptedTaskVariableConverter
295
{
296
public
:
298
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
299
302
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
303
305
virtual
DtString
convertToString(
const
DtSphere
&)
const
;
306
308
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
309
};
310
312
class
DT_DLL_vrfutil
DtScriptedTaskRwVertexListVariableConverter
:
public
DtScriptedTaskVariableConverter
313
{
314
public
:
316
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
317
320
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
321
323
virtual
DtString
convertToString(
const
DtVertexList
&)
const
;
324
virtual
DtString
convertToString(
const
DtRwVectorList
&)
const
;
325
327
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
328
};
329
331
class
DT_DLL_vrfutil
DtScriptedTaskRwVectorListVariableConverter
:
public
DtScriptedTaskRwVertexListVariableConverter
332
{
333
public
:
335
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
336
338
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
339
};
340
342
class
DT_DLL_vrfutil
DtScriptedTaskRwOffsetVectorListVariableConverter
:
public
DtScriptedTaskVariableConverter
343
{
344
public
:
346
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
347
350
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
351
353
virtual
DtString
convertToString(
const
DtRwOffsetVectorList
&)
const
;
354
356
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
357
};
358
360
class
DT_DLL_vrfutil
DtScriptedTaskRwOffsetVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
361
{
362
public
:
364
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
365
368
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
369
371
virtual
DtString
convertToString(
const
DtVector
&)
const
;
372
374
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
375
};
376
378
class
DT_DLL_vrfutil
DtScriptedTaskRwAnimationModelStringVariableConverter
:
public
DtScriptedTaskVariableConverter
379
{
380
public
:
382
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
383
386
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
387
389
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
390
};
391
393
class
DT_DLL_vrfutil
DtScriptedTaskRwTaitBryanVariableConverter
:
public
DtScriptedTaskVariableConverter
394
{
395
public
:
397
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
398
401
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
402
404
virtual
DtString
convertToString(
const
DtTaitBryan&)
const
;
405
407
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
408
};
409
411
class
DT_DLL_vrfutil
DtScriptedTaskRwObjectNameVariableConverter
:
public
DtScriptedTaskVariableConverter
412
{
413
public
:
415
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
416
419
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
420
422
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
423
};
424
426
class
DT_DLL_vrfutil
DtScriptedTaskRwNLengthUUIDVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
427
{
428
public
:
430
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
431
434
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
435
437
virtual
DtString
convertToString(
const
DtRwNLengthUUIDVector
&)
const
;
438
440
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
441
};
442
444
class
DT_DLL_vrfutil
DtScriptedTaskRwNLengthStringVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
445
{
446
public
:
448
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
449
452
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
453
455
virtual
DtString
convertToString(
const
DtRwNLengthStringVector
&)
const
;
456
458
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
459
};
460
462
class
DT_DLL_vrfutil
DtScriptedTaskRwStringAttributeListVariableConverter
:
public
DtScriptedTaskVariableConverter
463
{
464
public
:
466
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
467
470
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
471
473
virtual
DtString
convertToString(
const
DtRwStringAttributeList
&)
const
;
474
476
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
477
};
478
480
class
DT_DLL_vrfutil
DtScriptedTaskRwKeyValueListVariableConverter
:
public
DtScriptedTaskVariableConverter
481
{
482
public
:
484
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
485
488
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
489
491
virtual
DtString
convertToString(
const
DtRwKeyValueList
&)
const
;
492
494
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
495
};
496
498
class
DT_DLL_vrfutil
DtScriptedTaskIntegerMapVariableConverter
:
public
DtScriptedTaskVariableConverter
499
{
500
public
:
502
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
503
506
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
507
509
virtual
DtString
convertToString(
const
DtRwIntegerAttributeList
&)
const
;
510
512
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
513
};
514
516
class
DT_DLL_vrfutil
DtScriptedTaskStringMapVariableConverter
:
public
DtScriptedTaskVariableConverter
517
{
518
public
:
520
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
521
524
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
525
527
virtual
DtString
convertToString(
const
DtRwStringAttributeList
&)
const
;
528
530
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
531
};
532
534
class
DT_DLL_vrfutil
DtScriptedTaskRealMapVariableConverter
:
public
DtScriptedTaskVariableConverter
535
{
536
public
:
538
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
539
542
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
543
545
virtual
DtString
convertToString(
const
DtRwRealAttributeList
&)
const
;
546
548
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
549
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)