From: stephan b. <st...@ei...> - 2003-09-09 09:40:12
|
Observation: Serializable classes are responsible for calling node.setSerializableClass() in their serialize(). How about the following change: add to Serializer interface: get/setSerializableClass() Set this once in the Serializable subclass' ctors and then add the following to the SerialTree's serialization code: setSerializableClass( sernode.getSerializableClass() ) That is, let the SerialTree ask the serializable for it's class. With libgcom i've been cheating and using QObject::className() in a base class, but that won't work for non-qt code. -- ----- stephan st...@ei... - http://www.einsurance.de "...control is a degree of inhibition, and a system which is perfectly inhibited is completely frozen." -- Alan W. Watts |