'\" t .\" Title: typemaker2 .\" Author: Micha Lenk .\" Generator: Asciidoctor 2.0.20 .\" Date: 2023-09-17 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "TYPEMAKER2" "1" "2023-09-17" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" typemaker2 \- creates source and header files for the given XML file .SH "SYNOPSIS" .sp \fItypemaker2\fP [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" .sp \-D PARAM, \-\-api=PARAM .RS 4 API declaration prefix (like GWENHYWFAR_API) .RE .sp \-\-public=PARAM .RS 4 Name of the public header file to create .RE .sp \-\-library=PARAM .RS 4 Name of the library header file to create .RE .sp \-\-protected=PARAM .RS 4 Name of the protected header file to create .RE .sp \-\-private=PARAM .RS 4 Name of the private header file to create .RE .sp \-\-code=PARAM .RS 4 Name of the code file to create .RE .sp \-\-destfolder=PARAM .RS 4 Destination folder .RE .sp \-\-lang=PARAM .RS 4 Language for which to create the headers and code .RE .sp \-I PARAM, \-\-include=PARAM .RS 4 Add folder to include for type lookup .RE .sp \-d, \-\-defs\-only .RS 4 Only write def files (*.tm2) .RE .sp \-\-no\-defs .RS 4 Dont write def files (*.tm2) .RE .sp \-h, \-\-help .RS 4 Show this help screen .RE .SH "COMMANDS" .sp 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ß. 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 Asciidoctor into a manpage. .SH "AUTHOR" .sp Micha Lenk