VR-Forces 4.6.1 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
DtSphere
;
25
class
DtRwKeyValueList
;
26
29
class
DT_DLL_vrfutil
DtScriptedTaskVariableConverter
30
{
31
public
:
33
virtual
DtReaderWriter
* toRwPtr(
const
DtScriptedTaskVariable
&)
const
= 0;
34
37
virtual
std::string fromRwPtr(
const
DtReaderWriter
*)
const
= 0;
38
40
virtual
DtString
stringRep(
const
DtReaderWriter
*)
const
= 0;
41
43
static
DtString
formatOffset(
const
DtVector
& loc);
44
static
DtString
formatTime(
int
time);
45
static
DtString
formatDateTime(time_t time);
46
static
DtString
formatLocation(
const
DtVector
& loc);
47
static
DtString
formatSphere(
const
DtSphere
& loc);
48
static
DtString
formatDistance(
double
d);
49
static
DtString
formatHeading(
double
d);
50
static
DtString
formatRate(
double
d);
51
static
DtString
formatAltitudeRate(
double
d);
52
static
DtString
formatTurnRate(
double
d);
53
};
54
57
class
DT_DLL_vrfutil
DtScriptedTaskVariableConverterFactory
58
{
59
public
:
61
DtScriptedTaskVariableConverterFactory
();
62
64
virtual
~
DtScriptedTaskVariableConverterFactory
();
78
virtual
void
addConverter(
const
std::string& variableType,
DtScriptedTaskVariableConverter
*);
79
virtual
DtScriptedTaskVariableConverter
* converterFor(
const
std::string& variableType);
81
82
protected
:
83
typedef
std::map<std::string, DtScriptedTaskVariableConverter*>
Converters
;
84
Converters
myConverters
;
85
};
86
88
class
DT_DLL_vrfutil
DtScriptedTaskRwIntVariableConverter
:
public
DtScriptedTaskVariableConverter
89
{
90
public
:
92
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
93
96
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
97
99
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
100
};
101
103
class
DT_DLL_vrfutil
DtScriptedTaskRwIntTimeVariableConverter
:
public
DtScriptedTaskRwIntVariableConverter
104
{
105
public
:
106
108
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
109
111
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
112
113
virtual
void
parseTime(
const
std::string& s,
int
& days,
int
& hours,
int
& minutes,
int
& seconds)
const
;
114
};
115
117
class
DT_DLL_vrfutil
DtScriptedTaskComboBoxVariableConverter
:
public
DtScriptedTaskRwIntVariableConverter
118
{
119
public
:
121
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
122
};
123
125
class
DT_DLL_vrfutil
DtScriptedTaskRwColorVariableConverter
:
public
DtScriptedTaskVariableConverter
126
{
127
public
:
129
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
130
133
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
134
136
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
137
};
138
140
class
DT_DLL_vrfutil
DtScriptedTaskRwRealVariableConverter
:
public
DtScriptedTaskVariableConverter
141
{
142
public
:
144
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
145
148
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
149
151
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
152
};
153
155
class
DT_DLL_vrfutil
DtScriptedTaskRwRealHeadingVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
156
{
157
public
:
159
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
160
};
161
163
class
DT_DLL_vrfutil
DtScriptedTaskRwRealRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
164
{
165
public
:
167
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
168
};
169
171
class
DT_DLL_vrfutil
DtScriptedTaskRwRealAltitudeRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
172
{
173
public
:
175
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
176
};
177
179
class
DT_DLL_vrfutil
DtScriptedTaskRwRealTurnRateVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
180
{
181
public
:
183
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
184
};
185
187
class
DT_DLL_vrfutil
DtScriptedTaskRwRealRangeVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
188
{
189
public
:
191
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
192
};
193
195
class
DT_DLL_vrfutil
DtScriptedTaskRwRealDateTimeVariableConverter
:
public
DtScriptedTaskRwRealVariableConverter
196
{
197
public
:
199
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
200
};
201
203
class
DT_DLL_vrfutil
DtScriptedTaskRwStringVariableConverter
:
public
DtScriptedTaskVariableConverter
204
{
205
public
:
207
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
208
211
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
212
214
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
215
};
216
218
class
DT_DLL_vrfutil
DtScriptedTaskRwBooleanVariableConverter
:
public
DtScriptedTaskVariableConverter
219
{
220
public
:
222
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
223
226
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
227
229
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
230
};
231
233
class
DT_DLL_vrfutil
DtScriptedTaskRwForceTypeVariableConverter
:
public
DtScriptedTaskVariableConverter
234
{
235
public
:
237
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
238
241
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
242
244
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
245
};
246
248
class
DT_DLL_vrfutil
DtScriptedTaskRwEntityTypeVariableConverter
:
public
DtScriptedTaskVariableConverter
249
{
250
public
:
252
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
253
256
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
257
259
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
260
};
261
263
class
DT_DLL_vrfutil
DtScriptedTaskRwVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
264
{
265
public
:
267
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
268
271
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
272
274
virtual
DtString
convertToString(
const
DtVector
&)
const
;
275
277
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
278
};
279
281
class
DT_DLL_vrfutil
DtScriptedTaskRwSphereVariableConverter
:
public
DtScriptedTaskVariableConverter
282
{
283
public
:
285
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
286
289
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
290
292
virtual
DtString
convertToString(
const
DtSphere
&)
const
;
293
295
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
296
};
297
299
class
DT_DLL_vrfutil
DtScriptedTaskRwVertexListVariableConverter
:
public
DtScriptedTaskVariableConverter
300
{
301
public
:
303
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
304
307
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
308
310
virtual
DtString
convertToString(
const
DtVertexList
&)
const
;
311
virtual
DtString
convertToString(
const
DtRwVectorList
&)
const
;
312
314
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
315
};
316
318
class
DT_DLL_vrfutil
DtScriptedTaskRwVectorListVariableConverter
:
public
DtScriptedTaskRwVertexListVariableConverter
319
{
320
public
:
322
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
323
325
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
326
};
327
329
class
DT_DLL_vrfutil
DtScriptedTaskRwOffsetVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
330
{
331
public
:
333
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
334
337
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
338
340
virtual
DtString
convertToString(
const
DtVector
&)
const
;
341
343
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
344
};
345
347
class
DT_DLL_vrfutil
DtScriptedTaskRwAnimationModelStringVariableConverter
:
public
DtScriptedTaskVariableConverter
348
{
349
public
:
351
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
352
355
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
356
358
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
359
};
360
362
class
DT_DLL_vrfutil
DtScriptedTaskRwTaitBryanVariableConverter
:
public
DtScriptedTaskVariableConverter
363
{
364
public
:
366
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
367
370
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
371
373
virtual
DtString
convertToString(
const
DtTaitBryan&)
const
;
374
376
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
377
};
378
380
class
DT_DLL_vrfutil
DtScriptedTaskRwObjectNameVariableConverter
:
public
DtScriptedTaskVariableConverter
381
{
382
public
:
384
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
385
388
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
389
391
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
392
};
393
395
class
DT_DLL_vrfutil
DtScriptedTaskRwNLengthUUIDVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
396
{
397
public
:
399
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
400
403
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
404
406
virtual
DtString
convertToString(
const
DtRwNLengthUUIDVector
&)
const
;
407
409
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
410
};
411
413
class
DT_DLL_vrfutil
DtScriptedTaskRwNLengthStringVectorVariableConverter
:
public
DtScriptedTaskVariableConverter
414
{
415
public
:
417
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
418
421
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
422
424
virtual
DtString
convertToString(
const
DtRwNLengthStringVector
&)
const
;
425
427
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
428
};
429
431
class
DT_DLL_vrfutil
DtScriptedTaskRwKeyValueListVariableConverter
:
public
DtScriptedTaskVariableConverter
432
{
433
public
:
435
virtual
DtReaderWriter
*
toRwPtr
(
const
DtScriptedTaskVariable
&)
const
;
436
439
virtual
std::string
fromRwPtr
(
const
DtReaderWriter
*)
const
;
440
442
virtual
DtString
convertToString(
const
DtRwKeyValueList
&)
const
;
443
445
virtual
DtString
stringRep
(
const
DtReaderWriter
*)
const
;
446
};
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)