Go to the documentation of this file.
13 #ifndef ZYPP_HISTORYLOGDATA_H_
14 #define ZYPP_HISTORYLOGDATA_H_
18 #include <zypp/APIConfig.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;
A zypp history log line for an installed packaged.
@ CHEKSUM_INDEX
package checksum
shared_ptr< const HistoryLogData > constPtr
std::string userdata() const
userdata/transactionID
HistoryLogData(FieldVector &fields_r, size_type expect_r=2)
Ctor moving FieldVector (via swap).
A zypp history log line for a removed repository.
shared_ptr< const HistoryLogDataRepoRemove > constPtr
std::string userdata() const
userdata/transactionID
@ USERDATA_INDEX
userdata/transactionID
@ NEWALIAS_INDEX
repositories new alias
std::string oldstate() const
const std::string & asString(bool pad=false) const
static const HistoryActionID REPO_CHANGE_ALIAS
shared_ptr< const HistoryLogDataRepoAdd > constPtr
@ REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
std::string reqby() const
requested by (user@hostname, pid:appname, or empty (solver))
FieldVector::size_type size_type
RWCOW_pointer< Impl > _pimpl
Implementation class.
Arch arch() const
package architecture
Index
< indices of known fields
@ USERDATA_INDEX
userdata/transactionID
@ COMMAND_INDEX
the commandline executed
std::vector< std::string > FieldVector
Edition edition() const
package edition
Url url() const
repository url
size_type size() const
Number of fields in vector.
HistoryLogDataRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
static const HistoryActionID PATCH_STATE_CHANGE
std::string repoAlias() const
repository providing the package
A zypp history log line for a removed packge.
shared_ptr< const HistoryLogDataStampCommand > constPtr
shared_ptr< HistoryLogDataStampCommand > Ptr
static const HistoryActionID REPO_ADD
Patch::SeverityFlag severity() const
Edition represents [epoch:]version[-release]
@ CATEGORY_INDEX
patch category
static const HistoryActionID REPO_CHANGE_URL
Patch::Category category() const
HistoryLogDataRepoAliasChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
std::string name() const
package name
shared_ptr< HistoryLogPatchStateChange > Ptr
A zypp history log line split into fields.
std::string alias() const
repository alias
FieldVector::const_iterator const_iterator
const_iterator begin() const
Iterator pointing to 1st element in vector (or end()).
@ ALIAS_INDEX
repository alias
@ URL_INDEX
repository url
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...
@ USERDATA_INDEX
userdata/transactionID
virtual ~HistoryLogData()
Dtor.
std::string alias() const
repository alias
A zypp history log line for a repo url change.
@ ARCH_INDEX
patch architecture
std::string oldAlias() const
repositories old alias
Edition edition() const
package edition
SeverityFlag
Possible severity levels for (security) patches.
@ ALIAS_INDEX
repository alias
Edition edition() const
package edition
Url newUrl() const
repositories new url
shared_ptr< HistoryLogDataRepoAdd > Ptr
@ EDITION_INDEX
package edition
shared_ptr< const HistoryLogPatchStateChange > constPtr
std::string userdata() const
userdata/transactionID
shared_ptr< HistoryLogDataInstall > Ptr
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
static const HistoryActionID NONE
Arch arch() const
package architecture
const_iterator end() const
Iterator pointing behind the last element in vector.
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
@ SEVERITY_INDEX
patch severity
static const HistoryActionID REMOVE
std::string repoAlias() const
repository providing the package
@ REPOALIAS_INDEX
repository providing the patch
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
@ REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
@ USERDATA_INDEX
userdata/transactionID
A zypp history log line identifying the program that triggered the following commit.
@ OLDALIAS_INDEX
repositories old alias
@ NEWSTATE_INDEX
the state of the patch after the change
std::string reqby() const
requested by (user@hostname, pid:appname, or empty (solver))
HistoryActionID action() const
HistoryActionID (or NONE_e if unknown)
@ EDITION_INDEX
patch edition
std::string userdata() const
userdata/transactionID
HistoryLogPatchStateChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
static HistoryActionID::ID parse(const std::string &strval_r)
@ USERDATA_INDEX
userdata/transactionID
Easy-to use interface to the ZYPP dependency resolver.
HistoryLogDataInstall(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
HistoryLogDataRepoUrlChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
@ ARCH_INDEX
package architecture
@ ALIAS_INDEX
repository alias
A zypp history log line for an added repository.
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
static const HistoryActionID REPO_REMOVE
@ OLDSTATE_INDEX
the state of the patch before the change
@ NEWURL_INDEX
repositories new url
@ REPOALIAS_INDEX
repository providing the package
std::string userdata() const
userdata/transactionID
const std::string & at(size_type idx_r) const
Access (required) field by number.
std::string userdata() const
userdata/transactionID
@ USER_INDEX
executed by user@hostname
CheckSum checksum() const
package checksum
static const HistoryActionID INSTALL
static const HistoryActionID STAMP_COMMAND
@ USERDATA_INDEX
userdata/transactionID
const std::string & optionalAt(size_type idx_r) const
Access (optional) field by number.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Store and operate on date (time_t).
std::string executedBy() const
executed by user@hostname
std::string userdata() const
userdata/transactionID
static Ptr create(FieldVector &fields_r)
Factory method creating HistoryLogData classes.
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
HistoryLogDataStampCommand(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
std::string name() const
package name
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
HistoryLogDataRepoRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
std::string newAlias() const
repositories new alias
bool empty() const
Whether FieldVector is empty.
shared_ptr< HistoryLogDataRemove > Ptr
shared_ptr< const HistoryLogDataInstall > constPtr
Arch arch() const
package architecture
std::string userdata() const
userdata/transactionID
A zypp history log line for a repo alias change.
@ EDITION_INDEX
package edition
String related utilities and Regular expression matching.
shared_ptr< HistoryLogDataRepoRemove > Ptr
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
A zypp history log line for an installed packaged.
Enumeration of known history actions.
@ ACTION_INDEX
HistoryActionID.
@ ARCH_INDEX
package architecture
std::string command() const
the commandline executed
shared_ptr< const HistoryLogDataRemove > constPtr
@ USERDATA_INDEX
userdata/transactionID
std::string alias() const
repository alias
std::string name() const
package name
std::string newstate() const
@ USERDATA_INDEX
userdata/transactionID
shared_ptr< HistoryLogData > Ptr