MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / validate

Method validate

source/MaterialXCore/Document.cpp:406–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406bool Document::validate(string* message) const
407{
408 bool res = true;
409 std::pair<int, int> expectedVersion(MATERIALX_MAJOR_VERSION, MATERIALX_MINOR_VERSION);
410 validateRequire(getVersionIntegers() >= expectedVersion, res, message, "Unsupported document version");
411 validateRequire(getVersionIntegers() <= expectedVersion, res, message, "Future document version");
412 return GraphElement::validate(message) && res;
413}
414
415void Document::invalidateCache()
416{

Callers

nothing calls this directly

Calls 1

getVersionIntegersFunction · 0.85

Tested by

no test coverage detected