-
/*
- Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2016-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
+
#ifndef DCPOMATIC_CONTENT_PART_H
#define DCPOMATIC_CONTENT_PART_H
-#include "content.h"
+
#include "change_signaller.h"
+#include "content.h"
#include <boost/thread/mutex.hpp>
+
class Content;
class Film;
+
class ContentPart
{
public:
void
maybe_set (T& member, T new_value, int property) const
{
- ChangeSignaller<Content> cc (_parent, property);
+ ContentChangeSignaller cc (_parent, property);
{
boost::mutex::scoped_lock lm (_mutex);
if (member == new_value) {
void
maybe_set (boost::optional<T>& member, T new_value, int property) const
{
- ChangeSignaller<Content> cc (_parent, property);
+ ContentChangeSignaller cc (_parent, property);
{
boost::mutex::scoped_lock lm (_mutex);
if (member && member.get() == new_value) {
mutable boost::mutex _mutex;
};
+
#endif