13#ifndef ZYPP_HISTORYLOGDATA_H_
14#define ZYPP_HISTORYLOGDATA_H_
26#define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S"
74 const std::string &
asString(
bool pad =
false)
const;
169 const std::string & at( size_type idx_r )
const;
224 std::string name()
const;
227 std::string reqby()
const;
228 std::string repoAlias()
const;
230 std::string userdata()
const;
266 std::string name()
const;
269 std::string repoAlias()
const;
272 std::string oldstate()
const;
273 std::string newstate()
const;
274 std::string userdata()
const;
306 std::string name()
const;
309 std::string reqby()
const;
310 std::string userdata()
const;
339 std::string alias()
const;
341 std::string userdata()
const;
369 std::string alias()
const;
370 std::string userdata()
const;
399 std::string oldAlias()
const;
400 std::string newAlias()
const;
401 std::string userdata()
const;
430 std::string alias()
const;
432 std::string userdata()
const;
462 std::string executedBy()
const;
463 std::string command()
const;
464 std::string userdata()
const;
Store and operate on date (time_t).
Edition represents [epoch:]version[-release]
HistoryLogDataInstall(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< const HistoryLogDataInstall > constPtr
shared_ptr< HistoryLogDataInstall > Ptr
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
shared_ptr< const HistoryLogDataRemove > constPtr
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
HistoryLogDataRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< HistoryLogDataRemove > Ptr
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
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
Index
< indices of known fields
@ NEWALIAS_INDEX
repositories new alias
@ USERDATA_INDEX
userdata/transactionID
@ OLDALIAS_INDEX
repositories old alias
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
HistoryLogDataRepoAliasChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Index
< indices of known fields
@ USERDATA_INDEX
userdata/transactionID
@ ALIAS_INDEX
repository alias
HistoryLogDataRepoRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< const HistoryLogDataRepoRemove > constPtr
shared_ptr< HistoryLogDataRepoRemove > Ptr
Index
< indices of known fields
@ NEWURL_INDEX
repositories new url
@ USERDATA_INDEX
userdata/transactionID
@ ALIAS_INDEX
repository alias
HistoryLogDataRepoUrlChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
shared_ptr< HistoryLogDataStampCommand > Ptr
HistoryLogDataStampCommand(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Index
< indices of known fields
@ COMMAND_INDEX
the commandline executed
@ USER_INDEX
executed by user@hostname
@ USERDATA_INDEX
userdata/transactionID
shared_ptr< const HistoryLogDataStampCommand > constPtr
A zypp history log line split into fields.
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.
std::vector< std::string > FieldVector
shared_ptr< const HistoryLogData > constPtr
FieldVector::const_iterator const_iterator
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()).
FieldVector::size_type size_type
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.
HistoryLogData(FieldVector &fields_r, size_type expect_r=2)
Ctor moving FieldVector (via swap).
shared_ptr< HistoryLogData > Ptr
size_type size() const
Number of fields in vector.
shared_ptr< const HistoryLogPatchStateChange > constPtr
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
HistoryLogPatchStateChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
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)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Enumeration of known history actions.
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
const std::string & asString(bool pad=false) const
static const HistoryActionID NONE ZYPP_API
static HistoryActionID::ID parse(const std::string &strval_r)
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
RW_pointer supporting 'copy on write' functionality.
Provides API related macros.