13 #ifndef ZYPP_HISTORYLOGDATA_H_
14 #define ZYPP_HISTORYLOGDATA_H_
25 #define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S"
69 const std::string &
asString(
bool pad =
false)
const;
103 typedef shared_ptr<HistoryLogData>
Ptr;
197 typedef shared_ptr<HistoryLogDataInstall>
Ptr;
198 typedef shared_ptr<const HistoryLogDataInstall>
constPtr;
219 std::string
name()
const;
222 std::string
reqby()
const;
236 typedef shared_ptr<HistoryLogDataRemove>
Ptr;
237 typedef shared_ptr<const HistoryLogDataRemove>
constPtr;
256 std::string
name()
const;
259 std::string
reqby()
const;
271 typedef shared_ptr<HistoryLogDataRepoAdd>
Ptr;
272 typedef shared_ptr<const HistoryLogDataRepoAdd>
constPtr;
289 std::string
alias()
const;
302 typedef shared_ptr<HistoryLogDataRepoRemove>
Ptr;
303 typedef shared_ptr<const HistoryLogDataRepoRemove>
constPtr;
319 std::string
alias()
const;
331 typedef shared_ptr<HistoryLogDataRepoAliasChange>
Ptr;
332 typedef shared_ptr<const HistoryLogDataRepoAliasChange>
constPtr;
362 typedef shared_ptr<HistoryLogDataRepoUrlChange>
Ptr;
363 typedef shared_ptr<const HistoryLogDataRepoUrlChange>
constPtr;
380 std::string
alias()
const;
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
repository providing the package
std::string alias() const
repository alias
std::vector< std::string > FieldVector
std::string reqby() const
requested by (user, pid:appname, or empty (solver))
std::string userdata() const
userdata/transactionID
std::string reqby() const
requested by (user, pid:appname, or empty (solver))
shared_ptr< const HistoryLogDataRepoAdd > constPtr
const_iterator begin() const
Iterator pointing to 1st element in vector (or end()).
FieldVector::size_type size_type
HistoryLogDataRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
bool empty() const
Whether FieldVector is empty.
std::string repoAlias() const
repository providing the package
HistoryLogData(FieldVector &fields_r, size_type expect_r=2)
Ctor moving FieldVector (via swap).
CheckSum checksum() const
package checksum
static const HistoryActionID REMOVE
std::string alias() const
repository alias
static const HistoryActionID NONE
Url newUrl() const
repositories new url
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.
Arch arch() const
package architecture
std::string oldAlias() const
repositories old alias
static const HistoryActionID REPO_CHANGE_ALIAS
Url url() const
repository url
Arch arch() const
package architecture
static const HistoryActionID INSTALL
size_type size() const
Number of fields in vector.
HistoryLogDataRepoAliasChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
const_iterator end() const
Iterator pointing behind the last element in vector.
virtual ~HistoryLogData()
Dtor.
std::string userdata() const
userdata/transactionID
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
FieldVector::const_iterator const_iterator
Store and operate on date (time_t).
A zypp history log line for an installed packaged.
requested by (user, pid:appname, or empty (solver))
shared_ptr< HistoryLogDataInstall > Ptr
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
std::ostream & operator<<(std::ostream &str, const Exception &obj)
shared_ptr< HistoryLogDataRepoAdd > Ptr
const std::string & operator[](size_type idx_r) const
A zypp history log line for a repo url change.
const std::string & asString(bool pad=false) const
std::string name() const
package name
Provides API related macros.
HistoryActionID action() const
HistoryActionID (or NONE_e if unknown)
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
Edition edition() const
package edition
A zypp history log line for a removed repository.
static Ptr create(FieldVector &fields_r)
Factory method creating HistoryLogData classes.
const std::string & optionalAt(size_type idx_r) const
Access (optional) field by number.
std::string userdata() const
userdata/transactionID
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...
static HistoryActionID::ID parse(const std::string &strval_r)
std::string alias() const
repository alias
requested by (user, pid:appname, or empty (solver))
A zypp history log line for a repo alias change.
std::string newAlias() const
repositories new alias
std::string userdata() const
userdata/transactionID
HistoryLogDataRepoRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
static const HistoryActionID REPO_ADD
std::string name() const
package name
std::string userdata() const
userdata/transactionID
shared_ptr< const HistoryLogDataInstall > constPtr
const std::string & at(size_type idx_r) const
Access (required) field by number.
Edition edition() const
package edition
A zypp history log line for an added repository.
Enumeration of known history actions.
shared_ptr< const HistoryLogDataRepoRemove > constPtr
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
shared_ptr< HistoryLogData > Ptr
shared_ptr< const HistoryLogDataRemove > constPtr
shared_ptr< const HistoryLogData > constPtr
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
RW_pointer supporting 'copy on write' functionality.
shared_ptr< HistoryLogDataRepoRemove > Ptr