Factory class for creating Document
objects from XML.
More...
#include <DocumentFactory.h>
|
template<typename XmlDocumentType > |
static DocumentPtr | create (const char *data, size_t size) |
| Creates a Document object from an XML buffer.
|
|
template<typename XmlDocumentType > |
static DocumentPtr | create (const std::vector< char > &xmlBuffer) |
| Creates a Document object from an XML buffer.
|
|
Factory class for creating Document
objects from XML.
◆ create() [1/2]
template<typename XmlDocumentType >
static DocumentPtr musx::factory::DocumentFactory::create |
( |
const char * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inlinestatic |
Creates a Document
object from an XML buffer.
- Parameters
-
data | Pointer to a buffer containing EnigmaXML for a musx file. |
size | The size of the buffer. |
- Returns
- A fully populated
Document
object.
- Exceptions
-
std::invalid_argument | If required nodes or attributes are missing or invalid. |
◆ create() [2/2]
template<typename XmlDocumentType >
static DocumentPtr musx::factory::DocumentFactory::create |
( |
const std::vector< char > & |
xmlBuffer | ) |
|
|
inlinestatic |
Creates a Document
object from an XML buffer.
- 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. |