I work on an EMF project. One of the design decisions was not to touch the generated code and not to check it in. Instead, whenever something needs to be changed, a sub-class is created that contains the changes. The framework is flexible enough to deal with this. However, I experience some work overhead.
The design decision was made o...
I'm not sure what exactly the right term is, kind of like ORM using XML as the data store. Are there any decent tools which will autogenerate C++ classes (including data and serialization/deserialization) based on an XML schema? Or will create XML-sync code and schema based on a C++ class definition?
TinyXML is great but it's so old-sch...
Has anyone been able to successfully generate C# entity classes from XACML schema files? I am getting "Cannot use wildcards at the top level of a schema." I think this has something to do with xs:any elements. I have tried change the processContents="skip" (from "lax") but to no avail. I get this using WSCF Blue as well as xsd.exe.
...
I am working with EA (Ver 8.0858). I am trying to generate code based on two class diagrams. I would like it to output both to the same file since they are related and small. I can only get it to output code from one of the diagrams but not both. I have created the file manually and reverse engineered it back into EA as class diagrams. E...
So thanks to the Visualization and Modeling Feature Pack , I can build a uml model diagram and generate a bunch of classes.
But what now? Presumably, my developers will add code to those classes. Useful code, valuable code, and as the templates themselves indicate:
// Changes to this file will be lost if the code is regenerat...
I'm considering the approaches to write
class MyClass {
@Get
@Set
protected int aValue;
}
and then, automatically, generate get_aValue() and set_AValue() methods for the class.
I've found these possibilities:
1a) At compile time. Use an annotation processor for separately processing MyClass.java, then write a new MyClass.j...
See http://stackoverflow.com/questions/3243285/how-to-escape-quote-pph-strings-generated-by-delphi
I am just interested to hear if anyone has used Delphi (or possibly BCB) as a code generator for PHP ...
(or thoughts about code generation from one language to another in general)
Hmm, any good books about code generation ?
...
Defining simple getters and setters is easy using Asm (and fortunately it is even explained in their FAQ). But one thing that is not mentioned, and for which I have been unable to find documentation, is how to implement these using generic type information.
I am actually able to determine generic type information itself quite easily (si...
I have a request to create a web application on a a public web site that would display data from about 5 tables in mySQL. I would like to display parent/child relationships.
Is there a product that I could use to generate code to do this? I was thinking PHP would be good to use.
...
I have a project where a client can import an excel file, csv, or tab-delimited file. This file is loaded into a datatable which I convert into a SQLite database table. I'd really prefer to work with strongly typed objects vs datatables so is there a way to easily convert the database table created into a strongly typed class using ref...
What I'm looking for would allow me to take something like this:
index.html.template:
<html>
<body>
<# include ("body.html.template") #>
</body>
</html>
body.html.template:
Hello World! <# include("text.txt") #>
text.txt:
4
And turn it into this:
<html>
<body>
Hello World! 4
</body>
</html>
While the example is HTML, I would...
I'm having a time deciding on a direction to go with a class lib I'm building.
I have a batch of industry standard XSD's, from which I'm generating .net objects. I;ve used all of XSD.exe, LinqtoXsd, xsd2code, and even OxmLibrary with varying results. But in the end, I am able to generate decent .net classes which can be serialized/dese...
I have made an extremely simple project in IntelliJ's IDEA, basically just a form with a JToolBar containing a JButton, and when I try to launch it, I get an NPE in form.$$$setupUI$$$ - but no such thing is reflected in the actual form.java, so I have no way to debug it or track down the bug.
Is there a way to make IDEA show (and maybe ...
i just generated the .cs file using codeDom.will u plz tel how to execute that .cs file.
...
If using Firebug, we can click on the HTML tab, and click to expand each element to see the generated HTML code. Is there a way to expand it all or get a plain text file?
I just accidentally found out that there doesn't even need to be Firebug. We can just press CTRL-A (to select all) on the webpage, and then right click and choose "V...
I am writing a code generation tool that frequently will have lines like
StringBuilder sp = new Stringbuilder();
sp.AppendFormat(" public {0}TextColumn()\n", className);
sp.AppendLine(" {"
sp.AppendLine(" Column = new DataGridViewTextBoxColumn();");
sp.AppendFormat(" Column.DataPropertyName = \"{0}\";...
I would like to know if there is a way to modify the template that NetBeans uses to generate the code for JFrame while designing it, specificaly the order.
As you know NetBeans generates code for JFrame form as follows:
class declaration
constructor calling initComponents();
initComponents() method (folded & locked to editting)
ma...
I Have a select button in php code which Passes the Dynamic generated Row value and How do i do this jquery?
PHP code
<input type ="button" onclick="select(add,'<?php echo $_POST['somevale=ue']?>')"
Javascript
function select (fnname, val){
//Val changes every time
}
How do i acheive the same in Jquery in Putting the click e...
I'm learning hibernate and I am running into some issues. The book i'm reading is Harnessing Hibernate - Oreilly. They explain everything using ANT, but I'm not really in the moood for the hassle to write such a huge build.xml. So I'm trying to get it to work with IntelliJ.
I managed to make a mapping according to a DB table in my MySQL...
For a long time now I've been using pygccxml to parse and introspect my C++ source code: it helps me to do some clever code-generation during our build process.
Recently I've read a lot about the benefits of the LLVM stack, and especially the benefits that the LLVM Clang parser brings to C++ compilation. I am now wondering if there is ...