Esempio n. 1
0
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());
}
Esempio n. 2
0
Float::Float(Node *parent, PersistentStore &store, bool) :
	Node(parent)
{
	value = store.loadDoubleValue();
}