Add a Verifier for a list of Strings to replace a more cumbersome expression

This commit is contained in:
Alexander Bock
2016-10-27 15:50:29 +02:00
parent 22847655be
commit 4ce3be9e8c
4 changed files with 82 additions and 10 deletions

View File

@@ -199,6 +199,19 @@ struct TableVerifier : public TemplateVerifier<ghoul::Dictionary> {
Exhaustive exhaustive;
};
/**
* A Verifier that checks whether all values contained in a Table are of type \c string.
*/
struct StringListVerifier : public TableVerifier {
/**
* Constructor for a StringListVerifier.
* \param elementDocumentation The documentation for each string in the list
*/
StringListVerifier(std::string elementDocumentation = "");
std::string type() const override;
};
//----------------------------------------------------------------------------------------
// Vector verifiers
//----------------------------------------------------------------------------------------