wxCOMMON (including wxSIO / wxGUID)

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

wxCOMMON (including wxSIO / wxGUID)

Post by Jorg » Wed Mar 30, 2005 7:50 pm

Hi Guys,

I managed to get my old wxSIO class compiling again. With CMAKE you can create makefiles for it, fairly easy I must say.

Limitations:
- If you want to use uuid's then wxGUID library needs to be linked under Linux. There is no support for that yet.
- You can use the GUID under windows when ENABLE_GUID is set to ON. So if you don't need wxGUID set ENABLE_GUID (default) and MAKE_GUIDSAMPLE to OFF
- Doxygen documentation is scarce (I was working on that)
- Uses standard FILE I/O instead of wxStreamBuffer (will implement that)
- No UNICODE check yet. Must not be too hard though

How to use:
- Simply run CCMAKE (linux) in a created build dir like home/my/src/common/build/ccmake ../
- Under windows use CMakeSetup.exe
- Build with make or under windows VS6 or VS7 projects
- The samples dir contains a test app with some basic stuff
- It is contrib formatted you can simply add it to the contrib dir

Main features:
- Platform independent binary output (Win / Linux)
- Type safe serialisation (checks wether an int / string etc is actually read back)
- Uses version ID for backwards compatibility checking in serialisation
- Uses header write / readback for file identification
- Serializes bool / int / wxString / double / quad / char / wxGUID
- Reports error when file I/O failed (telling what was expected and what was read)
- Supports markers so data can be skipped by searching for that marker (upon read back markers are skipped, so they are transparent for the app)

Download:

- http://www.xs4all.nl/~jorgb/download/common.tar.gz

When there is feedback please use this thread, I will develop this class further, but my time is divided. Any feedback or help / patches are also welcome :-)

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Re: wxCOMMON (including wxSIO / wxGUID)

Post by ABX » Wed Mar 30, 2005 7:57 pm

Jorg wrote:I managed to get my old wxSIO class compiling again. With CMAKE you can create makefiles for it, fairly easy I must say.
It was good occasion to try bakefiles ... I hope you will find time for it :-)

ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Thu Mar 31, 2005 5:52 am

Hi ABX,

That is still in the queue :-) The problem is that I don't have much time on my hands right now and my time is fragmented. I cannot have the time to dig into it. But I will look into it eventually :-) It is still in my Inbox to check out.

Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Post Reply