Factory class for creating Document
objects from XML.
More...
#include <DocumentFactory.h>
|
template<typename XmlDocumentType > |
static DocumentPtr | create (const std::vector< char > &xmlBuffer) |
| Creates a Document object from an XML element.
|
|
Factory class for creating Document
objects from XML.
◆ create()
template<typename XmlDocumentType >
static DocumentPtr musx::factory::DocumentFactory::create |
( |
const std::vector< char > & |
xmlBuffer | ) |
|
|
inlinestatic |
Creates a Document
object from an XML element.
- Parameters
-
xmlBuffer | Buffer containing EnigmaXML for a musx file. |
- Returns
- A fully populated
Document
object.
- Exceptions
-
std::invalid_argument | If required nodes or attributes are missing or invalid. |