473,326 Members | 2,104 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,326 software developers and data experts.

Structure Definition Tool

Is anyone aware of a tool for C++ to define system-independent
structure definition?

I am thinking of something that would allow one to define a physical
structure from which is would generate a class with appropriate set/
get members. The purpose would be to handle all the implementation
dependent issues with alignment, type size, bit field and union
implementation while at the same time reducing the error-prone coding
constructs required for such programming.

I am familar with SDL from the olde Digital Equipment. That handled
structures in a language-independent (not system) manner.

May 2 '07 #1
5 1579
On May 2, 1:29 pm, faceman28...@yahoo.com wrote:
Is anyone aware of a tool for C++ to define system-independent
structure definition?

I am thinking of something that would allow one to define a physical
structure from which is would generate a class with appropriate set/
get members. The purpose would be to handle all the implementation
dependent issues with alignment, type size, bit field and union
implementation while at the same time reducing the error-prone coding
constructs required for such programming.

I am familar with SDL from the olde Digital Equipment. That handled
structures in a language-independent (not system) manner.
CORBA? RPC? Off-topic? In answer to the last: quite likely (http://
http://www.parashift.com/c++-faq-lit....html#faq-5.9).

Cheers! --M

May 2 '07 #2
Hi,

fa**********@yahoo.com writes:
Is anyone aware of a tool for C++ to define system-independent
structure definition?
I am not sure what you mean by "system-independent". Platform-
independent?

I am thinking of something that would allow one to define a physical
structure from which is would generate a class with appropriate set/
get members. The purpose would be to handle all the implementation
dependent issues with alignment, type size, bit field and union
implementation while at the same time reducing the error-prone coding
constructs required for such programming.
CodeSynthesis XSD[1] can do more of less what you want. You would define
your structure in XML Schema and the compiler will generate classes with
constructors, accessors, modifiers, etc. Normally it would also generate
XML serialization/deserialization code but this can be suppressed with
an option.

XSD is open-source (GPL + proprietary license) and cross-platform.
[1] http://www.codesynthesis.com/products/xsd/
hth,
-boris
May 2 '07 #3
On May 2, 3:05 pm, Boris Kolpackov <b...@codesynthesis.comwrote:
XSD is open-source (GPL + proprietary license) and cross-platform.

[1]http://www.codesynthesis.com/products/xsd/
This is along the lines but in a different area than I was thinking
of. The end result is what I was thinking of but the source data is
different. I deal primarily with binary buffers rather than XML. This
could be for messaging or standard file formats, such as JPEG.

I was wondering of someone had solved the C++ programming problem of
dealing with binary data.

May 2 '07 #4
fa**********@yahoo.com wrote in news:1178133367.594968.94920
@u30g2000hsc.googlegroups.com:
On May 2, 3:05 pm, Boris Kolpackov <b...@codesynthesis.comwrote:
>XSD is open-source (GPL + proprietary license) and cross-platform.

[1]http://www.codesynthesis.com/products/xsd/

This is along the lines but in a different area than I was thinking
of. The end result is what I was thinking of but the source data is
different. I deal primarily with binary buffers rather than XML. This
could be for messaging or standard file formats, such as JPEG.

I was wondering of someone had solved the C++ programming problem of
dealing with binary data.
What problem? I've been dealing with binary data for many years in C++.
May 2 '07 #5
Hi,

fa**********@yahoo.com writes:
XSD is open-source (GPL + proprietary license) and cross-platform.

[1]http://www.codesynthesis.com/products/xsd/

This is along the lines but in a different area than I was thinking
of. The end result is what I was thinking of but the source data is
different. I deal primarily with binary buffers rather than XML. This
could be for messaging or standard file formats, such as JPEG.

I was wondering of someone had solved the C++ programming problem of
dealing with binary data.
XSD can generate binary insertion operators and extraction constructors.
The mechanism is extensible in the sense that you can define your own
stream types. ACE CDR streams (CDR is a binary data representation format
used in CORBA) are supported out of the box. You will still need to define
your object model in XML Schema which is XML-centric, though.

hth,
-boris

May 3 '07 #6

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

Similar topics

13
by: Amarendra | last post by:
Folks, This structure padding issue is bothering me now, could not locate a satisfactory answer on clc, so here it goes... I have a structure, given below: typedef struct { int flag; char...
7
by: Randy Yates | last post by:
Hi, I work in an embedded environment in which we often use a mix of C and assembly code. Thus a recurring requirement is to be able to take a C header file with structure definitions as input...
2
by: Madhav | last post by:
Hi all, I was going through a piece of code which had a very interesting format. There were two files: one was a .h file, and the other was a .c file. The .c file had a structure defined in it...
0
by: Pravin | last post by:
I have following architecture. c# code --> managed c++ code (wrapper) -> c wrapper code to third party tool --> third party tool written in c. c# code sends some data and a delegate to c++...
5
by: A.M | last post by:
Hi, Using c# language, I am developing a web service that needs to return mutiple values. I am, therefore, returning a class contains mutiple values to be returned. So the web method's...
8
by: SP | last post by:
The following code crashes after I add the two nested FOR loops at the end, I am starting to learn about pointers and would like to understand what I'm doing wrong. I think the problem is the way...
20
by: dspfun | last post by:
I've come a across a program that declares the following data structure. typedef struct node { struct node *next; } node; It looks like a recursive data structure but I'm having trouble...
11
by: Lance | last post by:
Hi all, I've got a some structures defined as ////// <StructLayout(LayoutKind.Sequential)Public Structure GM_LayerInfo_t Public mDescription As String Public mNativeRect As GM_Rectangle_t...
3
by: Karsten P. Hoffmann | last post by:
Hello NG, I'm quite new to using DB-2 and I wonder, if there's a tool to display/print the table structure graphically. I seach the printed docs but I couldn't find anything. Background: I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.