IniLikeFile.onGroup

Create IniLikeGroup by groupName during file parsing.

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.

class IniLikeFile
protected @trusted
onGroup
(
string groupName
)

Throws

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

See Also

Meta