|
libzypp 17.37.8
|
A zypp history log line for a repo alias change. More...
#include <zypp/HistoryLogData.h>
Public Types | |
| enum | Index { DATE_INDEX = HistoryLogData::DATE_INDEX , ACTION_INDEX = HistoryLogData::ACTION_INDEX , OLDALIAS_INDEX , NEWALIAS_INDEX , USERDATA_INDEX } |
| < indices of known fields More... | |
| using | Ptr = shared_ptr<HistoryLogDataRepoAliasChange> |
| using | constPtr = shared_ptr<const HistoryLogDataRepoAliasChange> |
| Public Types inherited from zypp::HistoryLogData | |
| enum | Index { DATE_INDEX = 0 , ACTION_INDEX = 1 } |
| < indices of known fields More... | |
| using | Ptr = shared_ptr<HistoryLogData> |
| using | constPtr = shared_ptr<const HistoryLogData> |
| using | FieldVector = std::vector<std::string> |
| using | size_type = FieldVector::size_type |
| using | const_iterator = FieldVector::const_iterator |
Public Member Functions | |
| HistoryLogDataRepoAliasChange (FieldVector &fields_r) | |
| Ctor moving FieldVector (via swap). | |
| std::string | oldAlias () const |
| repositories old alias | |
| std::string | newAlias () const |
| repositories new alias | |
| std::string | userdata () const |
| userdata/transactionID | |
| Public Member Functions inherited from zypp::HistoryLogData | |
| 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 Public Member Functions inherited from zypp::HistoryLogData | |
| static Ptr | create (FieldVector &fields_r) |
| Factory method creating HistoryLogData classes. | |
| Protected Member Functions inherited from zypp::HistoryLogData | |
| HistoryLogData & | operator= (const HistoryLogData &) |
| no base class assign | |
| Related Symbols inherited from zypp::HistoryLogData | |
| std::ostream & | operator<< (std::ostream &str, const HistoryLogData &obj) |
| Stream output. | |
A zypp history log line for a repo alias change.
Definition at line 378 of file HistoryLogData.h.
Definition at line 381 of file HistoryLogData.h.
| using zypp::HistoryLogDataRepoAliasChange::constPtr = shared_ptr<const HistoryLogDataRepoAliasChange> |
Definition at line 382 of file HistoryLogData.h.
< indices of known fields
| Enumerator | |
|---|---|
| DATE_INDEX | |
| ACTION_INDEX | |
| OLDALIAS_INDEX | repositories old alias |
| NEWALIAS_INDEX | repositories new alias |
| USERDATA_INDEX | userdata/transactionID |
Definition at line 389 of file HistoryLogData.h.
| zypp::HistoryLogDataRepoAliasChange::HistoryLogDataRepoAliasChange | ( | FieldVector & | fields_r | ) |
Ctor moving FieldVector (via swap).
| ParseException | if fields_r has the wrong HistoryActionID or number of fields. |
Definition at line 305 of file HistoryLogData.cc.
| std::string zypp::HistoryLogDataRepoAliasChange::oldAlias | ( | ) | const |
repositories old alias
Definition at line 308 of file HistoryLogData.cc.
| std::string zypp::HistoryLogDataRepoAliasChange::newAlias | ( | ) | const |
repositories new alias
Definition at line 309 of file HistoryLogData.cc.
| std::string zypp::HistoryLogDataRepoAliasChange::userdata | ( | ) | const |
userdata/transactionID
Definition at line 310 of file HistoryLogData.cc.