.. include:: ../includes/aliases.rst .. _fastddsgen_usage: Usage ===== This section explains the usage of *Fast DDS-Gen* tool and briefly describes the generated files. Running the *Fast DDS-Gen* Java application ---------------------------------------------- First, the steps outlined in :ref:`Linux installation of Fast DDS-Gen ` or :ref:`Window installation of Fast DDS-Gen ` must be accomplished for the installation of *Fast DDS-Gen*. According to this section, an executable file for Linux and Windows that runs the Java *Fast DDS-Gen* application is available in the ``scripts`` folder. If the ``scripts`` folder path is added to the ``PATH`` environment variable, *Fast DDS-Gen* can be executed running the following commands: - Linux: .. code-block:: bash $ fastddsgen - Windows: .. code-block:: bash > fastddsgen.bat .. note:: In case the PATH has not been modified, these scripts can be found in the ``/scripts`` directory. .. _fastddsgen_supported_options: Supported options ------------------- The expected argument list of the application is: .. code-block:: bash fastddsgen [] [ ...] Where the option choices are: .. list-table:: :header-rows: 1 :align: left * - Option - Description * - -cdr - Sets the Fast CDR version used to generate types source code. |br| Values: |br| - v1. Generate source code for Fast CDR v1. |br| - v2 (default). Generate source code for Fast CDR v2. |br| - both. Generate source code for both Fast CDR v1 and Fast CDR v2. * - -cs - Enables Case Sensitivity * - -d - Sets the output directory where the generated files are created. * - -flat-output-dir - Ignore input files relative paths and place all generated files in the specified output directory. * - -default_extensibility |br| -de - Sets the default extensibility for types without the @extensibility annotation. |br| Values: |br| - final |br| - appendable (default) |br| - mutable * - -example - Generates an example and a solution to compile the generated source code for a specific |br| platform. The help command shows the supported platforms. * - -extrastg