-// generic.cxx -- generic protocal class
+// generic.cxx -- generic protocol class
//
// Written by Curtis Olson, started November 1999.
//
/* FIXME padding for alignment? Something like:
* length += (strlength % 4 > 0 ? sizeof(int32_t) - strlength % 4 : 0;
*/
+ break;
}
}
default: // SG_STRING
SG_LOG( SG_IO, SG_ALERT, "Generic protocol: "
"Ignoring unsupported binary input chunk type.");
+ break;
}
}
default: // SG_STRING
_in_message[i].prop->setStringValue(p1);
+ break;
}
p1 = p2;
if( prot.max > prot.min )
{
if( prot.wrap )
- new_val = SGMisc<double>::normalizePeriodic(prot.min, prot.max, new_val);
+ new_val = SGMisc<T>::normalizePeriodic(prot.min, prot.max, new_val);
else
new_val = SGMisc<T>::clip(new_val, prot.min, prot.max);
}