Overview

BARS provides a lightweight framework for creating your own C++ applications.

Here's what it can do:

  • Applications are automatically linked with BARS and ROOT, so you can use both libraries out of the box.
  • The application template takes care of parsing common arguments and provides a simple way to add new ones.
  • Each application has a configuration file to store the defaults.
  • Application help is generated automatically.

Running your app

When you execute make install, your app will be copied to $HOME/local/bin and its configuration file will be installed to $HOME/.config/bars/default-configs/.

If have followed the installation instructions to the letter, you should be able to execute my-bars-app in your terminal.

Common options

All BARS apps have options --config and --help.

  • --help will display the list of app options and usage instructions.
  • --config allows you to set a configuration file for the app (see next section).

Configuration files

Each BARS app can use a configuration file that specifies the input variables. You can provide the path to this file with the --config option mentioned above. If you have not used --config, the application will use a default configuration file from $HOME/.config/bars/default-configs ( or $BARSSYS/resources if the configuration file was not found in the default-configs).

If you have provided an argument with both a config entry and an option, the preference goes to the latter.