Abstract class representing a Config Version Updater, intended to express how to upgrade a Configuration file from one version of a config to another (i.e. removing default values, changing option names, etc.) It can be used by subclassing ConfigVersionUpdater, implementing the Update function, and implementing the Constructor passing the version that the Config is being updated to to this class' constructor from the child class' default constructor. For example:
More...
#include <Config.h>
|
| | ConfigVersionUpdater (uint32_t toVersion) |
| |
| virtual void | Update (Config *conf)=0 |
| | Performs actions on a Config object via the provided pointer to update it to the next version. (i.e. removing/changing default values or renaming options)
|
| |
| uint32_t | GetVersion () |
| | Get the value of mVersion.
|
| |
Abstract class representing a Config Version Updater, intended to express how to upgrade a Configuration file from one version of a config to another (i.e. removing default values, changing option names, etc.) It can be used by subclassing ConfigVersionUpdater, implementing the Update function, and implementing the Constructor passing the version that the Config is being updated to to this class' constructor from the child class' default constructor. For example:
Abstract class representing a Config Version Updater, intended to express how to upgrade a Configurat...
Definition Config.h:23
Finally, give an instance of this subclass to a Config object via RegisterConfigVersionUpdater and call RunVersionUpdates.
◆ ConfigVersionUpdater()
| Ship::ConfigVersionUpdater::ConfigVersionUpdater |
( |
uint32_t |
toVersion | ) |
|
◆ GetVersion()
| uint32_t Ship::ConfigVersionUpdater::GetVersion |
( |
| ) |
|
Get the value of mVersion.
- Returns
- uint32_t
◆ Update()
| virtual void Ship::ConfigVersionUpdater::Update |
( |
Config * |
conf | ) |
|
|
pure virtual |
Performs actions on a Config object via the provided pointer to update it to the next version. (i.e. removing/changing default values or renaming options)
- Parameters
-
◆ mVersion
| uint32_t Ship::ConfigVersionUpdater::mVersion |
|
protected |
The documentation for this class was generated from the following file: