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

The TXTParser class. More...

#include <TXTParser.h>

Public Member Functions

 TXTParser (const std::shared_ptr< MLBookProc > &mlbp)
 TXTParser constructor.
UDBElement parseBook (const std::filesystem::path &file_path)
UDBase getBookInfo (const std::filesystem::path &file_path)

Detailed Description

The TXTParser class.

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

Constructor & Destructor Documentation

◆ TXTParser()

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

TXTParser constructor.

Parameters
mlbpSmart pointer to MLBookProc object.

Member Function Documentation

◆ getBookInfo()

UDBase TXTParser::getBookInfo ( const std::filesystem::path & file_path)

Gets extra info from file.

Parameters
file_pathPath to file.
Returns
UDBase containing information.

◆ parseBook()

UDBElement TXTParser::parseBook ( const std::filesystem::path & file_path)

Parses file.

Parameters
file_pathPath to file to be parsed.
Returns
BaseID::Book object.