X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fshuffler.h;h=4d1404560f2dc09ce597273a15b825d3b9137042;hb=37d2bf172e9061f24c874d5416bd3c8f9719c823;hp=54e13d486fefeb3bf3390f497bc94c7b839cbba1;hpb=1aad2c33896ce6222f3c929c7af7fe4ff5fda0f2;p=dcpomatic.git diff --git a/src/lib/shuffler.h b/src/lib/shuffler.h index 54e13d486..4d1404560 100644 --- a/src/lib/shuffler.h +++ b/src/lib/shuffler.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,25 +18,39 @@ */ -#include "types.h" + +#ifndef DCPOMATIC_SHUFFLER_H +#define DCPOMATIC_SHUFFLER_H + + #include "content_video.h" #include + +struct shuffler_test5; + class Piece; + class Shuffler { public: void clear (); void flush (); + void video (std::weak_ptr, ContentVideo video); - void video (boost::weak_ptr, ContentVideo video); - boost::signals2::signal, ContentVideo)> Video; + boost::signals2::signal, ContentVideo)> Video; - typedef std::pair, ContentVideo> Store; + typedef std::pair, ContentVideo> Store; private: + friend struct ::shuffler_test5; - boost::optional _last; std::list _store; + boost::optional _last; + static int const _max_size; }; + + +#endif +