OpenEnroth 73e68f7
|
#include <ConfigPatch.h>
Public Member Functions | |
ConfigPatch ()=default | |
const std::vector< ConfigPatchEntry > & | entries () const |
void | apply (Config *config) const |
Static Public Member Functions | |
static ConfigPatch | fromConfig (const Config *config) |
template<class Filter > | |
static ConfigPatch | fromConfig (const Config *config, Filter &&filter) |
static ConfigPatch | fromEntries (std::vector< ConfigPatchEntry > entries) |
Private Attributes | |
std::vector< ConfigPatchEntry > | _entries |
Config patch, can be used to dump config state & restore it later.
Note that values are stored as string and not as std::any
. This makes it easy to implement patch serialization, and also means that we don't need to think what happens if the types in config patch and in AnyConfigValue
don't match (deserialization will throw if they don't).
|
default |
void ConfigPatch::apply | ( | Config * | config | ) | const |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
private |