FOSSredder 0.5.0
Loading...
Searching...
No Matches
IRegistry.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <optional>
9#include <string>
10
12
13class IRegistry {
14public:
18 virtual ~IRegistry() = default;
19
24 virtual std::optional<std::string> getLatest() const = 0;
25
30 virtual void setLatest(const std::string& path) = 0;
31};
32
33} // namespace core::ports::storage
virtual void setLatest(const std::string &path)=0
Store the latest path.
virtual std::optional< std::string > getLatest() const =0
Retrieve the latest stored path.
virtual ~IRegistry()=default
Destroy the registry port.