Results 1 to 5 of 5

Thread: On new features in upcoming ICE 1.6

  1. #1
    shantanu_k06 is offline Registered User
    Name: Shantanu Kumar
    Organization: Hewlett Packard
    Project: Prototypes for Distributed Apps
    Join Date
    Sep 2003
    Posts
    24

    On new features in upcoming ICE 1.6

    Hi ZeroC folks,

    I am delighted to see the list of features to be added in the upcoming version of ICE. I was away on vacation so this post of kinda late, but thanks for the pleasant surprise.

    I am working on an academic project that needs object-serialisation. I have been working on an XML-based serialisation library for ICE though knowing that it was effectively going to counter ICE's strength - now I can safely wait till ICE 1.6 is available. Will you kindly consider releasing betas or CVS snapshots? And could you please let me know if the serialisation API will have deferred serialised-object RTTI ? E.g. :

    // assume here : ob = serialised object
    t = typeof (ob)
    if t == SomeModule.SomeClass
    dig 'ob'
    else
    none of my business, go write it into database for now
    endif

    Thanks again.

    Regards,
    Shantanu

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    I'm afraid I don't understand what you're trying to accomplish in your example.

    The serialization API we are introducing will have InputStream and OutputStream interfaces. You use an output stream to create a sequence of bytes, and you can create an input stream from a sequence of bytes. We provide implementations of these interfaces that use the Ice encoding, but you could implement your own that use a different encoding.

    Of course, an implementation that uses XML will have some limitations. For example, the stream is not provided with the names of data members. Furthermore, the implementation must ensure that data is read in the order it was written.

    Take care,
    - Mark

  3. #3
    shantanu_k06 is offline Registered User
    Name: Shantanu Kumar
    Organization: Hewlett Packard
    Project: Prototypes for Distributed Apps
    Join Date
    Sep 2003
    Posts
    24
    Hello Mark,

    I think I now understand how the serialization API will work in ICE. By the way, I went way ahead expecting even RTTI over the wire for objects being serialised. RTTI can be emulated using workarounds that put data members to work as metadata - so that's not a big problem. Thanks for explaining.

    Regards,
    Shantanu

  4. #4
    Mako's Avatar
    Mako is offline Registered User
    Name: Carlos Sandoval
    Organization: SharkByte
    Project: M.O.S. MMO
    Join Date
    Feb 2006
    Location
    Houston
    Posts
    12
    I too have a need to serialize an Ice Object to XML and was wondering if this was available?

    In the past I have just used the generated C# classes and serialized them to SOAP but in my current project I am using Ice with C++ and have a need to output some messages in XML to be consumed by customers who are not too keen on re-building their interfaces to accept Ice objects.

    Any suggestions?
    Carlos "Mako" Sandoval
    SharkByte Studios LLC
    char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){print f(p,34,p,34);}

  5. #5
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    You can look at the streaming interfaces that we added to Ice. Mark wrote an article on this in issue 12 of our newsletter. If this is not suitable, then you might want to consider writing a slice translator to automatically produce classes to do the serialization.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Upcoming features in Ice 3.3
    By mes in forum Announcements
    Replies: 0
    Last Post: 01-18-2008, 02:55 PM
  2. ICE Features Across Language Mappings
    By Bytenik in forum Comments
    Replies: 1
    Last Post: 04-04-2005, 03:55 PM
  3. New features in development for Ice 1.6
    By mes in forum Announcements
    Replies: 0
    Last Post: 09-10-2004, 06:28 PM
  4. Upcoming changes to Slice
    By michi in forum Announcements
    Replies: 0
    Last Post: 08-31-2004, 07:33 PM
  5. Upcoming conference talks
    By michi in forum Announcements
    Replies: 0
    Last Post: 03-27-2003, 04:41 PM

Posting Permissions

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