/* * FileSuffixValidator.hpp * * Created on: May 10, 2012 * Author: heber */ #ifndef FILESUFFIXVALIDATOR_HPP_ #define FILESUFFIXVALIDATOR_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include "Parameters/Validators/DummyValidator.hpp" /** This validator checks whether the given path contains a valid suffix of * a known \ref FormatParser. */ class FileSuffixValidator : public DummyValidator< boost::filesystem::path > { public: FileSuffixValidator(const std::string &_suffix) : suffix(_suffix) {} private: std::string suffix; }; #endif /* FILESUFFIXVALIDATOR_HPP_ */