28const unit TCDataFactory::known_units[NUMUNITS] = {
29 {
"feet",
"ft", LENGTH, 0.3048},
30 {
"meters",
"m", LENGTH, 1.0},
31 {
"knots",
"kt", VELOCITY, 1.0},
32 {
"knots^2",
"kt^2", BOGUS, 1.0},
36int TCDataFactory::findunit(
const char *
unit) {
37 for (
int a = 0; a < NUMUNITS; a++) {
38 if (!strcmp(
unit, known_units[a].name) ||
39 !strcmp(
unit, known_units[a].abbrv))
Tide and current data container.