diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-02-17 17:33:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-02-17 17:33:35 +0100 |
| commit | 33e13c4053138930f4b2f59349e441c76111059d (patch) | |
| tree | 4a4da8c31d0a78bc11539ae89a5d67602cdcb913 /src/lib/state.h | |
| parent | e573f4fa173608dcb7ca23f543b49d5be26a8226 (diff) | |
Assorted C++11 tidying.
Diffstat (limited to 'src/lib/state.h')
| -rw-r--r-- | src/lib/state.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/state.h b/src/lib/state.h index 35a93f52d..f1ed775a2 100644 --- a/src/lib/state.h +++ b/src/lib/state.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,23 +18,30 @@ */ + #ifndef DCPOMATIC_STATE_H #define DCPOMATIC_STATE_H -#include <boost/noncopyable.hpp> + #include <boost/filesystem.hpp> #include <boost/optional.hpp> -class State : public boost::noncopyable + +class State { public: + State () {} virtual ~State () {} virtual void read () = 0; virtual void write () const = 0; + State (State const&) = delete; + State& operator= (State const&) = delete; + /** If set, this overrides the standard path (in home, Library, AppData or wherever) for config.xml, cinemas.xml etc. */ static boost::optional<boost::filesystem::path> override_path; static boost::filesystem::path path (std::string file, bool create_directories = true); }; + #endif |
