.. _alpreferences: ALPreferences ============== .. toctree:: :hidden: :maxdepth: 1 alpreferences-api Overview | :ref:`API ` What it does ------------ ALPreferences allows access to xml preference files and provides convertion to and from ALValues. How it works ------------ A preference as an ALValue array is defined as follows: - **[0]**: Name of the preference - **[1]**: Description of the preference - **[2]**: The value of the preference (can contain other preferences if it is of type array) - **[3]**: (optional) The name of the data when inserted into memory A typical preference xml file looks like this: .. code-block:: xml On NAO, preferences are typically stored in one of these paths: - ``/home/nao/.config/naoqi/`` - ``/etc/naoqi/`` These conform to the general patterns: - Home config: ``~/.config//`` - SDK config: ``/etc//`` - System config: ``/etc//``