data jam/preserves

Discussion in 'C++' started by keindl@gmail.com, Nov 15, 2006.

  1. Guest

    I heard that Python or maybe Ruby has a feature that transforms a
    complex data structure into something simple data structure that can be
    saved into a file. For example a structure containing several lists,
    vectors set etc. is transformed into a possible long vector of
    integeres. The transformation is reversible. This way it is easy to
    save and load the state of a running application.

    Is there something like this for C++? I have the following application
    in mind: I'd like to write parallel C++ code with MPI but I need to
    pass very complex data (built with the STL) between the nodes. MPI is
    very simplistic to this is a difficult task. If I had an encode/decode
    function pair that creates a vector of integers from any data, then
    this encoded simplified data preserve can be passed easily between the
    nodes.

    Nandor
     
    , Nov 15, 2006
    #1
    1. Advertising

  2. Guest

    I remember now that what I am looking for is the C++ version of the
    pickle module in Python.

    Nandor
     
    , Nov 15, 2006
    #2
    1. Advertising

  3. wrote:
    > I heard that Python or maybe Ruby has a feature that transforms a
    > complex data structure into something simple data structure that can be
    > saved into a file. For example a structure containing several lists,
    > vectors set etc. is transformed into a possible long vector of
    > integeres. The transformation is reversible. This way it is easy to
    > save and load the state of a running application.
    >
    > Is there something like this for C++? I have the following application
    > in mind: I'd like to write parallel C++ code with MPI but I need to
    > pass very complex data (built with the STL) between the nodes. MPI is
    > very simplistic to this is a difficult task. If I had an encode/decode
    > function pair that creates a vector of integers from any data, then
    > this encoded simplified data preserve can be passed easily between the
    > nodes.
    >
    > Nandor


    Maybe this will help,
    http://www.parashift.com/c -faq-lite/serialization.html
     
    doug turnbull, Nov 15, 2006
    #3
  4. mlimber Guest

    doug turnbull wrote:
    > wrote:
    > > I heard that Python or maybe Ruby has a feature that transforms a
    > > complex data structure into something simple data structure that can be
    > > saved into a file. For example a structure containing several lists,
    > > vectors set etc. is transformed into a possible long vector of
    > > integeres. The transformation is reversible. This way it is easy to
    > > save and load the state of a running application.
    > >
    > > Is there something like this for C++? I have the following application
    > > in mind: I'd like to write parallel C++ code with MPI but I need to
    > > pass very complex data (built with the STL) between the nodes. MPI is
    > > very simplistic to this is a difficult task. If I had an encode/decode
    > > function pair that creates a vector of integers from any data, then
    > > this encoded simplified data preserve can be passed easily between the
    > > nodes.
    > >
    > > Nandor

    >
    > Maybe this will help,
    > http://www.parashift.com/c -faq-lite/serialization.html


    And this:

    http://boost.org/libs/serialization/doc/index.html

    Cheers! --M
     
    mlimber, Nov 15, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. PC Leung
    Replies:
    3
    Views:
    671
    James
    Jul 22, 2004
  2. thirtyseven
    Replies:
    5
    Views:
    575
    Richard Herring
    Jun 7, 2005
  3. Sheldon

    C newbie in a jam

    Sheldon, Oct 15, 2006, in forum: C Programming
    Replies:
    8
    Views:
    317
    Old Wolf
    Oct 16, 2006
  4. Ramon F Herrera

    Java in a chip? JAM (Java Actual Machine)?

    Ramon F Herrera, Nov 27, 2007, in forum: Java
    Replies:
    5
    Views:
    416
    Roedy Green
    Nov 28, 2007
  5. kj
    Replies:
    0
    Views:
    311
Loading...

Share This Page