Code Synthesis is a systems software development company with a focus on automated object persistence, domain-specific languages (DSL) and their mappings, compiler design, code generation, and source-to-source translation.
Questions tagged [codesynthesis]
44 questions
6
votes
2 answers
Code Synthesis - C++/Tree sub node serialization
I'm using this great tool (http://www.codesynthesis.com/products/xsd/c++/tree/) to convert xsd into c++ code.
I'm trying to obtain the xml string from a sub node, but the only thing that i can get is the all xml, like this:
the all xml:
![](../../users/profiles/15422.webp)
Nuno
- 1,860
- 2
- 21
- 31
5
votes
3 answers
C++ Serialization Clean XML Similar to XSTREAM
I need to write a linux c++ app which saves it settings in XML format (for easy hand editing) and also communicates with existing apps through XML messages over sockets and HTTP. Problem is that I haven't been able to find any intelligent libs to…
![](../../users/profiles/83741.webp)
Alexander Torstling
- 16,682
- 6
- 55
- 70
4
votes
3 answers
sample XSD fails with "error: no declaration found for element X"
In spite of being a total newbie in the xml parsing arena, I was able to xsd to create valid c++ and compile and link successfully, but the compiler optimized(?) away the instantiation. So, starting at step one, I try the hello world xml example at…
![](../../users/profiles/198536.webp)
wallyk
- 53,902
- 14
- 79
- 135
3
votes
3 answers
XSD : How to make a polymorphic "list"?
I'm trying to build an element type that keep a list of change element type that is the base type of several other child type. I got this code :
List of…
![](../../users/profiles/2368.webp)
Klaim
- 60,771
- 31
- 121
- 186
3
votes
1 answer
How do I use assertions in with Xerces C++ 3.x (CodeSynthesis XSD)?
I have just read through this tutorial on XSD 1.1 assertions:
http://www.ibm.com/developerworks/library/x-xml11pt2/
I copied one of their examples and created this xsd file:
…
![](../../users/profiles/1613983.webp)
quant
- 17,534
- 24
- 93
- 186
3
votes
2 answers
XSD to C++ class using xsd cxx-tree parser. Methods to open a xml from a file.
I'm usign the xsd 3.3.0 Compiler in order to parse a xsd (xml best friend) file to C++ class. (see last weblink)
The comand name is
xsd cxx-tree (options) file.xsd
(+ info…
![](../../users/profiles/3355390.webp)
kahke
- 41
- 1
- 6
2
votes
1 answer
XML data binding for C++ like JAXB for java
I am writing this question as a complete **naive** in this field of "Use of data binding and parsing in c++". So, please bear with me . :)
You may find this question as duplicate of THIS
After doing a bit of googling I found that what C++ has…
![](../../users/profiles/434233.webp)
Arunmu
- 6,662
- 1
- 20
- 43
2
votes
1 answer
ODB C++ - Unknown database schema error
In my Visual Studio solution, I have two different projects of which one is built as a static libraryand the other one as the executable. The ODB related code like creating the database and all are in the library. I linked this library to my…
![](../../users/profiles/3456472.webp)
Jackzz
- 1,257
- 3
- 17
- 44
2
votes
0 answers
codesynthesis XSD generate C struct instead of C++ class
Is it possible to configure Code Synthesis XSD to generate C-structs instead of C++ classes? The main issue is where multiple occurrences of an element is implemented as a std::list. The issue I've got is I need to interoperate with Ada and binding…
![](../../users/profiles/6625638.webp)
Matt Banham
- 23
- 2
2
votes
1 answer
Getting C++ object from xsd:extension
I am using the xsd to c++ compiler from codesynthesis. I am compiling these xsd snippets:
…
![](../../users/profiles/4581640.webp)
Woodfighter
- 45
- 3
2
votes
1 answer
Generate nCk combinations of numbers from 0 to n-1
I am working in hardware domain. I need to generate all nCk combinations of numbers from 0 to n-1. It is easy to do it using software but this is to be done using HDL - VHDL. I cannot spend much on computational complexity and need to generate at…
![](../../users/profiles/2362482.webp)
Maximus
- 123
- 1
- 12
2
votes
1 answer
Memory addressing method to allocate memory (static-hardware) for values corresponding to 'nCk' combination of values from 0 to n-1
I need to find a memory addressing method to allocate memory (static-hardware) for values corresponding to 'nCk' combination of values from 0 to n-1.
Assuming 'n' as 6 and 'k' as 4, I need to store values (8 or 16 bit) corresponding to…
![](../../users/profiles/2362482.webp)
Maximus
- 123
- 1
- 12
2
votes
0 answers
translate an XML file at compile time into the dataobject model generated by CodeSynthesis XSD
With the help of CodeSynthesis XSD a C++ dataobject model can be generated from an XML Schema (XSD). A valid XML file can then at runtime be read into this dataobject model with the help of the generated XML parsing functions.
I wonder if it is…
![](../../users/profiles/757777.webp)
Erik Sjölund
- 9,109
- 7
- 34
- 60
2
votes
1 answer
Code Synthesis XSD parsing/data binding xml string instead of xml file
I have seen tutorials all over the place for explaining how to get Code Synthesis xsd to work if you provide the xml in a file on your system, but I have not been able to find anything about providing the xml as a string.
I am receiving the xml from…
![](../../users/profiles/820341.webp)
PJB0515
- 23
- 5
1
vote
2 answers
Canonical relation operators (==,<,...)
Consider a struct (as in: stupid aggergation of several members) with members that all implement a certain relation R (e.g. <):
struct X {
A a;
B b;
};
For most operators there exists a canonical definition for X R X. For instance:
bool…
![](../../users/profiles/430766.webp)
bitmask
- 25,740
- 12
- 80
- 142