21 #ifndef TYPEINTERFACE_H
22 #define TYPEINTERFACE_H
31 static RealType undefinedValue() {
34 static RealType defaultValue() {
38 static unsigned int valueSize() {
42 static void write(std::ostream &,
const RealType &) {}
43 static void writeb(std::ostream &oss,
const RealType &v) {
44 oss.write(
reinterpret_cast<const char *
>(&v),
sizeof(v));
47 static bool read(std::istream &, RealType &) {
50 static bool readb(std::istream &iss, RealType &v) {
51 return bool(iss.read(
reinterpret_cast<char *
>(&v),
sizeof(v)));
54 static std::string toString(
const RealType &) {
57 static bool fromString(RealType &,
const std::string &) {