Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
General Structure

HelloWorld

Here is a diagram representing the structure of our Hello World:

In this application, we have a module called SayHello containing three files:

  • a header (.h),
  • a source file (.cc),
  • a file containing the dataset options (.axl).

And outside the module, we have four files:

  • a main.cc file allowing us to run our application,
  • a CMakeLists.txt file allowing us to compile our application,
  • a .config file allowing us to configure our application,
  • a .arc file containing a dataset for our application.

All these elements constitute our HelloWorld application.

Note
It is possible to generate an application template using the arcane-template program. To generate a template for our HelloWorld using arcane-template, here is the command:
./arcane_templates generate-application -code-name HelloWorld --module-name SayHello --output-directory ~/HelloWorld
This program can be found in the bin folder of the Arcane installation directory: arcane_install/bin/.

In the following section, we will look at the SayHello module.