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;
108 using Ptr = shared_ptr<HistoryLogData>;
160 const std::string & optionalAt(
size_type idx_r )
const;
163 {
return optionalAt( idx_r ); }
169 const std::string & at( size_type idx_r )
const;
202 using Ptr = shared_ptr<HistoryLogDataInstall>;
203 using constPtr = shared_ptr<const HistoryLogDataInstall>;
224 std::string name()
const;
227 std::string reqby()
const;
228 std::string repoAlias()
const;
230 std::string userdata()
const;
242 using Ptr = shared_ptr<HistoryLogPatchStateChange>;
243 using constPtr = shared_ptr<const HistoryLogPatchStateChange>;
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;
286 using Ptr = shared_ptr<HistoryLogDataRemove>;
287 using constPtr = shared_ptr<const HistoryLogDataRemove>;
306 std::string name()
const;
309 std::string reqby()
const;
310 std::string userdata()
const;
321 using Ptr = shared_ptr<HistoryLogDataRepoAdd>;
322 using constPtr = shared_ptr<const HistoryLogDataRepoAdd>;
339 std::string alias()
const;
341 std::string userdata()
const;
352 using Ptr = shared_ptr<HistoryLogDataRepoRemove>;
353 using constPtr = shared_ptr<const HistoryLogDataRepoRemove>;
369 std::string alias()
const;
370 std::string userdata()
const;
381 using Ptr = shared_ptr<HistoryLogDataRepoAliasChange>;
382 using constPtr = shared_ptr<const HistoryLogDataRepoAliasChange>;
399 std::string oldAlias()
const;
400 std::string newAlias()
const;
401 std::string userdata()
const;
412 using Ptr = shared_ptr<HistoryLogDataRepoUrlChange>;
413 using constPtr = shared_ptr<const HistoryLogDataRepoUrlChange>;
430 std::string alias()
const;
432 std::string userdata()
const;
444 using Ptr = shared_ptr<HistoryLogDataStampCommand>;
445 using constPtr = shared_ptr<const HistoryLogDataStampCommand>;
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]
A zypp history log line for an installed packaged.
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
A zypp history log line for a removed packge.
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
shared_ptr< HistoryLogDataRemove > Ptr
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
A zypp history log line for a repo alias change.
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
A zypp history log line for a removed repository.
Index
< indices of known fields
@ USERDATA_INDEX
userdata/transactionID
@ ALIAS_INDEX
repository alias
shared_ptr< const HistoryLogDataRepoRemove > constPtr
shared_ptr< HistoryLogDataRepoRemove > Ptr
A zypp history log line for a repo url change.
Index
< indices of known fields
@ NEWURL_INDEX
repositories new url
@ USERDATA_INDEX
userdata/transactionID
@ ALIAS_INDEX
repository alias
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
A zypp history log line identifying the program that triggered the following commit.
shared_ptr< HistoryLogDataStampCommand > Ptr
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.
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
std::vector< std::string > FieldVector
shared_ptr< const HistoryLogData > constPtr
FieldVector::const_iterator const_iterator
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...
RWCOW_pointer< Impl > _pimpl
Implementation class.
shared_ptr< HistoryLogData > Ptr
A zypp history log line for an installed packaged.
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
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.
static const HistoryActionID REPO_ADD ZYPP_API
static const HistoryActionID PATCH_STATE_CHANGE ZYPP_API
static const HistoryActionID REPO_CHANGE_ALIAS ZYPP_API
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
static const HistoryActionID STAMP_COMMAND ZYPP_API
static const HistoryActionID INSTALL ZYPP_API
static const HistoryActionID REMOVE ZYPP_API
const std::string & asString(bool pad=false) const
static const HistoryActionID REPO_REMOVE ZYPP_API
static const HistoryActionID NONE ZYPP_API
static HistoryActionID::ID parse(const std::string &strval_r)
static const HistoryActionID REPO_CHANGE_URL ZYPP_API
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
RW_pointer supporting 'copy on write' functionality.
Provides API related macros.