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

The RTFParser class. More...

#include <RTFParser.h>

Public Member Functions

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

Detailed Description

The RTFParser class.

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

Constructor & Destructor Documentation

◆ RTFParser()

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

RTFParser constructor.

Parameters
mlbpSmart pointer to MLBookProc object.

Member Function Documentation

◆ getBookInfo()

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

Gets extra information from rtf file.

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

◆ parseBook()

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

Parses rtf file.

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