Mappings template

## Contents

- Your rights

- Introduction

- Component model

- Component description file

- GenoM IDL mappings

- Running GenoM

- Tutorials

- Templates

  - Skeleton

  - Mappings

  - Interactive

  - Creating Templates

    - `template` command

    - `engine` command

    - `dotgen` command

    - `language` command

    - `$type` command

    - `$component` command

    - `$port` command

    - `$task` command

    - `$service` command

    - `$codel` command

    - `$param` command

## Mappings template

This template generates a source file containing the native type definitions for all IDL types defined in the .gen input file. By default, types are generated for the codels language (defined in the .gen file) for the first available component. This can be changed with the -l option. The generated mappings are output on stdout.

Additionnaly, a dependency file suitable for inclusion in a `Makefile` can be generated. This is controlled by the `-MD`, `-MF` and `-MT` options. These options are documented herafter, and follow the same syntax as the same options of `gcc`.

### Example

    user@host:~$ genom3 mappings demo.gen > demo_c_types.h
    user@host:~$ genom3 mappings -l c++ demo.gen > demo_cxx_types.h

### Supported options

-l
--language=lang

  Generate mappings for language 'lang'

--signature

  Generate codel signatures in addition to types mappings

-MD

  Generate dependency information (in out.d)

-MF='file'

  Generate dependency in 'file' instead of out.d

-MT='target'

  Change the target of the dependency rules

-h
--help

  Print usage summary (this text)