summaryrefslogtreecommitdiff
path: root/src/asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-17 21:09:39 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-17 21:09:39 +0100
commit82d22d7ff5328fae4f2e3048e63a2b11f3ce36b4 (patch)
tree82bdbe0285f159bcfd8204d53efe938bd5999095 /src/asset.h
parent4709b2fe88040f3678560997726f3a209eacc660 (diff)
Doc fixes.
Diffstat (limited to 'src/asset.h')
-rw-r--r--src/asset.h39
1 files changed, 33 insertions, 6 deletions
diff --git a/src/asset.h b/src/asset.h
index 2d33e069..b0cc450c 100644
--- a/src/asset.h
+++ b/src/asset.h
@@ -17,6 +17,10 @@
*/
+/** @file src/asset.h
+ * @brief Parent class for assets of DCPs.
+ */
+
#ifndef LIBDCP_ASSET_H
#define LIBDCP_ASSET_H
@@ -30,18 +34,41 @@ namespace ASDCP {
namespace libdcp
{
-/** Parent class for assets (picture / sound collections) */
+/** @brief Parent class for assets of DCPs
+ *
+ * These are collections of pictures or sound.
+ */
class Asset
{
public:
- Asset (std::string, sigc::signal1<void, float>*, int, int);
+ /** Construct an Asset.
+ * @param mxf_path Pathname of MXF file.
+ * @param progress Signal to inform of progress.
+ * @param fps Frames per second.
+ * @param length Length in frames.
+ */
+ Asset (std::string mxf_path, sigc::signal1<void, float>* progress, int fps, int length);
+
+ /** Write details of the asset to a CPL stream.
+ * @param s Stream.
+ */
+ virtual void write_to_cpl (std::ostream& s) const = 0;
+
+ /** Write details of the asset to a PKL stream.
+ * @param s Stream.
+ */
+ void write_to_pkl (std::ostream& s) const;
- virtual void write_to_cpl (std::ostream &) const = 0;
- void write_to_pkl (std::ostream &) const;
- void write_to_assetmap (std::ostream &) const;
+ /** Write details of the asset to a ASSETMAP stream.
+ * @param s Stream.
+ */
+ void write_to_assetmap (std::ostream& s) const;
protected:
- void fill_writer_info (ASDCP::WriterInfo *) const;
+ /** Fill in a ADSCP::WriteInfo struct.
+ * @param w struct to fill in.
+ */
+ void fill_writer_info (ASDCP::WriterInfo* w) const;
/** Path to our MXF file */
std::string _mxf_path;