MLBookProc 1.3
Loading...
Searching...
No Matches
DublinCoreParser Class Reference

The DublinCoreParser class. More...

#include <DublinCoreParser.h>

Public Member Functions

 DublinCoreParser ()
 DublinCoreParser constructor.
virtual ~DublinCoreParser ()
 DublinCoreParser destructor.
std::string dcTitle (const std::vector< XMLElement > &elements)
 Gets book title.
std::string dcAuthor (const std::vector< XMLElement > &elements)
 Gets book author.
std::string dcGenre (const std::vector< XMLElement > &elements)
 Gets book genre.
std::string dcDate (const std::vector< XMLElement > &elements)
 Gets book creation date.
std::string dcDescription (const std::vector< XMLElement > &elements)
 Gets book description.
std::string dcLanguage (const std::vector< XMLElement > &elements)
 Gets book language.
std::string dcTranslator (const std::vector< XMLElement > &elements)
 Gets book translator.
std::string dcPublisher (const std::vector< XMLElement > &elements)
 Gets file publisher.
std::string dcIdentifier (const std::vector< XMLElement > &elements)
 Gets book identifier.
std::string dcSource (const std::vector< XMLElement > &elements)
 Gets book source.

Detailed Description

The DublinCoreParser class.

Auxiliary class. Contains methods for DublinCore files parsing. This class is used in ODTParser and EPUBParser. You do not need to call this class methods directly.

Member Function Documentation

◆ dcAuthor()

std::string DublinCoreParser::dcAuthor ( const std::vector< XMLElement > & elements)

Gets book author.

This method can be used to get author(s) from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
Author if any, empty string otherwise.

◆ dcDate()

std::string DublinCoreParser::dcDate ( const std::vector< XMLElement > & elements)

Gets book creation date.

This method can be used to get creation date from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
File creation date if any, empty otherwise.

◆ dcDescription()

std::string DublinCoreParser::dcDescription ( const std::vector< XMLElement > & elements)

Gets book description.

This method can be used to get book description from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
Book description if any, empty otherwise.

◆ dcGenre()

std::string DublinCoreParser::dcGenre ( const std::vector< XMLElement > & elements)

Gets book genre.

This method can be used to get genre(s) from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
Gernre if any, empty string otherwise.

◆ dcIdentifier()

std::string DublinCoreParser::dcIdentifier ( const std::vector< XMLElement > & elements)

Gets book identifier.

This method can be used to get identifier from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
Book identifier if any, empty otherwise.

◆ dcLanguage()

std::string DublinCoreParser::dcLanguage ( const std::vector< XMLElement > & elements)

Gets book language.

This method can be used to get language from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
File language if set, empty otherwise.

◆ dcPublisher()

std::string DublinCoreParser::dcPublisher ( const std::vector< XMLElement > & elements)

Gets file publisher.

This method can be used to get publisher from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
File publisher if set, empty otherwise.

◆ dcSource()

std::string DublinCoreParser::dcSource ( const std::vector< XMLElement > & elements)

Gets book source.

This method can be used to get book source from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
Book source if set, empty otherwise.

◆ dcTitle()

std::string DublinCoreParser::dcTitle ( const std::vector< XMLElement > & elements)

Gets book title.

This method can be used to get title from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
Title if any, empty string otherwise.

◆ dcTranslator()

std::string DublinCoreParser::dcTranslator ( const std::vector< XMLElement > & elements)

Gets book translator.

This method can be used to get translator name from DublinCore file.

Parameters
elementsVector of XML elements, obtained by XMLParserCPP::parseDocument() method.
Returns
Translator if any, empty string otherwise.