paludis  Version 1.4.2
Files | Classes | Typedefs | Enumerations
Configuration Files

Files

file  config_file.hh
 

Classes

class  paludis::ConfigFileError
 
class  paludis::ConfigFile
 
class  paludis::ConfigFile::Source
 
class  paludis::LineConfigFile
 
class  paludis::KeyValueConfigFile
 

Typedefs

typedef Options
< LineConfigFileOption
paludis::LineConfigFileOptions
 

Enumerations

enum  paludis::LineConfigFileOption {
  paludis::lcfo_disallow_continuations, paludis::lcfo_disallow_comments, paludis::lcfo_preserve_whitespace, paludis::lcfo_no_skip_blank_lines,
  paludis::lcfo_allow_inline_comments, paludis::last_lcfo
}
 
enum  paludis::KeyValueConfigFileOption {
  paludis::kvcfo_disallow_continuations, paludis::kvcfo_disallow_comments, paludis::kvcfo_disallow_space_around_equals, paludis::kvcfo_disallow_space_inside_unquoted_values,
  paludis::kvcfo_disallow_single_quoted_strings, paludis::kvcfo_disallow_double_quoted_strings, paludis::kvcfo_disallow_unquoted_values, paludis::kvcfo_disallow_variables,
  paludis::kvcfo_disallow_source, paludis::kvcfo_preserve_whitespace, paludis::kvcfo_ignore_export, paludis::kvcfo_allow_inline_comments,
  paludis::kvcfo_allow_multiple_assigns_per_line, paludis::kvcfo_allow_sections, paludis::kvcfo_allow_fancy_assigns, paludis::kvcfo_allow_env,
  paludis::kvcfo_ignore_single_quotes_inside_strings, paludis::last_kvcfo
}
 
enum  LineConfigFileOption {
  lcfo_disallow_continuations, lcfo_disallow_comments, lcfo_preserve_whitespace, lcfo_no_skip_blank_lines,
  lcfo_allow_inline_comments, last_lcfo
}
 
enum  KeyValueConfigFileOption {
  kvcfo_disallow_continuations, kvcfo_disallow_comments, kvcfo_disallow_space_around_equals, kvcfo_disallow_space_inside_unquoted_values,
  kvcfo_disallow_single_quoted_strings, kvcfo_disallow_double_quoted_strings, kvcfo_disallow_unquoted_values, kvcfo_disallow_variables,
  kvcfo_disallow_source, kvcfo_preserve_whitespace, kvcfo_ignore_export, kvcfo_allow_inline_comments,
  kvcfo_allow_multiple_assigns_per_line, kvcfo_allow_sections, kvcfo_allow_fancy_assigns, kvcfo_allow_env,
  kvcfo_ignore_single_quotes_inside_strings, last_kvcfo
}
 

Detailed Description

The various ConfigFile subclasses simplify handling configuration files in various common formats.

Examples

Typedef Documentation

Enumeration Type Documentation

Options for a KeyValueConfigFile.

See Also
KeyValueConfigFile
KeyValueConfigFileOptions
Enumerator
kvcfo_disallow_continuations 

Do not recognise line continuations.

kvcfo_disallow_comments 

Do not recognise comments.

kvcfo_disallow_space_around_equals 

Do not allow spaces around equals.

kvcfo_disallow_space_inside_unquoted_values 

Do not allow spaces inside unquoted values.

kvcfo_disallow_single_quoted_strings 

Do not allow single quoted strings.

kvcfo_disallow_double_quoted_strings 

Do not allow double quoted strings.

kvcfo_disallow_unquoted_values 

Do not allow unquoted values.

kvcfo_disallow_variables 

Do not allow variable expansions.

kvcfo_disallow_source 

Do not allow the source command.

kvcfo_preserve_whitespace 

Do not strip trailing whitespace from values.

kvcfo_ignore_export 

Accept and ignore the word export at the beginning of a line.

kvcfo_allow_inline_comments 

Allow inline comments.

Since
0.28
kvcfo_allow_multiple_assigns_per_line 

Allow A='b' B='c' (and unquoted if kvcfo_disallow_space_inside_unquoted_values).

Since
0.28
kvcfo_allow_sections 

Allow [sections].

Since
0.44
kvcfo_allow_fancy_assigns 

Allow ?= assignments.

Since
0.54.1
kvcfo_allow_env 

Allow ${ENV{blah}}.

Since
0.54.1
kvcfo_ignore_single_quotes_inside_strings 

Allow 'broken 'quoted' strings' (for libtool)

Since
0.62.1
last_kvcfo 

Number of keys in paludis::KeyValueConfigFileOption.

Options for a KeyValueConfigFile.

See Also
KeyValueConfigFile
KeyValueConfigFileOptions
Enumerator
kvcfo_disallow_continuations 

Do not recognise line continuations.

kvcfo_disallow_comments 

Do not recognise comments.

kvcfo_disallow_space_around_equals 

Do not allow spaces around equals.

kvcfo_disallow_space_inside_unquoted_values 

Do not allow spaces inside unquoted values.

kvcfo_disallow_single_quoted_strings 

Do not allow single quoted strings.

kvcfo_disallow_double_quoted_strings 

Do not allow double quoted strings.

kvcfo_disallow_unquoted_values 

Do not allow unquoted values.

kvcfo_disallow_variables 

Do not allow variable expansions.

kvcfo_disallow_source 

Do not allow the source command.

kvcfo_preserve_whitespace 

Do not strip trailing whitespace from values.

kvcfo_ignore_export 

Accept and ignore the word export at the beginning of a line.

kvcfo_allow_inline_comments 

Allow inline comments.

Since
0.28
kvcfo_allow_multiple_assigns_per_line 

Allow A='b' B='c' (and unquoted if kvcfo_disallow_space_inside_unquoted_values).

Since
0.28
kvcfo_allow_sections 

Allow [sections].

Since
0.44
kvcfo_allow_fancy_assigns 

Allow ?= assignments.

Since
0.54.1
kvcfo_allow_env 

Allow ${ENV{blah}}.

Since
0.54.1
kvcfo_ignore_single_quotes_inside_strings 

Allow 'broken 'quoted' strings' (for libtool)

Since
0.62.1
last_kvcfo 

Number of keys in paludis::KeyValueConfigFileOption.

Options for a LineConfigFile.

See Also
LineConfigFile
LineConfigFileOptions
Enumerator
lcfo_disallow_continuations 

Do not recognise line continuations.

lcfo_disallow_comments 

Do not recognise comments.

lcfo_preserve_whitespace 

Preserve exact whitespace.

lcfo_no_skip_blank_lines 

Do not skip blank lines.

lcfo_allow_inline_comments 

Allow inline comments.

Since
0.28
last_lcfo 

Number of keys in paludis::LineConfigFileOption.

Options for a LineConfigFile.

See Also
LineConfigFile
LineConfigFileOptions
Enumerator
lcfo_disallow_continuations 

Do not recognise line continuations.

lcfo_disallow_comments 

Do not recognise comments.

lcfo_preserve_whitespace 

Preserve exact whitespace.

lcfo_no_skip_blank_lines 

Do not skip blank lines.

lcfo_allow_inline_comments 

Allow inline comments.

Since
0.28
last_lcfo 

Number of keys in paludis::LineConfigFileOption.