#include <xmlParser.hpp>
◆ XmlParser()
| parser::XmlParser::XmlParser |
( |
| ) |
|
◆ ~XmlParser()
| virtual parser::XmlParser::~XmlParser |
( |
| ) |
|
|
overridevirtualdefault |
◆ GetCurrentProgress()
| uint32_t parser::XmlParser::GetCurrentProgress |
( |
| ) |
const |
|
overridevirtual |
Gets the current parsing progress.
- Returns
- uint32_t Current progress value (meaning depends on implementation)
- Note
- Progress values should be used with GetTotalProgress() for percentage calculations
Implements parser::IDataParser.
◆ GetFileMetadata()
| virtual std::vector< std::pair< std::string, std::string > > parser::IDataParser::GetFileMetadata |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ GetTotalProgress()
| uint32_t parser::XmlParser::GetTotalProgress |
( |
| ) |
const |
|
overridevirtual |
Gets the total expected progress value.
- Returns
- uint32_t Maximum progress value when parsing is complete
- Note
- Return 0 if total progress cannot be determined in advance
Implements parser::IDataParser.
◆ NotifyNewEvent()
| void parser::IDataParser::NotifyNewEvent |
( |
db::LogEvent && |
event | ) |
|
|
inlineinherited |
◆ NotifyNewEventBatch()
| void parser::IDataParser::NotifyNewEventBatch |
( |
std::vector< std::pair< int, db::LogEvent::EventItems > > && |
eventBatch | ) |
|
|
inlineinherited |
◆ NotifyProgressUpdated()
| void parser::IDataParser::NotifyProgressUpdated |
( |
| ) |
|
|
inlineinherited |
◆ ParseData() [1/2]
| void parser::XmlParser::ParseData |
( |
const std::filesystem::path & |
filepath | ) |
|
|
overridevirtual |
◆ ParseData() [2/2]
| void parser::XmlParser::ParseData |
( |
std::istream & |
input | ) |
|
|
overridevirtual |
◆ RegisterObserver()
Registers an observer to receive parsing notifications.
- Parameters
-
| observer | Pointer to the observer object |
- Note
- The observer must remain valid until parsing completes or it's unregistered
-
Duplicate observers are automatically prevented
◆ UnregisterObserver()
◆ m_currentProgress
| uint32_t parser::XmlParser::m_currentProgress = 0 |
◆ observers
The documentation for this class was generated from the following files: