Hi,
> 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:
acdk_java/test/acdk/java/serialization/acdk_java_serialization_Basics_Te
st.cpp
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
help.
Roger
|