Function YAML_UTIL::ValidateEntityAndType
Defined in File YAMLUtil.hpp
Function Documentation
-
inline bool YAML_UTIL::ValidateEntityAndType(const YAML::Node &node, const char *converter_name, const char *entity, const char *type)
Checks if the entity and type tag of the node exist and match entity and type respectively.
- Parameters:
node – The node to check
converter_name – The name of the converter calling this function. Used in the error messages.
entity – The desired value the ‘entity’ Tag should have
type – The desired value the ‘type’ Tag should have
- Returns:
true If ‘entity’ and ‘type’ exist and match the values of entity and type
- Returns:
false otherwise