IniLikeFile.onGroup

Create IniLikeGroup by groupName during file parsing.

This function can be reimplemented in derived classes, e.g. to insert additional checks or create specific derived class depending on groupName. Returned value is later passed to onCommentInGroup and onKeyValue methods as currentGroup. Reimplemented method also is allowed to return null. Default implementation just returns empty IniLikeGroup with name set to groupName.

class IniLikeFile
protected @trusted
onGroup
(
string groupName
)

Throws

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

See Also

Meta