6 #pragma warning (disable:4996)
9 #include "tdbutil/tdbUnits.h"
32 virtual bool isDisplayableSymbol(
const DtString& s)
const
42 return stringRep(rw, variableDataTypes,
false);
46 return DtString::nullString();
53 if (printVariableName)
58 if (isDisplayableSymbol(label))
60 if (printVariableName)
69 if (str && (str->findString(
"<?xml ") == 0))
92 label += formatLocation(*(dynamic_cast<const DtRwVector*>(readerWriter)));
96 label += formatOffset(*(dynamic_cast<const DtRwVector*>(readerWriter)));
100 label += formatDistance(*(dynamic_cast<const DtRwReal*>(readerWriter)));
104 label += formatHeading(*(dynamic_cast<const DtRwReal*>(readerWriter)));
108 label += formatRate(*(dynamic_cast<const DtRwReal*>(readerWriter)));
112 label += formatTurnRate(*(dynamic_cast<const DtRwReal*>(readerWriter)));
116 label += formatTime(*(dynamic_cast<const DtRwInt*>(readerWriter)));
120 label += formatDateTime(static_cast<time_t>((*(dynamic_cast<const DtRwReal*>(readerWriter)))));
136 return DtString::nullString();
143 std::vector<DtReaderWriterRegistryData *>::const_iterator iter = variables.
registry().
registryData().begin();
144 std::vector<DtReaderWriterRegistryData *>::const_iterator endIter = variables.
registry().
registryData().end();
146 for(; iter != endIter;)
150 DtString label = stringRep(readerWriter, variableDataTypes);
151 if (!label.isEmpty())
158 if ((iter != endIter) && added)
169 for(
int i = 0; i < inputString.size(); ++i)
171 char c = inputString[i];
190 int days = 0, hours = 0, minutes = 0, seconds = 0;
192 days = time / (24 * 3600);
193 time -= (days * 24 * 3600);
196 time -= hours * 3600;
199 time -= minutes * 60;
212 struct tm* timeptr = gmtime(&time);
213 return asctime(timeptr);
218 return formatSourceToDisplay(loc);
226 DtString distance = formatSourceToDisplay(d, DtUnitDisplayDistance, DtUnitMeters, unitLabel);
230 if (unitLabel.length())
244 rep += formatDistance(loc.x());
246 rep += formatDistance(loc.y());
248 rep += formatDistance(loc.z());
258 DtString heading = formatSourceToDisplay(d, DtUnitDisplayOrientation, DtUnitRadians, unitLabel);
262 if (unitLabel.length())
276 DtString heading = formatSourceToDisplay(d, DtUnitDisplayVelocity, DtUnitMetersPerSecond, unitLabel);
280 if (unitLabel.length())
294 DtString heading = formatSourceToDisplay(d, DtUnitDisplayRotationalVelocity, DtUnitRadians, unitLabel);
298 if (unitLabel.length())