AdaptableFileConfig

An IConfig with adapter support that uses the filesystem to store/retrieve its configuration value.

Notes: This class will ensure the directory for the file exists.

This class will always create a backup ".bak" before every write attempt. It however does not attempt to restore this file in the event of an error.

If this class' config file doesn't exist, then load is no-op, leaving the value as For.init

final
class AdaptableFileConfig : IConfig!For(
For
Adapter
) if (
isConfigAdapterFor!(Adapter, For) &&
isCopyable!For
) {}

Constructors

this
this(string path)

Members

Functions

load
void load()
Undocumented in source. Be warned that the author may not have intended to support it.
save
void save()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

value
For value [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
For value [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

See Also

The docs for isConfigAdapterFor to learn more about configs with adapter support.

addFileConfig

Meta