13#ifndef ZYPP_HISTORYLOGDATA_H_
14#define ZYPP_HISTORYLOGDATA_H_
22#include <zypp/CheckSum.h>
26#define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S"
74 const std::string & asString(
bool pad =
false)
const;
108 typedef shared_ptr<HistoryLogData>
Ptr;
202 typedef shared_ptr<HistoryLogDataInstall>
Ptr;
203 typedef shared_ptr<const HistoryLogDataInstall>
constPtr;
224 std::string
name()
const;
227 std::string
reqby()
const;
242 typedef shared_ptr<HistoryLogPatchStateChange>
Ptr;
243 typedef shared_ptr<const HistoryLogPatchStateChange>
constPtr;
266 std::string
name()
const;
286 typedef shared_ptr<HistoryLogDataRemove>
Ptr;
287 typedef shared_ptr<const HistoryLogDataRemove>
constPtr;
306 std::string
name()
const;
309 std::string
reqby()
const;
321 typedef shared_ptr<HistoryLogDataRepoAdd>
Ptr;
322 typedef shared_ptr<const HistoryLogDataRepoAdd>
constPtr;
339 std::string
alias()
const;
352 typedef shared_ptr<HistoryLogDataRepoRemove>
Ptr;
353 typedef shared_ptr<const HistoryLogDataRepoRemove>
constPtr;
369 std::string
alias()
const;
381 typedef shared_ptr<HistoryLogDataRepoAliasChange>
Ptr;
382 typedef shared_ptr<const HistoryLogDataRepoAliasChange>
constPtr;
412 typedef shared_ptr<HistoryLogDataRepoUrlChange>
Ptr;
413 typedef shared_ptr<const HistoryLogDataRepoUrlChange>
constPtr;
430 std::string
alias()
const;
444 typedef shared_ptr<HistoryLogDataStampCommand>
Ptr;
445 typedef shared_ptr<const HistoryLogDataStampCommand>
constPtr;
Provides API related macros.
RepoManager implementation.
Store and operate on date (time_t).
Edition represents [epoch:]version[-release]
A zypp history log line for an installed packaged.
shared_ptr< const HistoryLogDataInstall > constPtr
std::string userdata() const
userdata/transactionID
Index
< indices of known fields
@ EDITION_INDEX
package edition
@ REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
@ ARCH_INDEX
package architecture
@ USERDATA_INDEX
userdata/transactionID
@ REPOALIAS_INDEX
repository providing the package
@ CHEKSUM_INDEX
package checksum
CheckSum checksum() const
package checksum
std::string name() const
package name
Arch arch() const
package architecture
std::string reqby() const
requested by (user@hostname, pid:appname, or empty (solver))
std::string repoAlias() const
repository providing the package
Edition edition() const
package edition
shared_ptr< HistoryLogDataInstall > Ptr
A zypp history log line for a removed packge.
Arch arch() const
package architecture
Index
< indices of known fields
@ REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
@ ARCH_INDEX
package architecture
@ USERDATA_INDEX
userdata/transactionID
@ EDITION_INDEX
package edition
Edition edition() const
package edition
std::string name() const
package name
std::string userdata() const
userdata/transactionID
std::string reqby() const
requested by (user@hostname, pid:appname, or empty (solver))
shared_ptr< HistoryLogDataRemove > Ptr
shared_ptr< const HistoryLogDataRemove > constPtr
A zypp history log line for an added repository.
shared_ptr< HistoryLogDataRepoAdd > Ptr
shared_ptr< const HistoryLogDataRepoAdd > constPtr
Index
< indices of known fields
@ URL_INDEX
repository url
@ ALIAS_INDEX
repository alias
@ USERDATA_INDEX
userdata/transactionID
std::string alias() const
repository alias
Url url() const
repository url
std::string userdata() const
userdata/transactionID
A zypp history log line for a repo alias change.
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
std::string userdata() const
userdata/transactionID
std::string oldAlias() const
repositories old alias
Index
< indices of known fields
@ NEWALIAS_INDEX
repositories new alias
@ USERDATA_INDEX
userdata/transactionID
@ OLDALIAS_INDEX
repositories old alias
std::string newAlias() const
repositories new alias
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
A zypp history log line for a removed repository.
Index
< indices of known fields
@ USERDATA_INDEX
userdata/transactionID
@ ALIAS_INDEX
repository alias
std::string alias() const
repository alias
std::string userdata() const
userdata/transactionID
shared_ptr< const HistoryLogDataRepoRemove > constPtr
shared_ptr< HistoryLogDataRepoRemove > Ptr
A zypp history log line for a repo url change.
Url newUrl() const
repositories new url
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
std::string alias() const
repository alias
Index
< indices of known fields
@ NEWURL_INDEX
repositories new url
@ USERDATA_INDEX
userdata/transactionID
@ ALIAS_INDEX
repository alias
std::string userdata() const
userdata/transactionID
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
A zypp history log line identifying the program that triggered the following commit.
std::string command() const
the commandline executed
shared_ptr< const HistoryLogDataStampCommand > constPtr
std::string executedBy() const
executed by user@hostname
shared_ptr< HistoryLogDataStampCommand > Ptr
Index
< indices of known fields
@ COMMAND_INDEX
the commandline executed
@ USER_INDEX
executed by user@hostname
@ USERDATA_INDEX
userdata/transactionID
std::string userdata() const
userdata/transactionID
A zypp history log line split into fields.
HistoryActionID action() const
HistoryActionID (or NONE_e if unknown)
FieldVector::const_iterator const_iterator
FieldVector::size_type size_type
shared_ptr< HistoryLogData > Ptr
static Ptr create(FieldVector &fields_r)
Factory method creating HistoryLogData classes.
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
const_iterator end() const
Iterator pointing behind the last element in vector.
virtual ~HistoryLogData()
Dtor.
shared_ptr< const HistoryLogData > constPtr
const std::string & at(size_type idx_r) const
Access (required) field by number.
const std::string & optionalAt(size_type idx_r) const
Access (optional) field by number.
const_iterator begin() const
Iterator pointing to 1st element in vector (or end()).
Index
< indices of known fields
@ ACTION_INDEX
HistoryActionID.
const std::string & operator[](size_type idx_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool empty() const
Whether FieldVector is empty.
RWCOW_pointer< Impl > _pimpl
Implementation class.
std::vector< std::string > FieldVector
size_type size() const
Number of fields in vector.
A zypp history log line for an installed packaged.
std::string repoAlias() const
repository providing the package
std::string newstate() const
std::string name() const
package name
std::string userdata() const
userdata/transactionID
shared_ptr< const HistoryLogPatchStateChange > constPtr
Patch::Category category() const
Arch arch() const
package architecture
Index
< indices of known fields
@ OLDSTATE_INDEX
the state of the patch before the change
@ CATEGORY_INDEX
patch category
@ EDITION_INDEX
patch edition
@ ARCH_INDEX
patch architecture
@ NEWSTATE_INDEX
the state of the patch after the change
@ SEVERITY_INDEX
patch severity
@ REPOALIAS_INDEX
repository providing the patch
@ USERDATA_INDEX
userdata/transactionID
Edition edition() const
package edition
Patch::SeverityFlag severity() const
std::string oldstate() const
shared_ptr< HistoryLogPatchStateChange > Ptr
SeverityFlag
Possible severity levels for (security) patches.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Enumeration of known history actions.
static const HistoryActionID REPO_REMOVE
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
static const HistoryActionID PATCH_STATE_CHANGE
static const HistoryActionID REMOVE
static const HistoryActionID NONE
static const HistoryActionID STAMP_COMMAND
static const HistoryActionID REPO_ADD
static const HistoryActionID REPO_CHANGE_ALIAS
static const HistoryActionID REPO_CHANGE_URL
static HistoryActionID::ID parse(const std::string &strval_r)
static const HistoryActionID INSTALL
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
RW_pointer supporting 'copy on write' functionality.