13 #ifndef ZYPP_HISTORYLOGDATA_H_ 14 #define ZYPP_HISTORYLOGDATA_H_ 25 #define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S" 71 const std::string &
asString(
bool pad =
false)
const;
105 typedef shared_ptr<HistoryLogData>
Ptr;
199 typedef shared_ptr<HistoryLogDataInstall>
Ptr;
200 typedef shared_ptr<const HistoryLogDataInstall>
constPtr;
221 std::string
name()
const;
224 std::string
reqby()
const;
238 typedef shared_ptr<HistoryLogDataRemove>
Ptr;
239 typedef shared_ptr<const HistoryLogDataRemove>
constPtr;
258 std::string
name()
const;
261 std::string
reqby()
const;
273 typedef shared_ptr<HistoryLogDataRepoAdd>
Ptr;
274 typedef shared_ptr<const HistoryLogDataRepoAdd>
constPtr;
291 std::string
alias()
const;
304 typedef shared_ptr<HistoryLogDataRepoRemove>
Ptr;
305 typedef shared_ptr<const HistoryLogDataRepoRemove>
constPtr;
321 std::string
alias()
const;
333 typedef shared_ptr<HistoryLogDataRepoAliasChange>
Ptr;
334 typedef shared_ptr<const HistoryLogDataRepoAliasChange>
constPtr;
364 typedef shared_ptr<HistoryLogDataRepoUrlChange>
Ptr;
365 typedef shared_ptr<const HistoryLogDataRepoUrlChange>
constPtr;
382 std::string
alias()
const;
396 typedef shared_ptr<HistoryLogDataStampCommand>
Ptr;
397 typedef shared_ptr<const HistoryLogDataStampCommand>
constPtr;
std::string userdata() const
userdata/transactionID
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
shared_ptr< HistoryLogDataStampCommand > Ptr
repository providing the package
std::string newAlias() const
repositories new alias
HistoryLogDataStampCommand(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< const HistoryLogDataStampCommand > constPtr
std::vector< std::string > FieldVector
std::string userdata() const
userdata/transactionID
Edition edition() const
package edition
Url url() const
repository url
shared_ptr< const HistoryLogDataRepoAdd > constPtr
std::string reqby() const
requested by (user, pid:appname, or empty (solver))
FieldVector::size_type size_type
HistoryLogDataRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
HistoryLogData(FieldVector &fields_r, size_type expect_r=2)
Ctor moving FieldVector (via swap).
std::string repoAlias() const
repository providing the package
String related utilities and Regular expression matching.
static const HistoryActionID REMOVE
static const HistoryActionID NONE
Edition represents [epoch:]version[-release]
RWCOW_pointer< Impl > _pimpl
Implementation class.
Index
< indices of known fields
A zypp history log line for a removed packge.
static const HistoryActionID REPO_CHANGE_ALIAS
size_type size() const
Number of fields in vector.
static const HistoryActionID INSTALL
std::string alias() const
repository alias
static const HistoryActionID STAMP_COMMAND
const_iterator end() const
Iterator pointing behind the last element in vector.
HistoryLogDataRepoAliasChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
virtual ~HistoryLogData()
Dtor.
std::string reqby() const
requested by (user, pid:appname, or empty (solver))
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Edition edition() const
package edition
FieldVector::const_iterator const_iterator
Store and operate on date (time_t).
A zypp history log line for an installed packaged.
const_iterator begin() const
Iterator pointing to 1st element in vector (or end()).
requested by (user, pid:appname, or empty (solver))
shared_ptr< HistoryLogDataInstall > Ptr
std::string name() const
package name
Url newUrl() const
repositories new url
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
std::ostream & operator<<(std::ostream &str, const Exception &obj)
shared_ptr< HistoryLogDataRepoAdd > Ptr
HistoryActionID action() const
HistoryActionID (or NONE_e if unknown)
const std::string & operator[](size_type idx_r) const
A zypp history log line for a repo url change.
std::string alias() const
repository alias
std::string oldAlias() const
repositories old alias
Provides API related macros.
static const HistoryActionID REPO_REMOVE
HistoryLogDataInstall(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
static const HistoryActionID REPO_CHANGE_URL
std::string userdata() const
userdata/transactionID
shared_ptr< HistoryLogDataRemove > Ptr
A zypp history log line for a removed repository.
static Ptr create(FieldVector &fields_r)
Factory method creating HistoryLogData classes.
const std::string & asString(bool pad=false) const
HistoryLogDataRepoUrlChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
A zypp history log line split into fieldsEach valid history log line starts with a date and HistoryAc...
std::string userdata() const
userdata/transactionID
static HistoryActionID::ID parse(const std::string &strval_r)
requested by (user, pid:appname, or empty (solver))
A zypp history log line for a repo alias change.
HistoryLogDataRepoRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
const std::string & at(size_type idx_r) const
Access (required) field by number.
static const HistoryActionID REPO_ADD
std::string executedBy() const
executed by user
std::string name() const
package name
CheckSum checksum() const
package checksum
A zypp history log line identifying the program that triggered the following commit.
shared_ptr< const HistoryLogDataInstall > constPtr
std::string userdata() const
userdata/transactionID
A zypp history log line for an added repository.
Enumeration of known history actions.
Arch arch() const
package architecture
bool empty() const
Whether FieldVector is empty.
Arch arch() const
package architecture
const std::string & optionalAt(size_type idx_r) const
Access (optional) field by number.
shared_ptr< const HistoryLogDataRepoRemove > constPtr
Easy-to use interface to the ZYPP dependency resolver.
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
shared_ptr< HistoryLogData > Ptr
shared_ptr< const HistoryLogDataRemove > constPtr
std::string command() const
the commandline executed
shared_ptr< const HistoryLogData > constPtr
std::string userdata() const
userdata/transactionID
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
std::string alias() const
repository alias
std::string userdata() const
userdata/transactionID
shared_ptr< HistoryLogDataRepoRemove > Ptr