libzypp 17.31.23
|
A zypp history log line for a removed packge. More...
#include <HistoryLogData.h>
Public Types | |
enum | Index { DATE_INDEX = HistoryLogData::DATE_INDEX , ACTION_INDEX = HistoryLogData::ACTION_INDEX , NAME_INDEX , EDITION_INDEX , ARCH_INDEX , REQBY_INDEX , USERDATA_INDEX } |
< indices of known fields More... | |
typedef shared_ptr< HistoryLogDataRemove > | Ptr |
typedef shared_ptr< const HistoryLogDataRemove > | constPtr |
![]() | |
enum | Index { DATE_INDEX = 0 , ACTION_INDEX = 1 } |
< indices of known fields More... | |
typedef shared_ptr< HistoryLogData > | Ptr |
typedef shared_ptr< const HistoryLogData > | constPtr |
typedef std::vector< std::string > | FieldVector |
typedef FieldVector::size_type | size_type |
typedef FieldVector::const_iterator | const_iterator |
Public Member Functions | |
HistoryLogDataRemove (FieldVector &fields_r) | |
Ctor moving FieldVector (via swap). | |
std::string | name () const |
package name | |
Edition | edition () const |
package edition | |
Arch | arch () const |
package architecture | |
std::string | reqby () const |
requested by (user@hostname, pid:appname, or empty (solver)) | |
std::string | userdata () const |
userdata/transactionID | |
![]() | |
HistoryLogData (FieldVector &fields_r, size_type expect_r=2) | |
Ctor moving FieldVector (via swap). | |
HistoryLogData (FieldVector &fields_r, HistoryActionID action_r, size_type expect_r=2) | |
Ctor moving FieldVector (via swap). | |
virtual | ~HistoryLogData () |
Dtor. | |
bool | empty () const |
Whether FieldVector is empty. | |
size_type | size () const |
Number of fields in vector. | |
const_iterator | begin () const |
Iterator pointing to 1st element in vector (or end()). | |
const_iterator | end () const |
Iterator pointing behind the last element in vector. | |
const std::string & | optionalAt (size_type idx_r) const |
Access (optional) field by number. | |
const std::string & | operator[] (size_type idx_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const std::string & | at (size_type idx_r) const |
Access (required) field by number. | |
Date | date () const |
date | |
HistoryActionID | action () const |
HistoryActionID (or NONE_e if unknown) | |
Additional Inherited Members | |
![]() | |
static Ptr | create (FieldVector &fields_r) |
Factory method creating HistoryLogData classes. | |
![]() | |
HistoryLogData & | operator= (const HistoryLogData &) |
no base class assign | |
![]() | |
std::ostream & | operator<< (std::ostream &str, const HistoryLogData &obj) |
Stream output. | |
A zypp history log line for a removed packge.
Definition at line 283 of file HistoryLogData.h.
Definition at line 286 of file HistoryLogData.h.
typedef shared_ptr<const HistoryLogDataRemove> zypp::HistoryLogDataRemove::constPtr |
Definition at line 287 of file HistoryLogData.h.
< indices of known fields
Definition at line 294 of file HistoryLogData.h.
zypp::HistoryLogDataRemove::HistoryLogDataRemove | ( | FieldVector & | fields_r | ) |
Ctor moving FieldVector (via swap).
ParseException | if fields_r has the wrong HistoryActionID or number of fields. |
Definition at line 274 of file HistoryLogData.cc.
std::string zypp::HistoryLogDataRemove::name | ( | ) | const |
package name
Definition at line 277 of file HistoryLogData.cc.
Edition zypp::HistoryLogDataRemove::edition | ( | ) | const |
package edition
Definition at line 278 of file HistoryLogData.cc.
Arch zypp::HistoryLogDataRemove::arch | ( | ) | const |
package architecture
Definition at line 279 of file HistoryLogData.cc.
std::string zypp::HistoryLogDataRemove::reqby | ( | ) | const |
requested by (user@hostname, pid:appname, or empty (solver))
Definition at line 280 of file HistoryLogData.cc.
std::string zypp::HistoryLogDataRemove::userdata | ( | ) | const |
userdata/transactionID
Definition at line 281 of file HistoryLogData.cc.