MLBookProc 2.1
Loading...
Searching...
No Matches
MOBIParser Class Reference

The MOBIParser class. More...

#include <MOBIParser.h>

Public Member Functions

 MOBIParser (const std::shared_ptr< MLBookProc > &mlbp)
 MOBIParser constructor.
UDBElement parseBook (const std::string &book_content)
UDBase getBookInfo (const std::string &book_content)

Detailed Description

The MOBIParser class.

This class contains methods for mobi files parsing. In most cases you do not need to use it directly. Usd CreateCollection and BookInfo instead.

Constructor & Destructor Documentation

◆ MOBIParser()

MOBIParser::MOBIParser ( const std::shared_ptr< MLBookProc > & mlbp)

MOBIParser constructor.

Parameters
mlbpSmart pointer to MLBookProc object.

Member Function Documentation

◆ getBookInfo()

UDBase MOBIParser::getBookInfo ( const std::string & book_content)

Gets extra information from mobi file.

Note
This method can throw std::exception in case of errors.
Parameters
book_contentFile content.
Returns
UDBase object containing found information.

◆ parseBook()

UDBElement MOBIParser::parseBook ( const std::string & book_content)

Parses mobi file.

Note
This method can throw std::exception in case of errors.
Parameters
book_contentFile content.
Returns
BaseID::Book object.