New Features
Enhanced Features
Revamped Features
O/R Mapping
Tips and Tricks
UML Diagrams
VP Suite

Instant Generator

In Visual Paradigm for UML and Smart Development Environment, there is a feature named Instant Generator for generating source from class model. Instant Generator supports a set of language such as C++ and Java. The below steps will describe the C++ source generation.

Supporting Language

The below languages are supported by Instant Generator.

  • Java
  • C#
  • VB.NET
  • PHP
  • ODL
  • IDL
  • C++
  • Delphi
  • Perl
  • XSD
  • Python
  • Objective-C

Classes and Relationships Modeling

Class model is required before generation. To provide class model, open an existing VP project or model a new one.
instantgenerator_overview.jpg

Instant Generator Dialog

Instant Generator has a primary user interface called Instant Generator Dialog. It providing almost all interface of Instant Generator such as configuration, preview and generation. On top menu, click Tools > Instant Generator > Instant Generator... to open Instant Generator Dialog.
instantgenerator_openinstantgeneratordialog_crop.jpg

General settings

As configuration is simplified, only three values are required to input even first time generation.

  1. Select Language to specify which language of source will generated for. In this example, C++ is selected.
    instantgenerator_instantgeneratordialog_selectlanguage_crop.jpg

  2. Choose class(es) or package(s) which will be included of the generation.
    instantgenerator_instantgeneratordialog_selectclasses_crop.jpg

  3. Select output path for placing generated source.
    instantgenerator_instantgeneratordialog_selectoutputpath_crop.jpg

Language specified options

For each language, specified options may provided for additional control. These options are organized into two kinds of options, Basic options and Advanced options.

Basic options

Those common change options are grouped in Basic options and allow to edit directly in Instant Generator Dialog.
instantgenerator_instantgeneratordialog_basicoptions_modified.jpg

Advanced options

Advanced options contains all options of the language including options in Basic options. To edit Advanced options, click Advanced Options in Instant Generator Dialog.
instantgenerator_instantgeneratordialog_openadvancedoptionsdialog_crop.jpg

instantgenerator_advancedoptionsdialog_crop.jpg

Preview or Generate

As different values of options will produce different generation result, Instant Generator provides preview of generation result before the actual generation.

  • Press Preview in Instant Generator Dialog to preview generation result.
    instantgenerator_instantgeneratordialog_preview_crop.jpg

    instantgenerator_previewdialog.jpg

  • Press Generate in Instant Generator Dialog to perform actual generation.
    instantgenerator_instantgeneratordialog_generate_crop.jpg

    • While the generation, the progress is displayed in Generator Output.
      instantgenerator_instantgeneratordialog_generatoroutput_crop.jpg

    • The generated sources are generated in output path.
      instantgenerator_result.jpg

      • Open output folder can simply perform by pressing Open output folder in Instant Generator Dialog.
        instantgenerator_instantgeneratordialog_openoutputfolder_crop.jpg

    • To close Instant Generator Dialog, simply press Close.
      instantgenerator_instantgeneratordialog_close_crop.jpg

Samples

Click on the link below to download:

Resources

 
 
Last modified: 2006/10/23 11:40
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory