473,396 Members | 1,921 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,396 software developers and data experts.

Design Patterns for C++ Object Serialization/Deserialization?

Are there any design patterns for object serialization/deserialization
in C++? Where can I find information pertaining to them? Can someone
post some real coding examples please? I have a need to
serialize/deserialize objects that contain data fields and pointer
fields. Furthermore, not all the fields need to be
serialized/deserialized.

Thanks,
Nimmi
Jul 22 '05 #1
12 7194

"Nimmi Srivastav" <ni*************@yahoo.com> wrote in message
news:8b*************************@posting.google.co m...
Are there any design patterns for object serialization/deserialization
in C++? Where can I find information pertaining to them? Can someone
post some real coding examples please? I have a need to
serialize/deserialize objects that contain data fields and pointer
fields. Furthermore, not all the fields need to be
serialized/deserialized.


Check out this paper on the Serializer Pattern. It has example code written
in C++:

http://www.riehle.org/computer-scien...-serializer.pd
f

I had to write a serializer several years ago and this paper was a very
useful reference.

Michael Feathers
www.objectmentor.com


Jul 22 '05 #2
Hi try www.boost.org.

I believe they have a working library.
Jul 22 '05 #3
"Michael D. Borghardt" <mi*****@borghardtConsulting.net> wrote:
Hi try www.boost.org.

I believe they have a working library.


*1* example of the EXTENSIVE REUSE that many of the XP naysayers are
either ignorant of, pathologically can't accept because it conflicts
with their nickel and dime, baby step test driven mythological safe
zone, and or opportunistically deny for $$$ and fame, "I'm the
alternative" reasons.
"Welcome to Boost.org!

The Boost web site provides free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. The libraries are intended to be widely useful, and
are in regular use by thousands of programmers across a broad spectrum
of applications.

A further goal is to establish "existing practice" and provide
reference implementations so that Boost libraries are suitable for
eventual standardization. Ten Boost libraries will be included in the
C++ Standards Committee's upcoming C++ Standard Library Technical
Report as a step toward becoming part of a future C++ Standard.

Although Boost was begun by members of the C++ Standards Committee
Library Working Group, participation has expanded to include thousands
programmers from the C++ community at large"
*****************END EXCERPT

Elliott
--
Not approaching OO as modelling execution
of physical machines, per the creators of OO
is like not having a software engineering soul.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Jul 22 '05 #4
Universe wrote:
"Michael D. Borghardt" <mi*****@borghardtConsulting.net> wrote:
Hi try www.boost.org.


*1* example of the EXTENSIVE REUSE that many of the XP naysayers are
either ignorant of, pathologically can't accept because it conflicts
with their nickel and dime, baby step test driven mythological safe
zone, and or opportunistically deny for $$$ and fame, "I'm the
alternative" reasons.


Eh?...

Perhaps your point could be better conveyed by shorter sentences.

--
Ben M.
Jul 22 '05 #5
On Thu, 27 May 2004 02:34:26 GMT, "Michael D. Borghardt"
<mi*****@borghardtConsulting.net> wrote:
Hi try www.boost.org.


I've heard some very good things about this library. Actually, I have
some C++ work ahead of me, and this post reminded me about Boost. I
look forward to using it.

-----
Robert C. Martin (Uncle Bob)
Object Mentor Inc.
unclebob @ objectmentor . com
800-338-6716

"The aim of science is not to open the door to infinite wisdom,
but to set a limit to infinite error."
-- Bertolt Brecht, Life of Galileo
Jul 22 '05 #6
On Wed, 26 May 2004 22:57:52 -0400, Universe
<un******@tAkEcovadOuT.net> wrote:

"Welcome to Boost.org!


What was all that? An advertisement?

--
Al Balmer
Balmer Consulting
re************************@att.net
Jul 22 '05 #7

"Michael D. Borghardt" <mi*****@borghardtConsulting.net> wrote
Hi try www.boost.org.

I believe they have a working library.

The library resides currently at:
http://www.rrsd.com/boost/index.htm

It covers very wide range of serialization options
and was ported on number of platforms (BCB port is underway).

/Pavel

Jul 22 '05 #8
Universe wrote:
"Michael D. Borghardt" <mi*****@borghardtConsulting.net> wrote:

Hi try www.boost.org.

I believe they have a working library.

*1* example of the EXTENSIVE REUSE that many of the XP naysayers are
either ignorant of, pathologically can't accept because it conflicts
with their nickel and dime, baby step test driven mythological safe
zone, and or opportunistically deny for $$$ and fame, "I'm the
alternative" reasons.


