Overview
The EM Resource Generator can be found in the directory {EM}/resources/tools/resource_generator. Use it from the command line.
Basic Usage
Usually you just have to tell the resource generator which input file it should process. The command looks something like this:
em_resource_generator resources.xmlThis will generate the classes resources.e and shared_resources.e.
Advanced Usage
There are several options you can specify:
- -o, --output
Usually, the generated class will have the same name as the input XML file. With this option, you can specify another name. Example:
The commandem_resource_generator resources.xml -o example_resources
will generate the classes "example_resources.e" and "shared_example_resources.e" with the singleton "example_resources". - --no-singleton
The class with the singleton (usually shared_resources.e) won't be generated.
- -h, --help
Shows a help message.t he same message is displayed when the command is used in an invalid way.