summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-23 15:35:24 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-23 15:35:24 +0100
commit6c37cc1979b2a01205a888c4c98f3334685ee8dd (patch)
tree9de52a3053e57bdf79a7986319cb097b33e46b5c /src/object.h
parentb75d977a38f039fd68ed5d4055ae70b4bf631603 (diff)
Tidying.
Diffstat (limited to 'src/object.h')
-rw-r--r--src/object.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/src/object.h b/src/object.h
index aa0fe6b3..d1d476c8 100644
--- a/src/object.h
+++ b/src/object.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -31,16 +31,19 @@
files in the program, then also delete it here.
*/
+
/** @file src/object.h
- * @brief Object class.
+ * @brief Object class
*/
+
#ifndef LIBDCP_OBJECT_H
#define LIBDCP_OBJECT_H
-#include <boost/noncopyable.hpp>
+
#include <string>
+
struct write_interop_subtitle_test;
struct write_interop_subtitle_test2;
struct write_interop_subtitle_test3;
@@ -49,19 +52,29 @@ struct write_smpte_subtitle_test2;
struct write_smpte_subtitle_test3;
struct sync_test2;
+
namespace dcp {
+
/** @class Object
- * @brief Some part of a DCP that has a UUID.
+ * @brief Some part of a DCP that has a UUID
*/
-class Object : public boost::noncopyable
+class Object
{
public:
+ /** Create an Object with a random ID */
Object ();
+
+ /** Create an Object with a given ID.
+ * @param id ID to use.
+ */
explicit Object (std::string id);
+
+ Object (Object const&) = delete;
+ Object& operator= (Object const&) = delete;
+
virtual ~Object () {}
- /** @return ID */
std::string id () const {
return _id;
}
@@ -75,7 +88,6 @@ protected:
friend struct ::write_smpte_subtitle_test3;
friend struct ::sync_test2;
- /** ID */
std::string _id;
};