Public Member Functions | |
Impl (const Pathname &historyFile, const ProcessItem &callback) | |
~Impl () | |
HistoryItem::Ptr | createHistoryItem (HistoryItem::FieldVector &fields) |
void | parseLine (const string &line, unsigned int lineNr) |
void | readAll (const ProgressData::ReceiverFnc &progress) |
void | readFrom (const Date &date, const ProgressData::ReceiverFnc &progress) |
void | readFromTo (const Date &fromDate, const Date &toDate, const ProgressData::ReceiverFnc &progress) |
Public Attributes | |
Pathname | _filename |
ProcessItem | _callback |
bool | _ignoreInvalid |
Definition at line 38 of file HistoryLogReader.cc.
zypp::parser::HistoryLogReader::Impl::Impl | ( | const Pathname & | historyFile, | |
const ProcessItem & | callback | |||
) |
Definition at line 59 of file HistoryLogReader.cc.
zypp::parser::HistoryLogReader::Impl::~Impl | ( | ) | [inline] |
Definition at line 41 of file HistoryLogReader.cc.
HistoryItem::Ptr zypp::parser::HistoryLogReader::Impl::createHistoryItem | ( | HistoryItem::FieldVector & | fields | ) |
Definition at line 65 of file HistoryLogReader.cc.
References zypp::HistoryActionID::INSTALL_e, zypp::HistoryActionID::REMOVE_e, zypp::HistoryActionID::REPO_ADD_e, zypp::HistoryActionID::REPO_CHANGE_ALIAS_e, zypp::HistoryActionID::REPO_CHANGE_URL_e, zypp::HistoryActionID::REPO_REMOVE_e, zypp::HistoryActionID::toEnum(), zypp::str::trim(), and WAR.
Referenced by parseLine().
void zypp::parser::HistoryLogReader::Impl::parseLine | ( | const string & | line, | |
unsigned int | lineNr | |||
) |
Definition at line 101 of file HistoryLogReader.cc.
References _callback, _ignoreInvalid, zypp::Exception::addHistory(), createHistoryItem(), ERR, zypp::str::form(), zypp::Exception::remember(), zypp::str::splitEscaped(), ZYPP_CAUGHT, and ZYPP_THROW.
Referenced by readAll(), readFrom(), and readFromTo().
void zypp::parser::HistoryLogReader::Impl::readAll | ( | const ProgressData::ReceiverFnc & | progress | ) |
Definition at line 149 of file HistoryLogReader.cc.
References _filename, zypp::iostr::EachLine::lineNo(), zypp::iostr::EachLine::next(), parseLine(), zypp::ProgressData::sendTo(), zypp::ProgressData::tick(), zypp::ProgressData::toMax(), and zypp::ProgressData::toMin().
void zypp::parser::HistoryLogReader::Impl::readFrom | ( | const Date & | date, | |
const ProgressData::ReceiverFnc & | progress | |||
) |
Definition at line 170 of file HistoryLogReader.cc.
References _filename, HISTORY_LOG_DATE_FORMAT, zypp::iostr::EachLine::lineNo(), zypp::iostr::EachLine::next(), parseLine(), zypp::ProgressData::sendTo(), zypp::ProgressData::tick(), zypp::ProgressData::toMax(), and zypp::ProgressData::toMin().
void zypp::parser::HistoryLogReader::Impl::readFromTo | ( | const Date & | fromDate, | |
const Date & | toDate, | |||
const ProgressData::ReceiverFnc & | progress | |||
) |
Definition at line 205 of file HistoryLogReader.cc.
References _filename, HISTORY_LOG_DATE_FORMAT, zypp::iostr::EachLine::lineNo(), zypp::iostr::EachLine::next(), parseLine(), zypp::ProgressData::sendTo(), zypp::ProgressData::tick(), zypp::ProgressData::toMax(), and zypp::ProgressData::toMin().
Definition at line 54 of file HistoryLogReader.cc.
Referenced by readAll(), readFrom(), and readFromTo().