NFR File Formats: Resource Files
Home ] Up ] NFR File Formats: fac_res.src ] NFR File Formats: gui.cf ] NFR File Formats: nfr_res.src ] NFR File Formats: nfr.conf ] NFR File Formats: queue.cf ] NFR File Formats: spaceman.cf ] NFR File Formats: usr_res.src ] [ NFR File Formats: Resource Files ]


Resource Files

Resources definition files allow you to edit strings and other data referenced by various NFR modules and programs without recompiling binaries.

File Location

$NFRHOME/etc/resource/file_res.src

Comments

Any characters after a '#' and until a '\n', are considered a comment.

Attributes

The attributes section contains directives for the resource compiler. This section of a resource file is optional.  If you include an attributes section, it must appear as the first section in the file.

Syntax

_attributes
{
attribute_tag;
attribute_tag;
.
.
.
}

Attribute Tags

Currently, there is only one supported attribute tag:

  • fixed - Causes the GUI to disallow deletion of definitions included in the same file.

Ranges

The various resource definitions are broken down into groups called ranges. A range consists of a range declaration and a number of resource definitions.

Syntax

resource-type range-name range-min - range-max display-name

{
resource-definition
.
.
.
}

Range Variables

  • resource-type - The type of resource.  The following are valid resource types:
    • _alert
    • _alerts
    • _facilities
    • _srcs
    • _strings
  • range-name - Any alphanumeric string beginning with a letter or an undescore '_'.
  • range-min - The starting point of the range.
  • range-max - The ending point of the range.
  • display-name - The text to identify this range to components of the GUI.

Variables

See the reference for the individual resource file:

  • fac_res.src
  • nfr_res.src
  • usr_res.src

Back ] Home ] Up ]