12 #include <matrix/vlVector.h>
13 #include <vlpi/entityType.h>
36 #define DtUnitDisplaySmallDistance "smalldistance"
43 typedef DtString (*ResourceFormatterFcn)(
const DtEntityType&);
67 static DtString formatOffset(
const DtVector& loc);
68 static DtString formatTime(
int time);
69 static DtString formatDateTime(time_t time);
70 static DtString formatLocation(
const DtVector& loc);
72 static DtString formatDistance(
double d);
73 static DtString formatSmallDistance(
double d);
74 static DtString formatHeading(
double d);
75 static DtString formatRate(
double d);
76 static DtString formatAltitudeRate(
double d);
77 static DtString formatTurnRate(
double d);
78 static DtString formatAltitude(
double d);
80 static ResourceFormatterFcn SetResourceFormatterFcn(ResourceFormatterFcn);
81 static DtString formatResource(
const DtEntityType&);
84 static DtString formatResource(
const std::string&);
115 typedef std::map<std::string, DtScriptedTaskVariableConverter*>
Converters;
163 virtual void parseTime(
const std::string& s,
int& days,
int& hours,
int& minutes,
int& seconds)
const;
378 virtual DtString convertToString(
const DtVector&)
const;
482 virtual DtString convertToString(
const DtVector&)
const;
515 virtual DtString convertToString(
const DtTaitBryan&)
const;
Class which holds a list of string key and string value pairs. This class is a DtReaderWriter, and also has associated DtBufferSerialize methods available.
Definition: rwKeyValueList.h:21
A class that is used for converting to/from scripted task variables and reader/writer variables to be...
Definition: scriptedTaskVariableConverters.h:40
virtual DtReaderWriter * toRwPtr(const DtScriptedTaskVariable &) const override
Converts from the given scripted task variable to a DtReaderWriter variable that represents it...
Converter that will convert to/from DtRwVector.
Definition: scriptedTaskVariableConverters.h:367
Converter that will convert to/from DtRwString, however, looking for keywords that will allow it to c...
Definition: scriptedTaskVariableConverters.h:293
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
Converter that will convert to/from DtRwNLengthStringVector.
Definition: scriptedTaskVariableConverters.h:555
Reader-Writer specification for aerodrome information.
Definition: rwAerodromeSpecification.h:14
Converter that will convert to/from DtRwInt.
Definition: scriptedTaskVariableConverters.h:135
Converter that will convert to/from DtRwAnimationModelString.
Definition: scriptedTaskVariableConverters.h:489
Converter that will convert to/from DtRwLocationReference.
Definition: scriptedTaskVariableConverters.h:403
Holds a position of some form. May be an absolute position, or a reference to another object...
Definition: rwLocationReference.h:25
class DtRwIntegerAttributeList:
Definition: rwIntegerAttributeList.h:32
Converter that will convert to/from DtRwStringAttributeList.
Definition: scriptedTaskVariableConverters.h:573
Definition: readerWriter.h:85
virtual DtString stringRep(const DtReaderWriter *) const =0
Returns string representation.
virtual DtReaderWriter * toRwPtr(const DtScriptedTaskVariable &) const override
Converts from the given scripted task variable to a DtReaderWriter variable that represents it...
Converter that will convert to/from DtRwReal.
Definition: scriptedTaskVariableConverters.h:198
Converter that will convert to/from DtRwInt for time.
Definition: scriptedTaskVariableConverters.h:153
Converter that will convert to/from DtRwOffsetVector.
Definition: scriptedTaskVariableConverters.h:453
Converter that will convert to/from DtRwReal for range formatting.
Definition: scriptedTaskVariableConverters.h:261
Converter that will convert to/from DtRwHeading for DtRwHeading formatting.
Definition: scriptedTaskVariableConverters.h:684
Converter that will convert to/from DtRwInt for combo box variable.
Definition: scriptedTaskVariableConverters.h:167
Factory that will maintain converters. Creating this factory installs default converters for current ...
Definition: scriptedTaskVariableConverters.h:89
Converter that will convert to/from DtRwReal for heading formatting.
Definition: scriptedTaskVariableConverters.h:213
Converter that will convert to/from DtRwKeyValueList.
Definition: scriptedTaskVariableConverters.h:609
Converters myConverters
Definition: scriptedTaskVariableConverters.h:116
Converter that will convert to/from DtRwAerodromeSpecification.
Definition: scriptedTaskVariableConverters.h:591
Converter that will convert to/from DtRwNLengthUUIDVector.
Definition: scriptedTaskVariableConverters.h:537
virtual void upgradeVariable(DtReaderWriter *) const
Upgrade RW to new format, if need be.
Definition: scriptedTaskVariableConverters.h:62
Converter that will convert to/from DtVertexList.
Definition: scriptedTaskVariableConverters.h:442
Converter that will convert to/from DtRwInt.
Definition: scriptedTaskVariableConverters.h:120
Converter that will convert to/from DtRwReal for range formatting.
Definition: scriptedTaskVariableConverters.h:253
virtual DtString stringRep(const DtReaderWriter *) const override
Returns string representation.
Converter that will convert to/from DtRwIntegerAttributeList.
Definition: scriptedTaskVariableConverters.h:627
Instances of DtRwIntegerList are lists of readable, writeable integers (DtRwInts). The list contains pointers to DtRwInt instances.
Definition: rwIntegerList.h:19
virtual std::string fromRwPtr(const DtReaderWriter *) const =0
Converts from the reader/writer variable to a std::string that will be used as the default value for ...
virtual DtReaderWriter * toRwPtr(const DtScriptedTaskVariable &) const override
Converts from the given scripted task variable to a DtReaderWriter variable that represents it...
Converter that will convert to/from DtRwInt for image combo box variable.
Definition: scriptedTaskVariableConverters.h:175
Converter that will convert to/from DtSimResource or DtRwString.
Definition: scriptedTaskVariableConverters.h:304
class DtVertexList:
Definition: vertexList.h:22
Converter that will convert to/from DtRwOffsetVector.
Definition: scriptedTaskVariableConverters.h:471
Converter that will convert to/from DtRwReal for altitide rate formatting.
Definition: scriptedTaskVariableConverters.h:237
virtual DtReaderWriter * toRwPtr(const DtScriptedTaskVariable &) const =0
Converts from the given scripted task variable to a DtReaderWriter variable that represents it...
Converter that will convert to/from DtRwReal for turn rate formatting.
Definition: scriptedTaskVariableConverters.h:245
class DtRwOffsetVectorList:
Definition: rwVectorList.h:63
virtual bool upgradeFromVariable(DtReaderWriter *toUpgradeTo, const DtReaderWriter *originalValue) const
Return true from this call if he toUpgradeTo variable should replace the original value...
Definition: scriptedTaskVariableConverters.h:56
A class for keeping track of meta data for variables of scripted tasks. The information is currently ...
Definition: scriptedTaskVariable.h:34
virtual DtString stringRep(const DtReaderWriter *) const override
Returns string representation.
Converter that will convert to/from DtRwTaitBryan.
Definition: scriptedTaskVariableConverters.h:504
Converter that will convert to/from DtRwBoolean.
Definition: scriptedTaskVariableConverters.h:322
Converter that will convert to/from DtRwForceType.
Definition: scriptedTaskVariableConverters.h:337
virtual DtString stringRep(const DtReaderWriter *) const override
Returns string representation.
Converter that will convert to/from DtRwEntityType.
Definition: scriptedTaskVariableConverters.h:352
virtual DtString stringRep(const DtReaderWriter *) const override
Returns string representation.
std::map< std::string, DtScriptedTaskVariableConverter * > Converters
Definition: scriptedTaskVariableConverters.h:115
DtRwNLengthUUIDVector is a named, readable/writable vector of DtUUIDs. Can be used in place of a NLen...
Definition: rwNLengthUUIDVector.h:30
virtual std::string fromRwPtr(const DtReaderWriter *) const override
Converts from the reader/writer variable to a std::string that will be used as the default value for ...
class DtRwRealAttributeList:
Definition: rwRealAttributeList.h:29
Converter that will convert to/from DtRwReal for datetime formatting.
Definition: scriptedTaskVariableConverters.h:269
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
Converter that will convert to/from DtRwObjectName.
Definition: scriptedTaskVariableConverters.h:522
Converter that will convert to/from DtRwRealAttributeList.
Definition: scriptedTaskVariableConverters.h:666
DtRwHeading; descriptor that represents a more robust heading.
Definition: rwHeading.h:15
Converter that will convert to/from DtRwStringAttributeList.
Definition: scriptedTaskVariableConverters.h:645
Converter that will convert to/from DtRWSphere.
Definition: scriptedTaskVariableConverters.h:385
Converter that will convert to/from DtRwString.
Definition: scriptedTaskVariableConverters.h:277
class DtRwVectorList:
Definition: rwVectorList.h:22
Converter that will convert to/from DtRwReal for altitude rate formatting.
Definition: scriptedTaskVariableConverters.h:229
class DtRwStringAttributeList:
Definition: rwStringAttributeList.h:29
Converter that will convert to/from DtRwReal for rate formatting.
Definition: scriptedTaskVariableConverters.h:221
Converter that will convert to/from DtVertexList.
Definition: scriptedTaskVariableConverters.h:423
Converter that will convert to/from DtRwColor.
Definition: scriptedTaskVariableConverters.h:183