24#include "musx/dom/BaseClasses.h"
25#include "musx/dom/Options.h"
26#include "musx/xml/XmlInterface.h"
27#include "FactoryBase.h"
29#ifndef DOXYGEN_SHOULD_IGNORE_THIS
37MUSX_RESOLVER_ENTRY(ClefOptions, {
39 auto clefOptions = document->getOptions()->get<ClefOptions>();
40 for (
size_t i = 0; i < clefOptions->clefDefs.size(); i++) {
41 const auto& def = clefOptions->clefDefs[i];
42 if (def->useOwnFont && !def->font) {
43 MUSX_INTEGRITY_ERROR(
"Use own font was specified for clef " + std::to_string(i) +
", but no font was found in the xml.");
Classes in the OptionsPool.
Definition Details.h:40
std::shared_ptr< Document > DocumentPtr
Shared Document pointer.
Definition BaseClasses.h:55
Provides interfaces and optional implementations for traversing XML.
Definition PugiXmlImpl.h:33
object model for musx file (enigmaxml)
Definition BaseClasses.h:32