Results 1 to 3 of 3

Thread: Dynamic Ice and Classes

  1. #1
    cyrille_favreau is offline Registered User
    Name: Cyrille Favreau
    Organization: Lombard Odier Darier Hentsch & Cie
    Project: Calculation Engine
    Join Date
    Aug 2011
    Posts
    11

    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:

    Code:
    class Address
    {
      string StreetName;
    };
    
    class Order 
    {
      Address BillTo;
      Address ShipTo;
    };
    Is there a code sample that I can refer to?

    Regards,
    Cyrille

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    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

  3. #3
    cyrille_favreau is offline Registered User
    Name: Cyrille Favreau
    Organization: Lombard Odier Darier Hentsch & Cie
    Project: Calculation Engine
    Join Date
    Aug 2011
    Posts
    11
    Hi Mark,

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

    Cheers,
    Cyrille

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assertion when serializing a struct (Dynamic Ice)
    By cyrille_favreau in forum Help Center
    Replies: 2
    Last Post: 01-06-2012, 12:09 PM
  2. Dynamic Ice for Python
    By Edward Bishop in forum Help Center
    Replies: 3
    Last Post: 05-03-2007, 07:21 PM
  3. Replies: 0
    Last Post: 02-13-2006, 05:06 PM
  4. Dynamic Ice and Blobject (revisited)
    By KE5CRP in forum Help Center
    Replies: 7
    Last Post: 04-21-2005, 12:25 AM
  5. Dynamic Ice and Blobject (IceStorm)
    By KE5CRP in forum Help Center
    Replies: 7
    Last Post: 04-20-2005, 01:20 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •