|
MLBookProc 1.2.1
|
#include <FB2Parser.h>


Public Member Functions | |
| FB2Parser (const std::shared_ptr< AuxFunc > &af) | |
| FB2Parser constructor. | |
| BookParseEntry | fb2_parser (const std::string &book) |
| Parses fb2 book. | |
| std::shared_ptr< BookInfoEntry > | fb2_book_info (const std::string &book) |
| Returns fb2 book info and cover. | |
| Public Member Functions inherited from XMLParser | |
| XMLParser (const std::shared_ptr< AuxFunc > &af) | |
| XMLParser constructor. | |
| std::vector< XMLTag > | get_tag (const std::string &book, const std::string &tag_id) |
| Returns all tags with particular name. | |
| std::string | get_book_encoding (const std::string &book) |
| Returns XML document encoding. | |
| std::string | get_element_attribute (const std::string &element, const std::string &attr_name) |
| Returns XML tag attribute if it was found. | |
| std::vector< XMLTag > | listAllTags (const std::string &book) |
| Parses XML document. | |
| void | searchTag (const std::vector< XMLTag > &list, const std::string &tag_id, std::vector< XMLTag > &result) |
| Searches tag in tag list. | |
| void | htmlSymbolsReplacement (std::string &book) |
| Replaces symbols encoded by "&..." sequences. | |
| void | removeAllTags (std::string &book) |
| Removes all tag elements from XML document. | |
The FB2Parser class.
This class contains various methods for fb2 books parsing. In most cases you do not need to use this class directly. Use CreateCollection, RefreshCollection and BookInfo instead.
| FB2Parser::FB2Parser | ( | const std::shared_ptr< AuxFunc > & | af | ) |
| std::shared_ptr< BookInfoEntry > FB2Parser::fb2_book_info | ( | const std::string & | book | ) |
Returns fb2 book info and cover.
| book | fb2 books file content. |
| BookParseEntry FB2Parser::fb2_parser | ( | const std::string & | book | ) |
Parses fb2 book.
| book | fb2 file content. |