22 #ifndef TYPEINTERFACE_H
23 #define TYPEINTERFACE_H
37 static RealType undefinedValue() {
40 static RealType defaultValue() {
44 static unsigned int valueSize() {
48 static void write(std::ostream&,
const RealType&) {}
49 static void writeb(std::ostream& oss,
const RealType& v) {
50 oss.write((
char *) &v,
sizeof(v));
53 static bool read(std::istream&, RealType&) {
56 static bool readb(std::istream& iss, RealType& v) {
57 return bool(iss.read((
char *) &v,
sizeof(v)));
60 static std::string toString(
const RealType &) {
63 static bool fromString(RealType &,
const std::string &) {
69 #endif // TYPEINTERFACE_H