X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Fpattern.h;h=bfaee777d46e89dc4b0b2eb390b21b27bf29cad4;hb=3d6dd09af3bd2a5f81e2d79e9fa1e302bf2c70a0;hp=8c623bda81eeac0036bc731ef2686d615ed459ef;hpb=c8e829c219c65ff8e93b6c7b66212ff0876441c5;p=builder.git diff --git a/source/lib/pattern.h b/source/lib/pattern.h index 8c623bd..bfaee77 100644 --- a/source/lib/pattern.h +++ b/source/lib/pattern.h @@ -3,13 +3,14 @@ #include #include +#include "libbuilder_api.h" /** Stores a filename pattern. A pattern consists of a prefix and a suffix, and can be applied to a body to form a complete filename. Either or both of the prefix and suffix may be empty. */ -class Pattern +class LIBBUILDER_API Pattern { private: std::string prefix; @@ -20,6 +21,9 @@ public: one percent sign (%) to separate the prefix and suffix. */ Pattern(const std::string &); + const std::string &get_prefix() const { return prefix; } + const std::string &get_suffix() const { return suffix; } + /** Applies the pattern to a body string. */ std::string apply(const std::string &) const;