Struct NumElements

Struct Documentation

struct NumElements

generic check for the number of elements within a containing element

this can check top-level elements, references, or real sub-elements

Public Types

using Message = NumElementsMessage

Public Functions

std::vector<Message> run(const ADMData &adm) const
template<typename F>
inline void visit(F f)

Public Members

std::vector<std::string> path

path to the containing element (empty to check top-level elements

std::string element

name of the element to count

CountRange range

acceptable number of elements

std::string relationship = "elements"

plural relationship type only used for formatting the check/message

Public Static Functions

static inline std::string name()