void Integer::load(PersistentStore &store) { if (store.currentNodeType() != typeName()) throw ModelException("Trying to load an Integer node from an incompatible node type " + store.currentNodeType()); set(store.loadIntValue()); }
void Boolean::load(PersistentStore &store) { if (store.currentNodeType() != typeName()) throw ModelException("Trying to load an Boolean node from an incompatible node type " + store.currentNodeType()); bool val = store.loadIntValue(); set(val); }
Boolean::Boolean(Node *parent, PersistentStore &store, bool) : Node(parent) { value = store.loadIntValue() != 0; }
Integer::Integer(Node *parent, PersistentStore &store, bool) : Super(parent) { integer = store.loadIntValue(); }