'\" t .\" Title: typemaker2 .\" Author: Micha Lenk .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2016-01-30 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "TYPEMAKER2" "1" "2016\-01\-30" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" typemaker2 \- creates source and header files for the given XML file .SH "SYNOPSIS" .sp \fItypemaker2\fR [global options] [local options] .SH "DESCRIPTION" .sp This tool generates source and header files for simple data containers from XML files\&. It creates fromDb and toDb functions for structs and getters and setters for any member\&. .sp This makes it easier to maintain data containers with many members (as in AB_TRANSACTION)\&. .sp A member you add to the XML file will immediately be loaded, saved, destroyed and copied with the rest of the struct upon request (e\&.g\&. _fromDb() will load all members from a GWEN_DB)\&. .sp The current version creates a C file and headers for it\&. .sp It also creates appropriate API documentation if provided with the source XML file\&. .SH "GLOBAL OPTIONS" .PP \-D PARAM, \-\-api=PARAM .RS 4 API declaration prefix (like GWENHYWFAR_API) .RE .PP \-\-public=PARAM .RS 4 Name of the public header file to create .RE .PP \-\-library=PARAM .RS 4 Name of the library header file to create .RE .PP \-\-protected=PARAM .RS 4 Name of the protected header file to create .RE .PP \-\-private=PARAM .RS 4 Name of the private header file to create .RE .PP \-\-code=PARAM .RS 4 Name of the code file to create .RE .PP \-\-destfolder=PARAM .RS 4 Destination folder .RE .PP \-\-lang=PARAM .RS 4 Language for which to create the headers and code .RE .PP \-I PARAM, \-\-include=PARAM .RS 4 Add folder to include for type lookup .RE .PP \-d, \-\-defs\-only .RS 4 Only write def files (*\&.tm2) .RE .PP \-h, \-\-help .RS 4 Show this help screen .RE .SH "COMMANDS" .PP build .RS 4 This command creates source and header files for the given file .RE .SH "BUGS" .sp No bugs known at the time of writing this manual page\&. .SH "COPYING" .sp Copyright (C) Martin Preu\(ss\&. Free use of this software is granted under the terms of the GNU Lesser General Public License (LGPL)\&. .sp The manpage was composed by Micha Lenk and converted by the nifty tool AsciiDoc into a manpage\&. .SH "AUTHOR" .PP \fBMicha Lenk\fR <\&micha@debian\&.org\&> .RS 4 Author. .RE