dia2code(1)

dia2code1

Generate code from dia files

Usage

dia2code [{-t ada | c | cpp | cs | java | php | php5 | python | ruby | shp | sql}] [-d dir] [-nc] [-c] [-cl classlist] [-v] diagramfile [-h] [--help]

Overview

dia2code generates code from a Dia file containing a UML diagram. Output code can be: Ada, C, C++, C#, Java, PHP, PHP5, Python, Ruby, shapefiles and SQL.

Options

-h --help

Print help text and exit.

-t ada|c|cpp|cs|java|php|php5|python|ruby|shp|sql

Selects the output language, default is C++.

-d dir

Output generated files to <dir>, default is "."

-nc

Do not overwrite files that already exist.

-cl classlist

Generate code only for the classes specified in the comma-separated <classlist>.
E.g: Base,Derived.

-v

Invert the class list selection. When used without -cl prevents any file from
being created.

-l licensefile

Prepend the specified license to every source file generated.

diagramfile

The Dia file that holds the diagram to be read.

Thanks

Thanks to Collin Starkweather, Richard Torkar and Slush Gore for the extra help.

Also see also

The Dia homepage: <http://live.gnome.org/Dia>
The dia2code homepage: <http://dia2code.sourceforge.net>

Releases

12 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0–4.0
  2. 5.0–13

Author

Written by Javier O'Hara <[email protected]> with contributions from Ruben Lopez <[email protected]> (C code generation), Chris McGee <[email protected]> (Dependencies, Associations, C++ Templates,
SQL), Takashi Okamoto <[email protected]> (License inclusion mechanism), Thomas Preymesser <[email protected]> (Ada code generation), Jérôme Slangen <[email protected]> (Wildcard class list mechanism), Takaaki Tateishi <> (Dynamic Shared Objects for dynamic code generator modules), Martin Vidner <[email protected]> (Porting to libxml2).

Reporting bugs

Report bugs to
<http://sourceforge.net/bugs/?func=addbug&group_id=15307>.

From dia2code 0.8.3-4.3 in Debian 13 (Trixie). Parsed by carta from the page's man source.