Class IniLikeGroup

This class represents the group (section) of key-value entries in the ini-like file. Instances of this class can be created only in the context of IniLikeFile or its derivatives. Values are stored in the escaped form, but the interface allows to set and get values in both escaped and unescaped forms.

class IniLikeGroup ;

Constructors

NameDescription
this Create IniLikeGroup instance with given name.

Methods

NameDescription
addCommentAfter Add comment after some node.
addCommentBefore Add comment before some node.
appendComment Add comment line into the group.
appendValue Add key-value entry without diret association of the value with the key. Can be used to add duplicates.
byIniLine
byKeyValue Iterate by Key-Value pairs. Values are left in escaped form.
byNode Iterate over nodes of internal list.
contains Check if the group contains a value associated with the key.
emptyByKeyValue Empty range of the same type as byKeyValue. Can be used in derived classes if it's needed to have an empty range.
escapedValue Get value by key in escaped form.
escapedValue Perform locale matching lookup as described in Localized values for keys.
getNode Get internal list node for key.
groupName Get name of this group.
moveLineAfter Move line after other line in the group.
moveLineBefore Move line before other line in the group.
moveLineToBack Move line to the end of group.
moveLineToFront Move line to the start of group.
prependComment Add comment line at the start of group (after group header, before any key-value pairs).
removeEntry Removes entry by key. Do nothing if no value associated with key found.
removeEntry ditto, but remove entry by localized key.
removeEntry ditto, but remove entry by node.
setEscapedValue Set value associated with key.
setEscapedValue Set value associated with key and locale.
setUnescapedValue Set value by key. The value is considered to be in the unescaped form.
setUnescapedValue ditto, localized version
unescapedValue Get value by key.
validateKey Validate key before setting value to key for this group and throw exception if not valid. Can be reimplemented in derived classes.
validateValue Validate value for key before setting value to key for this group and throw exception if not valid. Can be reimplemented in derived classes. The key is provided because you may want to implement specific checks depending on the key name.

Inner structs

NameDescription
LineNode Wrapper for internal ListMap node.

Enums

NameDescription
InvalidKeyPolicy

Note

Keys are case-sensitive.