1#ifndef PARSER_XMLPARSER_HPP
2#define PARSER_XMLPARSER_HPP
22 void ParseData(
const std::filesystem::path& filepath)
override;
23 void ParseData(std::istream& input)
override;
49 std::vector<std::pair<int, db::LogEvent::EventItems>>
eventBatch;
Interface definitions for data parsing components.
std::vector< std::pair< std::string, std::string > > EventItems
A collection of key-value pairs representing event data (eventFieldName, data).
Definition LogEvent.hpp:101
Abstract base class for all data parsing implementations.
Definition IDataParser.hpp:110
Definition xmlParser.hpp:17
uint32_t m_currentProgress
Definition xmlParser.hpp:28
void ParseData(const std::filesystem::path &filepath) override
Loads and parses XML data from a file path.
Definition xmlParser.cpp:170
XmlParser()
Definition xmlParser.cpp:161
uint32_t GetTotalProgress() const override
Gets the total expected progress value.
Definition xmlParser.cpp:345
virtual ~XmlParser() override=default
uint32_t GetCurrentProgress() const override
Gets the current parsing progress.
Definition xmlParser.cpp:340
Data parsing components and interfaces.
Definition IControler.hpp:22
Definition xmlParser.hpp:32
ParserState()
Definition xmlParser.hpp:52
int eventId
Definition xmlParser.hpp:39
size_t lastProgressBytes
Definition xmlParser.hpp:38
std::vector< std::pair< int, db::LogEvent::EventItems > > eventBatch
Definition xmlParser.hpp:49
bool insideEvent
Definition xmlParser.hpp:42
XML_Parser parserHandle
Definition xmlParser.hpp:46
size_t eventsSinceLastNotify
Definition xmlParser.hpp:37
std::string discoveredEventElement
Definition xmlParser.hpp:43
size_t totalBytes
Definition xmlParser.hpp:35
std::string currentText
Definition xmlParser.hpp:34
size_t bytesProcessed
Definition xmlParser.hpp:36
std::string currentElement
Definition xmlParser.hpp:33
db::LogEvent::EventItems eventItems
Definition xmlParser.hpp:44
int depth
Definition xmlParser.hpp:40
bool insideRoot
Definition xmlParser.hpp:41