compiler [OPTIONS] -m MECHANISM -l LANGUAGE -o OUTPUT-DIRECTORY INPUT-FILE*
The Rosetta Stone compiler produces data-holder classes and (de)serialization code for MECHANISM for LANGUAGE from data definitions and mapping descriptions INPUT-FILE. Output is written to files which are placed in OUTPUT-DIRECTORY.
The usual commandline options are accepted. Specialized commandline options:
Write generated output files to DIRECTORY.
Generate (de)serialization code for MECHANISM.
Generate code for LANGUAGE.
Like in GNU make. Try to continue after encountering errors. Causes a summary of warnings and errors to be displayed after processing has finished.
$ rosetta-compiler -m bottle/data-holder \
-l C++ \
-o my-project/generated-code/ \
my-idls/my-type.proto
Generate a C++ data-holder class and serialization code for the bottle/data-holder mechanism from the description in my-idls/my-type.proto and output the generated code into the my-project/generated-code directory.
$ ls my-project/generated-code/
MyType.h MyType_Bottle.h