arcsdec::v_1_0_0::MetadataParser class final

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