mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Add a Verifier for a list of Strings to replace a more cumbersome expression
This commit is contained in:
@@ -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
|
||||
//----------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user