[snip stuff]

Lots of words but few links. Can you be so kind as to point out the
serialization library? I can't find it at
<http://www.boost.org/libs/libraries.htm>

-Peter
Jul 22 '05 #9
Peter Ammon wrote:
Universe wrote:
"Michael D. Borghardt" <mi*****@borghardtConsulting.net> wrote:

Hi try www.boost.org.

I believe they have a working library.

*1* example of the EXTENSIVE REUSE that many of the XP naysayers are
either ignorant of, pathologically can't accept because it conflicts
with their nickel and dime, baby step test driven mythological safe
zone, and or opportunistically deny for $$$ and fame, "I'm the
alternative" reasons.

[snip stuff]

Lots of words but few links. Can you be so kind as to point out the
serialization library? I can't find it at
<http://www.boost.org/libs/libraries.htm>

-Peter


Never mind, someone else pointed it out. It wasn't on the libraries
page because it hasn't been accepted into Boost yet.
Jul 22 '05 #10
Hi.

Sorry about that I read the boost development newgroup at news server
news://news.gmane.org

the group is gmane.comp.lib.boost

"Peter Ammon" <pe*********@rocketmail.com> wrote in message
news:c9**********@news.apple.com...
Universe wrote:
"Michael D. Borghardt" <mi*****@borghardtConsulting.net> wrote:

Hi try www.boost.org.

I believe they have a working library.

*1* example of the EXTENSIVE REUSE that many of the XP naysayers are
either ignorant of, pathologically can't accept because it conflicts
with their nickel and dime, baby step test driven mythological safe
zone, and or opportunistically deny for $$$ and fame, "I'm the
alternative" reasons.


[snip stuff]

Lots of words but few links. Can you be so kind as to point out the
serialization library? I can't find it at
<http://www.boost.org/libs/libraries.htm>

-Peter


Jul 22 '05 #11

"Peter Ammon" <pe*********@rocketmail.com> wrote:
Can you be so kind as to point out the
serialization library? I can't find it at
<http://www.boost.org/libs/libraries.htm>


Never mind, someone else pointed it out. It wasn't on the libraries
page because it hasn't been accepted into Boost yet.

It has been accepted into Boost recently. It may appear
in release 1.32 or later.

Current version on rrsd.com site is stable.

/Pavel
Jul 22 '05 #12
You should checkout the Microsoft Foundation Classes (MFC) implementation
of object serialization/deserialization.

It seems to be well done and works reliably.

Sandeep
--
http://www.EventHelix.com/EventStudio
EventStudio 2.0 - System Architecture Design CASE Tool
Jul 22 '05 #13

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

Similar topics

2
by: Snowman | last post by:
Suppose I have a RootObject which holds a collection of other objects. The other objects have a property (Parent) which refers back to the "parent" collection (b.t.w. my collection is based on...
7
by: schoenfeld1 | last post by:
I've implemented IPC between two applications using named pipes and binary serialization, but have noticed that the binary formatter is rather slow. It seems that the binary formatter reflects...
3
by: umbertoeklat | last post by:
as a proof of concept, am trying create a web app w/ an XML file as a temp DB What is the fastest way to do serialization/deserialization? or maybe the better question would be how to...
8
by: ashoksrini | last post by:
Hi All, I have the below requirement and would like to get some feeback from the group on the best way to implement: 1. I have WSDL defined exposing few web services. 2. We dont have a...
5
by: Hans-Jürgen Philippi | last post by:
Hi Group, I've defined a class with an 'ID' property, which is a GUID that is created at the time of the very first object instance creation. This member is not included when I serialize an...
11
by: William | last post by:
I'm looking for an example that would show how to serialize a c++ object at it's simplest w/o using any other api's. I have a class that I want to serialize and then pass to my obj-c class so I can...
6
by: abcd | last post by:
I have 13 yrs experience working from Visual Studio 1.x today VS 2005 (both VB and C++) Most of the time I have worked in N-tier applications, Web applications, Windows applications....My...
0
weaknessforcats
by: weaknessforcats | last post by:
Design Patterns: Visitor Introduction Polymorphism requires a class hierarchy where the interface to the hierarchy is in the base class. Virtual functions allow derived classes to override base...
4
by: Anonymous | last post by:
I am looking for design patterns implemented in C++ for the following purposes: 1). Study and learn from the code 2). Avoid reinventing the wheel Searches on google are annoyingly turning up...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.