Main > Programming > Libraries >

CSer 0.0.1

CSer 0.0.1

Sponsored Links

CSer 0.0.1 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.11 MB
Platform: Any Platform
License: LGPL (GNU Lesser General Public License)
Price:
Downloads: 1165
Date added: 2006-08-16
Publisher: Jeff Freedman

CSer 0.0.1 description

CSer is a library for C++ serialization, also called persistence. This isnt quite a simple as you might think, since one object may be pointed to by multiple other objects.

How does it work?
Writing out integers and character strings is fairly straightforward. The trick is dealing with objects, and pointers to them. Serialization of these involves assigning a unique ID # to each object as it is written, and in keeping a lookup table that maps each object to its ID.

That way, when an object is encountered a second time (because something else is pointing to it), only its ID is written. And when the network is read back in, CSer knows to only recreate the object once, and to use its pointer when its ID is encountered thereafter.

How do I use it?
Sorry for the lack of documentation. For a quick start, see the test1.cc example included in the source. Here is a brief list of the steps you need to take (also listed in the README):

1. #include "CSer.h"
2. Derive from "Serializable".
3. Add a "CSER_DECLARE(Myclass);" in the public part of class MyClass.
4. Add a "CSER_REGISTER(Myclass);" in the .cc file for your class.
5. Add methods "void write(CSer_out&) and void read(CSer_in&) to your class.
NOTE: If an object instance is part of another object
(composition), then you must write/read the object itself before
writing/reading any pointers to it. See ClassC in test1.cc as
an example.
6. Your class must also have a constructor taking no arguments.

CSer 0.0.1 Screenshot

Advertisements

CSer 0.0.1 Keywords

Bookmark CSer 0.0.1

Hyperlink code:
Link for forum:

CSer 0.0.1 Copyright

WareSeeker periodically updates pricing and software information of CSer 0.0.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of CSer 0.0.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
X11Blocks package is an Objective-C Block oriented X Window System Toolkit. Free Download
TrouSerS is a Trusted Computing Group Software Stack (TCG TSS) implementation. Free Download
Pvolley is an arcade volleyball game Free Download
kingate library is an interface to CGI, conveniently enwrapped into c++ classes. Free Download
HyperMammut is an experimental program for processing images/sounds. Free Download
pythondr project is a simple python library for parsing the TV-channel info at http://dr.dk. Free Download
SpoonRPC is a python module that provides a distributed communication system for interprocess communication. Free Download
Arcangel is a Jack effect and LADSPA plugin for arctan distortion. Free Download