void Float::load(PersistentStore &store) { if (store.currentNodeType() != typeName()) throw ModelException("Trying to load a Float node from an incompatible node type " + store.currentNodeType()); set(store.loadDoubleValue()); }
Float::Float(Node *parent, PersistentStore &store, bool) : Node(parent) { value = store.loadDoubleValue(); }