[kplato] persistence ...
Jochen Hanff
kplato@kde.org
Wed, 4 Jul 2001 15:25:49 +0200
hi to all,
i developed a class library which provides reflection and persistence
to c++ objects. it's quite easy to use: you just have to define
a class schema in xml within the c++ class definition. then a metacompiler
generates the rest for you.
you can get information about properties and methods. you can set/get
the value of a property and you can invoke methods in a generic way
just by knowing its name : obj->method_invoke("mname", param)
the objects are stored in xml format in a file, database whatever ... ,
you just have to implement an adapter to the protocol you want to use.
so far, file:// is implemented, mysql:// will follow soon.
i developed generic dialogs, too. you can pass an object to a dialog
and it shows you the properties which you can read and write, the methods,
which you can invoke, of the object and the object in xml format.
( http://rs45.bv.tu-berlin.de/JOCHEN/FE/gui.html )
have a look at :
http://rs45.bv.tu-berlin.de/JOCHEN/FE/CoreDoc/html/index.html
more information in german :
http://rs45.bv.tu-berlin.de/JOCHEN/FE/index.html
the code is not available yet, but in a few days i will copy it to the ftp server.
maybe the code is useful for you.
stay free
jochen
--
Dipl.-Ing. Jochen Hanff
mailto:jochen@ifb.bv.tu-berlin.de
http://ifb.bv.TU-Berlin.DE/JOCHEN
IfB Theoretische Methoden
http://ifb.bv.TU-Berlin.de