Hi,
the ice-runtime must use an algorithm for serializing and unserializing of prameters and ice-classes.
How to use this algorithms in my program? I need this because I need to write some ice-class-objects to a database without knowing the structure of an object.
for example:
The server only knows of class A and teh client extends that class to class B and calls the doStuff-method mit an object of class B. I know that no extended information is lost by calling the implementation of the method doStuff. The doStuff-method should insert the passed object to a database.Code:data.ice module MyModule{ class A { int alpha; }; }; server.ice #include "data.ice" module MyModule { interface MyInterface { void doStuff(A a); }; }; client.ice #include "data.ice" module MyModule { class B extends A { int beta; }; };

Reply With Quote