|
MUSX Document Model
|
Factory class for creating Document objects from XML.
More...
#include <DocumentFactory.h>
Inheritance diagram for musx::factory::DocumentFactory:Static Public Member Functions | |
| template<typename XmlDocumentType > | |
| static DocumentPtr | create (const char *data, size_t size, dom::PartVoicingPolicy partVoicingPolicy=dom::PartVoicingPolicy::Ignore) |
Creates a Document object from an XML buffer. | |
| template<typename XmlDocumentType > | |
| static DocumentPtr | create (const std::vector< char > &xmlBuffer, dom::PartVoicingPolicy partVoicingPolicy=dom::PartVoicingPolicy::Ignore) |
Creates a Document object from an XML buffer. | |
Factory class for creating Document objects from XML.
|
inlinestatic |
Creates a Document object from an XML buffer.
| data | Pointer to a buffer containing EnigmaXML for a musx file. |
| size | The size of the buffer. |
| partVoicingPolicy | Whether to ignore or apply part voicing as defined by dom::others::PartVoicing (when it exists). |
Document object. | std::invalid_argument | If required nodes or attributes are missing or invalid. |
|
inlinestatic |
Creates a Document object from an XML buffer.
| xmlBuffer | Buffer containing EnigmaXML for a musx file. |
| partVoicingPolicy | Whether to ignore or apply part voicing as defined by dom::others::PartVoicing (when it exists). |
Document object. | std::invalid_argument | If required nodes or attributes are missing or invalid. |