Question about GigaSpaces C++ gsxml2cpp Utility
Hello,
We want to generate two serializer code files with gsxml2cpp utility.
But we have got some problems.
For Parent class, we can create the serializer code (PareentClass.cpp) & header (ParentClass.h) with gzxml2cpp.
But we fail to generate the corrected Child class.
The Child class is inherited from Parent class. We add the following elements into the child.gs.xml file.
<include-header file="ParentClass.h" />
<class name="ChildClass" persist="false" replicate="false" fifo="false" >
<superclass name="ParentClass" />
...
</class>
The generated ChildClassSerializer class (ChildClass.cpp) is inherited from ParentClassSerializer class.
The ParentClassSerializer class is declared in ParentClass.cpp (generated by gsxml2cpp).
But ChildClass.cpp is included ParentClass.h header file only.
Then the generated ChildClass code (ChildClass.cpp) will fail to compile due to undeclaration of the ParentClassSerializer class.
How to fix the problem?
Is there any missing element for our chlid.gs.xml?
Our XAP version:
- premium v7.1.0 m4
- Linux
- gcc 3.4.5
Thanks.
This thread was imported from the previous forum.
For your reference, the original is available here