12 #include <matrix/vlVector.h>
13 #include <vlpi/entityType.h>
41 typedef DtString (*ResourceFormatterFcn)(
const DtEntityType&);
65 static DtString formatOffset(
const DtVector& loc);
66 static DtString formatTime(
int time);
67 static DtString formatDateTime(time_t time);
68 static DtString formatLocation(
const DtVector& loc);
70 static DtString formatDistance(
double d);
71 static DtString formatHeading(
double d);
72 static DtString formatRate(
double d);
73 static DtString formatAltitudeRate(
double d);
74 static DtString formatTurnRate(
double d);
75 static DtString formatAltitude(
double d);
77 static ResourceFormatterFcn SetResourceFormatterFcn(ResourceFormatterFcn);
78 static DtString formatResource(
const DtEntityType&);
81 static DtString formatResource(
const std::string&);
112 typedef std::map<std::string, DtScriptedTaskVariableConverter*>
Converters;
160 virtual void parseTime(
const std::string& s,
int& days,
int& hours,
int& minutes,
int& seconds)
const;
367 virtual DtString convertToString(
const DtVector&)
const;
471 virtual DtString convertToString(
const DtVector&)
const;
504 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:38
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:356
Converter that will convert to/from DtRwString, however, looking for keywords that will allow it to c...
Definition: scriptedTaskVariableConverters.h:282
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:544
Reader-Writer specification for aerodrome information.
Definition: rwAerodromeSpecification.h:14
Converter that will convert to/from DtRwInt.
Definition: scriptedTaskVariableConverters.h:132
Converter that will convert to/from DtRwAnimationModelString.
Definition: scriptedTaskVariableConverters.h:478
Converter that will convert to/from DtRwLocationReference.
Definition: scriptedTaskVariableConverters.h:392
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:562
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:195
Converter that will convert to/from DtRwInt for time.
Definition: scriptedTaskVariableConverters.h:150
Converter that will convert to/from DtRwOffsetVector.
Definition: scriptedTaskVariableConverters.h:442
Converter that will convert to/from DtRwHeading for DtRwHeading formatting.
Definition: scriptedTaskVariableConverters.h:673
Converter that will convert to/from DtRwInt for combo box variable.
Definition: scriptedTaskVariableConverters.h:164
Factory that will maintain converters. Creating this factory installs default converters for current ...
Definition: scriptedTaskVariableConverters.h:86
Converter that will convert to/from DtRwReal for heading formatting.
Definition: scriptedTaskVariableConverters.h:210
Converter that will convert to/from DtRwKeyValueList.
Definition: scriptedTaskVariableConverters.h:598
Converters myConverters
Definition: scriptedTaskVariableConverters.h:113
Converter that will convert to/from DtRwAerodromeSpecification.
Definition: scriptedTaskVariableConverters.h:580
Converter that will convert to/from DtRwNLengthUUIDVector.
Definition: scriptedTaskVariableConverters.h:526
virtual void upgradeVariable(DtReaderWriter *) const
Upgrade RW to new format, if need be.
Definition: scriptedTaskVariableConverters.h:60
Converter that will convert to/from DtVertexList.
Definition: scriptedTaskVariableConverters.h:431
Converter that will convert to/from DtRwInt.
Definition: scriptedTaskVariableConverters.h:117
Converter that will convert to/from DtRwReal for range formatting.
Definition: scriptedTaskVariableConverters.h:250
virtual DtString stringRep(const DtReaderWriter *) const override
Returns string representation.
Converter that will convert to/from DtRwIntegerAttributeList.
Definition: scriptedTaskVariableConverters.h:616
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:172
Converter that will convert to/from DtSimResource or DtRwString.
Definition: scriptedTaskVariableConverters.h:293
class DtVertexList:
Definition: vertexList.h:22
Converter that will convert to/from DtRwOffsetVector.
Definition: scriptedTaskVariableConverters.h:460
Converter that will convert to/from DtRwReal for altitide rate formatting.
Definition: scriptedTaskVariableConverters.h:234
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:242
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:54
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:493
Converter that will convert to/from DtRwBoolean.
Definition: scriptedTaskVariableConverters.h:311
Converter that will convert to/from DtRwForceType.
Definition: scriptedTaskVariableConverters.h:326
virtual DtString stringRep(const DtReaderWriter *) const override
Returns string representation.
Converter that will convert to/from DtRwEntityType.
Definition: scriptedTaskVariableConverters.h:341
virtual DtString stringRep(const DtReaderWriter *) const override
Returns string representation.
std::map< std::string, DtScriptedTaskVariableConverter * > Converters
Definition: scriptedTaskVariableConverters.h:112
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:258
#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:511
Converter that will convert to/from DtRwRealAttributeList.
Definition: scriptedTaskVariableConverters.h:655
DtRwHeading; descriptor that represents a more robust heading.
Definition: rwHeading.h:15
Converter that will convert to/from DtRwStringAttributeList.
Definition: scriptedTaskVariableConverters.h:634
Converter that will convert to/from DtRWSphere.
Definition: scriptedTaskVariableConverters.h:374
Converter that will convert to/from DtRwString.
Definition: scriptedTaskVariableConverters.h:266
class DtRwVectorList:
Definition: rwVectorList.h:22
Converter that will convert to/from DtRwReal for altitude rate formatting.
Definition: scriptedTaskVariableConverters.h:226
class DtRwStringAttributeList:
Definition: rwStringAttributeList.h:29
Converter that will convert to/from DtRwReal for rate formatting.
Definition: scriptedTaskVariableConverters.h:218
Converter that will convert to/from DtVertexList.
Definition: scriptedTaskVariableConverters.h:412
Converter that will convert to/from DtRwColor.
Definition: scriptedTaskVariableConverters.h:180