Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The general usage of SensIDL to define a simple data structure and generate executable code from it are demonstrated. Please refer to the following screencast as a starting point. This screencast video demonstrates the general usage of SensIDL to define a simple data structure and generate executable code from it. The video can also be found on youtube: Youtube link
Alternatively the following sections will describe the general usage of sensidl.
Specific SensIDL-files can be created in existing Java-projects. It can be done by creating a new file. Now the file-name have to be set and concatenate with the file-extension .sidl. After this is done eclipse will ask if the user want to add the xtext nature. This can be confirmed.
For this example an existing SensIDL-example was used which is available at the SensIDL-Help-Content-site (Help->Help Contents->SensIDL Documentation->Getting Started->Simple Example).
After the file is saved the code can be generated. To do this you can right-click directly in the canvas or the SensIDL file. In the upcoming context menu exist the entry "SensIDL - Generate Code". If the entry is clicked the SensIDL tooling wizard will open.
In the wizard are a couple of options which can be edited. For instance the output folder can be chosen where the code-files will be generated. Additionally there is also a dropdown-menu which enables the user to generate the code in the specified programming language.
After the configurations are set the code can be generated by click on the button "Generate Code". In the specified output folder are now all code files generated.