|
MUSX Document Model
|
Optional arguments for document creation. More...
#include <DocumentFactory.h>
Classes | |
| struct | EmbeddedGraphicFile |
| Raw embedded graphic file payload from a musx archive. More... | |
Public Types | |
| using | EmbeddedGraphicFiles = std::vector< EmbeddedGraphicFile > |
| Embedded graphic files provided by caller. | |
Public Member Functions | |
| CreateOptions ()=default | |
| Default constructor. | |
| CreateOptions (dom::PartVoicingPolicy policy) | |
| Construct options with a part-voicing policy. | |
| CreateOptions (std::vector< char > &¬ationMetadata) | |
| Construct options by moving in NotationMetadata.xml bytes. | |
| CreateOptions (EmbeddedGraphicFiles &&embeddedGraphicFiles) | |
| Construct options by moving embedded graphic files. | |
| template<typename Container , typename = IsCharContainer<Container>> | |
| CreateOptions (const Container ¬ationMetadata) | |
| Construct options by copying a 1-byte-element metadata buffer. | |
| const std::vector< char > & | getNotationMetadata () const |
| Optional NotationMetadata.xml content. | |
| const dom::EmbeddedGraphicsMap & | getEmbeddedGraphics () const |
| Embedded graphics keyed by graphic cmper. | |
| dom::EmbeddedGraphicsMap | takeEmbeddedGraphics () |
| Move out embedded graphics. | |
| template<typename Container , typename = IsCharContainer<Container>> | |
| void | setNotationMetadata (const Container ¬ationMetadata) |
| Set NotationMetadata.xml by copying from a 1-byte-element buffer. | |
| void | setNotationMetadata (std::vector< char > &¬ationMetadata) |
Set NotationMetadata.xml by moving an existing std::vector<char>. | |
| void | setEmbeddedGraphics (EmbeddedGraphicFiles &&embeddedGraphicFiles) |
Set embedded graphics by parsing moved archive files in cmper.ext form. | |
Public Attributes | |
| dom::PartVoicingPolicy | partVoicingPolicy = dom::PartVoicingPolicy::Ignore |
| Part voicing behavior for this document. | |
Optional arguments for document creation.
|
inline |
Construct options with a part-voicing policy.
| policy | The policy to apply for this document. |
|
inline |
Construct options by moving in NotationMetadata.xml bytes.
| notationMetadata | Buffer containing NotationMetadata.xml. |
|
inline |
Construct options by moving embedded graphic files.
| embeddedGraphicFiles | Embedded graphic files in cmper.ext form. |
|
inline |
Construct options by copying a 1-byte-element metadata buffer.
| Container | A contiguous container with 1-byte element type. |
| notationMetadata | Buffer containing NotationMetadata.xml. |
|
inline |
Set embedded graphics by parsing moved archive files in cmper.ext form.
| embeddedGraphicFiles | Embedded graphic files from the musx archive. |
|
inline |
Set NotationMetadata.xml by copying from a 1-byte-element buffer.
| Container | A contiguous container with 1-byte element type. |
| notationMetadata | Buffer containing NotationMetadata.xml. |
|
inline |
Set NotationMetadata.xml by moving an existing std::vector<char>.
| notationMetadata | Buffer containing NotationMetadata.xml. |