namespace WrtDeviceApis {
namespace LocalStorage {
namespace Api {
-
class ILocalStorage
{
public:
*
*/
virtual DPL::Optional<std::string> getValue(
- const std::string& key) const = 0;
+ const std::string& key) const = 0;
/**
* Clears the local storage
* @param removeReadOnly - true -remove all elements
- * false - ommit items which have read only flag set
+ * false - ommit items which have read only flag
+ * set
*/
virtual void clear(bool removeReadOnly) = 0;
/**
* Get number of elements in local storage
* @param removeReadOnly - true -remove all elements
- * false - ommit items which have read only flag set
+ * false - ommit items which have read only flag
+ * set
*/
virtual size_t getStorageSize() const = 0;
* virtual destructor
*/
virtual ~ILocalStorage()
- {
- }
-
+ {}
};
typedef DPL::SharedPtr<ILocalStorage> ILocalStoragePtr;
-
} // Api
} // LocalStorage
} // WrtDeviceApis