]> git.tdb.fi Git - builder.git/blobdiff - source/lib/pattern.h
Add visibility decorations to the library and plugins
[builder.git] / source / lib / pattern.h
index 8c623bda81eeac0036bc731ef2686d615ed459ef..bfaee777d46e89dc4b0b2eb390b21b27bf29cad4 100644 (file)
@@ -3,13 +3,14 @@
 
 #include <string>
 #include <vector>
+#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;