My Project
Loading...
Searching...
No Matches
Public Attributes | List of all members
ConfigOption Struct Reference

An option consisting of one (an item) or many (a list) values. More...

#include <config_file.h>

Public Attributes

ConfigString key
 The key of the option.
 
unsigned int values_count
 The number of values in the option if it is a 'list' option.
 
union { 
 
   ConfigString   value 
 The value of an 'item' option or an empty 'list' option. More...
 
   ConfigString *   values 
 The values of a non-empty 'list' option.
 
} v 
 The value or values.
 

Detailed Description

An option consisting of one (an item) or many (a list) values.

Member Data Documentation

◆ [union]

union { ... } ConfigOption::v

The value or values.

The tag for this union is value_count:

  • if 0 then value is valid,
  • otherwise values is valid.

◆ value

ConfigString ConfigOption::value

The value of an 'item' option or an empty 'list' option.

If this field is NULL then the option is an empty 'list' option.

◆ values_count

unsigned int ConfigOption::values_count

The number of values in the option if it is a 'list' option.

If 0 then the option may be an 'item' option.

See also
ConfigOption::value

The documentation for this struct was generated from the following file: