Archived

This forum has been archived. Please start a new discussion on GitHub.

Dynamic Ice and Classes

Hi, I have a class defined in my slice file and I would like to serialize it in C++ using Dynamic Ice.

The class is called Order and has the following definition:
class Address
{
  string StreetName;
};

class Order 
{
  Address BillTo;
  Address ShipTo;
};

Is there a code sample that I can refer to?

Regards,
Cyrille

Comments

  • mes
    mes California
    Hi Cyrille,

    The example in demo/Ice/invoke shows how to serialize a variety of Slice types, including classes. Let us know if you have any questions about the code.

    Regards,
    Mark
  • Hi Mark,

    Thanks for the demo. It now works. I was missing the read/writePendingObjects.

    Cheers,
    Cyrille