4th parameter of time is ticks (1 tick = 4ms) not milliseconds
[libdcp.git] / src / pkl.h
index ab6c7a60dff386c865103e1fd3571535dc908f49..8c64f43bb55a39d42739b5dc7347fd6c1296eea2 100644 (file)
--- a/src/pkl.h
+++ b/src/pkl.h
@@ -12,17 +12,9 @@ public:
        std::string id;
        std::string annotation_text;
        std::string hash;
-       int size;
+       int64_t size;
        std::string type;
-};
-
-class PKLAssetList : public XMLNode
-{
-public:
-       PKLAssetList ();
-       PKLAssetList (xmlpp::Node const * node);
-
-       std::list<boost::shared_ptr<PKLAsset> > assets;
+       std::string original_file_name;
 };
 
 class PKL : public XMLFile
@@ -30,12 +22,14 @@ class PKL : public XMLFile
 public:
        PKL (std::string file);
 
+       boost::shared_ptr<PKLAsset> asset_from_id (std::string id) const;
+
        std::string id;
        std::string annotation_text;
        std::string issue_date;
        std::string issuer;
        std::string creator;
-       boost::shared_ptr<PKLAssetList> asset_list;
+       std::list<boost::shared_ptr<PKLAsset> > assets;
 };
        
 }