summaryrefslogtreecommitdiff
path: root/src/metadata.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-17 23:46:20 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-17 23:46:20 +0100
commit2194158985f9c1300ffe24c7c6fb786cb39bbdb5 (patch)
treec06bb8938330010901e283412479c6e3a6648311 /src/metadata.h
parent3f96dedbdd7f232d10f7851eed37dd6d350332c7 (diff)
Tags -> Metadata
Diffstat (limited to 'src/metadata.h')
-rw-r--r--src/metadata.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/metadata.h b/src/metadata.h
new file mode 100644
index 00000000..7660c4dd
--- /dev/null
+++ b/src/metadata.h
@@ -0,0 +1,48 @@
+/*
+ Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <string>
+
+namespace libdcp
+{
+
+/** A class to hold various metadata that will be written
+ * to the DCP. The values are initialised, and can be modified
+ * if desired.
+ */
+class Metadata
+{
+public:
+ static Metadata* instance ();
+
+ std::string company_name;
+ std::string product_name;
+ std::string product_version;
+ std::string issuer;
+ std::string creator;
+ std::string issue_date;
+
+private:
+ Metadata ();
+
+ /** Singleton instance of Metadata */
+ static Metadata* _instance;
+};
+
+}