21 #ifndef TYPEINTERFACE_H 22 #define TYPEINTERFACE_H 36 static RealType undefinedValue() {
39 static RealType defaultValue() {
43 static unsigned int valueSize() {
47 static void write(std::ostream &,
const RealType &) {}
48 static void writeb(std::ostream &oss,
const RealType &v) {
49 oss.write(reinterpret_cast<const char *>(&v),
sizeof(v));
52 static bool read(std::istream &, RealType &) {
55 static bool readb(std::istream &iss, RealType &v) {
56 return bool(iss.read(reinterpret_cast<char *>(&v),
sizeof(v)));
59 static std::string toString(
const RealType &) {
62 static bool fromString(RealType &,
const std::string &) {
68 #endif // TYPEINTERFACE_H