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