X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpattern.h;h=5965efaed69886ea489679f93b0e0d13774eef4d;hb=HEAD;hp=8c623bda81eeac0036bc731ef2686d615ed459ef;hpb=aa053d637e8259755af7d2e4b510a242f4d29c7b;p=builder.git diff --git a/source/pattern.h b/source/pattern.h deleted file mode 100644 index 8c623bd..0000000 --- a/source/pattern.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef PATTERN_H_ -#define PATTERN_H_ - -#include -#include - -/** -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 -{ -private: - std::string prefix; - std::string suffix; - -public: - /** Constructs a pattern from a single string. The string must have exactly - one percent sign (%) to separate the prefix and suffix. */ - Pattern(const std::string &); - - /** Applies the pattern to a body string. */ - std::string apply(const std::string &) const; - - /** Applies a list of patterns to the same body. */ - static std::vector apply_list(const std::vector &, const std::string &); -}; - -#endif