예제 #1
0
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());
}
예제 #2
0
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);
}
예제 #3
0
Boolean::Boolean(Node *parent, PersistentStore &store, bool) :
	Node(parent)
{
	value = store.loadIntValue() != 0;
}
예제 #4
0
Integer::Integer(Node *parent, PersistentStore &store, bool) : Super(parent)
{
	integer = store.loadIntValue();
}