#include <boost/signals2.hpp>
namespace ASDCP {
- class AESEncContext;
class AESDecContext;
class WriterInfo;
}
{
class MXFMetadata;
-class PictureMXFWriter;
+class PictureAssetWriter;
/** @class MXF
- * @brief Parent class for classes which represent MXF files.
+ * @brief Parent for classes which represent MXF files.
*/
-class MXF : public Asset
+class MXF
{
public:
MXF ();
- MXF (boost::filesystem::path file);
- ~MXF ();
-
- bool equals (
- boost::shared_ptr<const Asset> other,
- EqualityOptions opt,
- NoteHandler note
- ) const;
+ virtual ~MXF ();
/** @return true if the data is encrypted */
bool encrypted () const {
- return _key_id;
+ return static_cast<bool>(_key_id);
}
/** Set the ID of the key that is used for encryption/decryption.
MXFMetadata metadata () const {
return _metadata;
}
-
+
protected:
template <class P, class Q>
- friend void start (PictureMXFWriter* writer, boost::shared_ptr<P> state, Standard standard, Q* mxf, uint8_t* data, int size);
+ friend void start (PictureAssetWriter* writer, boost::shared_ptr<P> state, Standard standard, Q* mxf, uint8_t* data, int size);
std::string read_writer_info (ASDCP::WriterInfo const &);
/** Fill in a ADSCP::WriteInfo struct.
* @param w struct to fill in.
* @param standard INTEROP or SMPTE.
*/
- void fill_writer_info (ASDCP::WriterInfo* w, Standard standard);
+ void fill_writer_info (ASDCP::WriterInfo* w, std::string id, Standard standard) const;
ASDCP::AESDecContext* _decryption_context;
/** ID of the key used for encryption/decryption, if there is one */