client-cpp  0.10.0
kaa::FileConfigurationStorage Class Reference

#include <FileConfigurationStorage.hpp>

+ Inheritance diagram for kaa::FileConfigurationStorage:
+ Collaboration diagram for kaa::FileConfigurationStorage:

Public Member Functions

 FileConfigurationStorage (const std::string &filename)
 
 FileConfigurationStorage (std::string &&filename)
 
virtual void saveConfiguration (const std::vector< std::uint8_t > &bytes)
 
virtual std::vector< std::uint8_t > loadConfiguration ()
 
virtual void clearConfiguration ()
 
- Public Member Functions inherited from kaa::IConfigurationStorage
virtual ~IConfigurationStorage ()=default
 

Detailed Description

Definition at line 27 of file FileConfigurationStorage.hpp.

Constructor & Destructor Documentation

kaa::FileConfigurationStorage::FileConfigurationStorage ( const std::string &  filename)
inline

Definition at line 29 of file FileConfigurationStorage.hpp.

kaa::FileConfigurationStorage::FileConfigurationStorage ( std::string &&  filename)
inline

Definition at line 30 of file FileConfigurationStorage.hpp.

Member Function Documentation

virtual void kaa::FileConfigurationStorage::clearConfiguration ( )
virtual

Clear configuration data (file).

Implements kaa::IConfigurationStorage.

virtual std::vector<std::uint8_t> kaa::FileConfigurationStorage::loadConfiguration ( )
virtual

Specifies routine to load configuration data.

Returns
Configuration binary data.

Implements kaa::IConfigurationStorage.

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

Specifies routine to persist configuration data.

Parameters
bytesConfiguration binary data.

Implements kaa::IConfigurationStorage.


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