29 lines
859 B
C++
29 lines
859 B
C++
/*******************************************************************************
|
|
Copyright © 2017 Philips Lighting Holding B.V.
|
|
All Rights Reserved.
|
|
********************************************************************************/
|
|
|
|
#ifndef LIBHUESTREAM_DEFAULTSTORAGEACCESSOR_H
|
|
#define LIBHUESTREAM_DEFAULTSTORAGEACCESSOR_H
|
|
|
|
#include <huestream/connect/IBridgeStorageAccessor.h>
|
|
|
|
using huestream::IBridgeStorageAccessor;
|
|
using huestream::BridgeLoadCallbackHandler;
|
|
using huestream::BridgeSaveCallbackHandler;
|
|
|
|
namespace huestream {
|
|
|
|
class FileStorageAccessor: public IBridgeStorageAccessor
|
|
{
|
|
public:
|
|
FileStorageAccessor(const string& fileName);
|
|
void Load(BridgeLoadCallbackHandler cb) override;
|
|
void Save(BridgePtr bridge, BridgeSaveCallbackHandler cb) override;
|
|
private:
|
|
string _fileName;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // LIBHUESTREAM_DEFAULTSTORAGEACCESSOR_H
|