client-cpp  0.10.0
kaa::IConfigurationStorage Class Referenceabstract

#include <IConfigurationStorage.hpp>

+ Inheritance diagram for kaa::IConfigurationStorage:

Public Member Functions

virtual void saveConfiguration (const std::vector< std::uint8_t > &bytes)=0
 
virtual std::vector< std::uint8_t > loadConfiguration ()=0
 
virtual void clearConfiguration ()=0
 
virtual ~IConfigurationStorage ()=default
 

Detailed Description

Interface which is used by IConfigurationPersistenceManager to use user-defined routines for persisting/loading binary configuration data.

Should be defined by user.

Definition at line 32 of file IConfigurationStorage.hpp.

Constructor & Destructor Documentation

virtual kaa::IConfigurationStorage::~IConfigurationStorage ( )
virtualdefault

Member Function Documentation

virtual void kaa::IConfigurationStorage::clearConfiguration ( )
pure virtual

Clear configuration data (file).

Implemented in kaa::FileConfigurationStorage.

virtual std::vector<std::uint8_t> kaa::IConfigurationStorage::loadConfiguration ( )
pure virtual

Specifies routine to load configuration data.

Returns
Configuration binary data.

Implemented in kaa::FileConfigurationStorage.

virtual void kaa::IConfigurationStorage::saveConfiguration ( const std::vector< std::uint8_t > &  bytes)
pure virtual

Specifies routine to persist configuration data.

Parameters
bytesConfiguration binary data.

Implemented in kaa::FileConfigurationStorage.


The documentation for this class was generated from the following file: