예제 #1
0
파일: Float.cpp 프로젝트: Andresbu/Envision
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());
}
예제 #2
0
파일: Float.cpp 프로젝트: Andresbu/Envision
Float::Float(Node *parent, PersistentStore &store, bool) :
	Node(parent)
{
	value = store.loadDoubleValue();
}