473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

data jam/preserves

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 '06 #1
3 1087
I remember now that what I am looking for is the C++ version of the
pickle module in Python.

Nandor

Nov 15 '06 #2
ke****@gmail.com 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-lit...alization.html

Nov 15 '06 #3
doug turnbull wrote:
ke****@gmail.com 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-lit...alization.html
And this:

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

Cheers! --M

Nov 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Code4u | last post by:
I have an application that manipulates large arrays of image data of various types, all the usual arithmetic operations on the data objects are supported. With careful design and tricks similar to...
3
by: Jonathan Buckland | last post by:
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan
11
by: kenneth | last post by:
I just ran across this. #1 <DBColumn> 1 </DBColumn> #2 <DBColumn> </DBColumn> The data for #1 will be parsed and returned as " 1 ". I get a sequence of...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
3
by: bbernieb | last post by:
Hi, All, Is it possible to access a variable inside of a data binding, without the variable being out of scope? (Note: On the DataBinder line, I get an error message that says "Name 'i' is...
5
by: Gene | last post by:
What can I do if I want to get the result using the sql command? for example, the select command is "select Name from Employee where StaffID=10" How to get the "Name"??? dim Name as string and...
13
by: DH | last post by:
Hi, I'm trying to strip the html and other useless junk from a html page.. Id like to create something like an automated text editor, where it takes the keywords from a txt file and removes them...
4
by: igotyourdotnet | last post by:
Is there a way to pass data from page to page without the use of a Session Variable or queryString? I need to pass drop down box selections from page to page and have the drop downs on the page be...
5
by: Carlos | last post by:
Hi all, what is the best way to share the data of lets say a textbox text between pages? for example if I fill the textbox in one page and later redirect to a new page, and I would like to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.