Fix incorrect XML namespace in MXF header; I was using the prefix
[libdcp.git] / src / name_format.h
index 7eb2713ffb3fe2e26b194d635387f6026d0b1197..eb6f430845bc4329de6493ba0e998c35bf50b772 100644 (file)
@@ -43,9 +43,11 @@ namespace dcp {
 class NameFormat
 {
 public:
-       std::list<char> components () const {
-               return _components;
-       }
+       NameFormat () {}
+
+       NameFormat (std::string specification)
+               : _specification (specification)
+       {}
 
        std::string specification () const {
                return _specification;
@@ -57,20 +59,9 @@ public:
 
        typedef std::map<char, std::string> Map;
 
-       std::string get (Map) const;
-
-protected:
-       NameFormat () {}
-
-       NameFormat (std::string specification)
-               : _specification (specification)
-       {}
-
-       void add (char placeholder);
+       std::string get (Map, std::string suffix) const;
 
 private:
-       /** placeholders for each component */
-       std::list<char> _components;
        std::string _specification;
 };