Function IniLikeFile.onGroup

Create IniLikeGroup by groupName during file parsing.

IniLikeGroup onGroup (
  string groupName
) @trusted;

This function can be reimplemented in derived classes, e.g. to insert additional checks. Returned value is later passed to onCommentInGroup and onKeyValue methods as currentGroup. Reimplemented method also is allowed to return null. Default implementation just creates and returns empty IniLikeGroup with name set to groupName. If group already exists and DuplicateGroupPolicy is skip, then null is returned.

Throws

IniLikeGroupException if group with such name already exists. IniLikeException if groupName is empty.

See Also

onKeyValue, onCommentInGroup