From: Roger Rene Kommer <kommer@ar...> - 2003-08-01 09:44:03
> I'm currently playing around with acdk.
> I'm stuck at the serialization tests. Could you give me a
> simple example of how to
> - read objects from a java file
> - save the values as variables
> I don't need to do an object mapping. I just have to be able
> to read the file.
Have a look at the unit test for the java serialization:
If you want to serialize own classes from/to java, you have to create
a corresponding ACDK class, derived from acdk::io::Serializable and
with metainfo (the *_metainf_base.cpp and _metainf_ext.cpp).
It is also important, that the member has the same declaration order
and names as the Java class, otherwise a mapping has to be defined.
Please give me an example what does not working if you need further
From: Roger Rene Kommer <kommer@ar...> - 2003-08-01 12:44:49
> > I'm currently playing around with acdk.
> > I'm stuck at the serialization tests. Could you give me a simple
> > example of how to
> > - read objects from a java file
> > - save the values as variables
> > I don't need to do an object mapping. I just have to be
> able to read
> > the file.
> Have a look at the unit test for the java serialization:
I've just find a bug in handling unicode character (like umlauts)
in the java compatible serialization. In the current version it
will not work expected. I will have fixed this in the next snapshot.
From: Benjamin Stadin <stadin@gm...> - 2003-08-02 14:25:09
thank you for the excellent sample!
The sample doesn't compile with the latest
release(::acdk::lang::dmi::MiMiOrgPoly), so I just grabbed the latest
cvs version. I'll test it later this evening with complex java objects.
Get latest updates about Open Source Projects, Conferences and News.