Home You are here: Home > Support > Reference v1.0

Change language: German

Managing data

Flexible and performant data managing is one of the major goals of the exom framework. To enable the framework to manage data, the data have to be attached to the Object Model (see section The Object Model).

Managing data means performing different task by traversing or iterating through a section of your object hierachy. These tasks can executed completely independent while using the same object hierarchy. They may modify the object hierachy or not. Following standard tasks are implemented in the exom core:

Moreover this other data managing tasks can be implemented.

A manager class have to be derieved exom::XmMan like the mentioned classes above do. According to requirements exom::XmMan::manObjCallback() or exom::XmMan::manAtmCallback() should be overwritten. The base class exom::XmMan and the mentioned derivations are working completely on the stack, so it its possible to nest multpiple instances of this classes without side effects. So it is recommended to ensure stack based implementations when creating an individual manager class.

Using a Manager class

Using a manager class will always be done in the same pattern. An instance of the manager class have to be created. After this the intended task will be executed by calling a designated member function with an object (as parameter) specifying the entry within the object hierarchy.

Here an example using serialisation:

    XmStreamOutFile outFile ("myFile");
    XmManSeriWriteXml seri;
    seri.WriteXmlObj (myClass, outFile);


Copyright © 2006 Praetz Software Development - www.exomware.com