|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
ResourceFactory specialization for XML-format resource files. More...
#include <ResourceFactoryXML.h>
Protected Member Functions | |
| bool | FileHasValidFormatAndReader (std::shared_ptr< File > file, std::shared_ptr< Ship::ResourceInitData > initData) override |
| Validates that the file uses the XML format and contains an XMLDocument. | |
Additional Inherited Members | |
Public Member Functions inherited from Ship::ResourceFactory | |
| virtual std::shared_ptr< IResource > | ReadResource (std::shared_ptr< File > file, std::shared_ptr< ResourceInitData > initData)=0 |
| Deserializes a File into an IResource. | |
ResourceFactory specialization for XML-format resource files.
Validates that the file carries an XMLDocument and that its format tag equals RESOURCE_FORMAT_XML. Subclass this when implementing a factory that deserializes an XML-based resource.
|
overrideprotectedvirtual |
Validates that the file uses the XML format and contains an XMLDocument.
| file | Raw file data to inspect. |
| initData | Metadata from the file header. |
Implements Ship::ResourceFactory.