Skip to content

Commit ce91924

Browse files
Merge branch 'wipe-changes' of https://github.com/ecmwf/fdb into wipe-changes
2 parents 0f7a1c0 + 43c3893 commit ce91924

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/fdb5/database/WipeState.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,15 @@ class WipeState {
4646
WipeState(std::set<eckit::URI> safeURIs, URIMap deleteURIs) :
4747
deleteURIs_(std::move(deleteURIs)), safeURIs_(std::move(safeURIs)) {}
4848

49+
explicit WipeState(eckit::Stream& s);
4950

50-
virtual ~WipeState() = default;
51+
WipeState(const WipeState&) = delete;
52+
WipeState& operator=(const WipeState&) = delete;
5153

52-
explicit WipeState(eckit::Stream& s);
54+
WipeState(WipeState&&) noexcept = default;
55+
WipeState& operator=(WipeState&&) noexcept = default;
56+
57+
virtual ~WipeState() = default;
5358

5459
virtual void encode(eckit::Stream& s) const;
5560

@@ -111,6 +116,14 @@ class StoreWipeState : public WipeState {
111116
StoreWipeState(eckit::URI uri);
112117
StoreWipeState(eckit::Stream& s);
113118

119+
// Non-copyable
120+
StoreWipeState(const StoreWipeState&) = delete;
121+
StoreWipeState& operator=(const StoreWipeState&) = delete;
122+
123+
// Movable
124+
StoreWipeState(StoreWipeState&&) noexcept = default;
125+
StoreWipeState& operator=(StoreWipeState&&) noexcept = default;
126+
114127
// Adding and Removing URIs
115128

116129
void insertAuxiliaryURI(const eckit::URI& uri) {

0 commit comments

Comments
 (0)