class final
#include <metaparser.hpp>
v_1_0_0::MetadataParser Parse metadata files and provide the content as a ToC instance.
Base classes
- class v_1_0_0::FileReader
- Abstract base class for FileReaders.
Constructors, destructors, conversion operators
- MetadataParser(std::unique_ptr<MetadataParserImpl> impl)
- Constructor.
Public functions
- auto parse(const std::string& filename) -> std::unique_ptr<ToC>
- Parses a metadata file.
Function documentation
arcsdec:: v_1_0_0:: MetadataParser:: MetadataParser(std::unique_ptr<MetadataParserImpl> impl)
Constructor.
Parameters | |
---|---|
impl in | The concrete implementation of the MetadataParser |
std::unique_ptr<ToC> arcsdec:: v_1_0_0:: MetadataParser:: parse(const std::string& filename)
Parses a metadata file.
Parameters | |
---|---|
filename in | The file to parse |
Returns | The ToC information represented by the file |
Exceptions | |
FileReadException | If the file could not be read |
MetadataParseException | If the metadata could not be parsed |