diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-30 23:47:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-30 23:47:57 +0100 |
| commit | 9a9d4e014c16be88d72914a9480343445bc785a5 (patch) | |
| tree | 1857fcdd8963d51ac50f1467d9ae81d4d9be5f8e /src/pkl.h | |
| parent | 34a25d89b16a33b5f619ae0eaaa03c17f93980af (diff) | |
Various.
Diffstat (limited to 'src/pkl.h')
| -rw-r--r-- | src/pkl.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/pkl.h b/src/pkl.h new file mode 100644 index 00000000..ab6c7a60 --- /dev/null +++ b/src/pkl.h @@ -0,0 +1,41 @@ +#include <boost/shared_ptr.hpp> +#include "xml.h" + +namespace libdcp { + +class PKLAsset : public XMLNode +{ +public: + PKLAsset () {} + PKLAsset (xmlpp::Node const * node); + + std::string id; + std::string annotation_text; + std::string hash; + int size; + std::string type; +}; + +class PKLAssetList : public XMLNode +{ +public: + PKLAssetList (); + PKLAssetList (xmlpp::Node const * node); + + std::list<boost::shared_ptr<PKLAsset> > assets; +}; + +class PKL : public XMLFile +{ +public: + PKL (std::string file); + + std::string id; + std::string annotation_text; + std::string issue_date; + std::string issuer; + std::string creator; + boost::shared_ptr<PKLAssetList> asset_list; +}; + +} |
