Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
[libdcp.git] / src / object.h
index f2ef4c132be3e59f6b6e56f3fae8db6f6f1eda57..303e46d33c2793c77e5ce9833e4a0f8c76d79d3c 100644 (file)
 
 */
 
+/** @file  src/object.h
+ *  @brief Object class.
+ */
+
+#ifndef LIBDCP_OBJECT_H
+#define LIBDCP_OBJECT_H
+
+#include <boost/noncopyable.hpp>
 #include <string>
 
+class write_subtitle_test;
+
 namespace dcp {
 
-/** Some part of a DCP that has a UUID */
-class Object
+/** @class Object
+ *  @brief Some part of a DCP that has a UUID.
+ */
+class Object : public boost::noncopyable
 {
 public:
        Object ();
        Object (std::string id);
+       virtual ~Object () {}
 
+       /** @return ID */
        std::string id () const {
                return _id;
        }
 
 protected:
+       friend class ::write_subtitle_test;
+
+       /** ID */
        std::string _id;
 };
-       
+
 }
+
+#endif