#include <conf_serializer.h>
Public Member Functions | |
ConfSerializer (bool saving) | |
~ConfSerializer () | |
bool | isSaving () const |
bool | isLoading () const |
void | syncAsString (const Common::String &key, Common::String &value, const char *defaultValue=nullptr) |
void | syncAsBool (const Common::String &key, bool &value, bool defaultValue=false) |
template<typename T > | |
void | syncAsInt (const Common::String &key, T &value, T defaultValue=0) |
A simplified serializer class for reading/writing stuff from ConfMan
|
inline |
Constructor
|
inline |
Destructor
|
inline |
Returns true if saving
|
inline |
Returns true if loading
|
inline |
Syncs a string
|
inline |
Syncs a boolean
|
inline |
Syncs an integer