X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fname_format.h;h=eb6f430845bc4329de6493ba0e998c35bf50b772;hb=c763ce17ea1d2bf621a343c4893f5d0c390ec433;hp=7eb2713ffb3fe2e26b194d635387f6026d0b1197;hpb=7e9ad089942bc3f1f9b461c87203b515c6d4a237;p=libdcp.git diff --git a/src/name_format.h b/src/name_format.h index 7eb2713f..eb6f4308 100644 --- a/src/name_format.h +++ b/src/name_format.h @@ -43,9 +43,11 @@ namespace dcp { class NameFormat { public: - std::list 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 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 _components; std::string _specification; };