namespace
ValidationOpenDDL document validation.
See Document::
Validation of OpenDDL documents. See OpenDdl::
This library is built if MAGNUM_WITH_OPENDDL
is enabled when building Magnum Plugins. To use this library with CMake, request the OpenDdl
component of the MagnumPlugins
package and link to the MagnumPlugins::OpenDdl
target:
find_package(MagnumPlugins REQUIRED OpenDdl) # ... target_link_libraries(your-app PRIVATE MagnumPlugins::OpenDdl)
Additionally, if you're using Magnum as a CMake subproject, bundle the magnum-plugins repository and do the following before calling find_package()
:
set(MAGNUM_WITH_OPENDDL ON CACHE BOOL "" FORCE) add_subdirectory(magnum-plugins EXCLUDE_FROM_ALL)
Classes
- class Property
- Property specification.
- struct RequiredPropertyType
- Tag type for required and optional properties.
- class Structure
- Structure spec for validation.
Typedefs
-
using Structures = std::
initializer_list <std::pair <Int, std::pair <Int, Int>>> - List of allowed structures for validation.
-
using Properties = std::
initializer_list <Property> - List of allowed properties for validation.
-
using Primitives = std::
initializer_list <Type> - List of allowed primitive types for validation.
Variables
- RequiredPropertyType RequiredProperty constexpr
- Required property.
- RequiredPropertyType OptionalProperty constexpr
- Optional property.
Typedef documentation
typedef std::initializer_list <std::pair <Int, std::pair <Int, Int>>> Magnum::OpenDdl::Validation::Structures
#include <Magnum/OpenDdl/Document.h>
List of allowed structures for validation.
First value is structure identifier, the pair specifies minimal and maximal allowed count of structures with given identifier. Maximal count set to 0
means that there is no upper limit.
See Validation::
typedef std::initializer_list <Property> Magnum::OpenDdl::Validation::Properties
#include <Magnum/OpenDdl/Validation.h>
List of allowed properties for validation.
See Validation::
typedef std::initializer_list <Type> Magnum::OpenDdl::Validation::Primitives
#include <Magnum/OpenDdl/Validation.h>
List of allowed primitive types for validation.
See Validation::
Variable documentation
RequiredPropertyType Magnum::OpenDdl::Validation::RequiredProperty constexpr
#include <Magnum/OpenDdl/Validation.h>
Required property.
RequiredPropertyType Magnum::OpenDdl::Validation::OptionalProperty constexpr
#include <Magnum/OpenDdl/Validation.h>
Optional property.