libzypp  17.1.1
zypp::HistoryLogDataRemove Class Reference

A zypp history log line for a removed packge. More...

#include <HistoryLogData.h>

Inheritance diagram for zypp::HistoryLogDataRemove:

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< HistoryLogDataRemovePtr
 
typedef shared_ptr< const HistoryLogDataRemoveconstPtr
 
- Public Types inherited from zypp::HistoryLogData
enum  Index { DATE_INDEX = 0, ACTION_INDEX = 1 }
 < indices of known fields More...
 
typedef shared_ptr< HistoryLogDataPtr
 
typedef shared_ptr< const HistoryLogDataconstPtr
 
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). More...
 
std::string name () const
 package name More...
 
Edition edition () const
 package edition More...
 
Arch arch () const
 package architecture More...
 
std::string reqby () const
 requested by (user, pid:appname, or empty (solver)) More...
 
std::string userdata () const
 userdata/transactionID More...
 
- Public Member Functions inherited from zypp::HistoryLogData
 HistoryLogData (FieldVector &fields_r, size_type expect_r=2)
 Ctor moving FieldVector (via swap). More...
 
 HistoryLogData (FieldVector &fields_r, HistoryActionID action_r, size_type expect_r=2)
 Ctor moving FieldVector (via swap). More...
 
virtual ~HistoryLogData ()
 Dtor. More...
 
bool empty () const
 Whether FieldVector is empty. More...
 
size_type size () const
 Number of fields in vector. More...
 
const_iterator begin () const
 Iterator pointing to 1st element in vector (or end()). More...
 
const_iterator end () const
 Iterator pointing behind the last element in vector. More...
 
const std::string & optionalAt (size_type idx_r) const
 Access (optional) field by number. More...
 
const std::string & operator[] (size_type idx_r) const
 
const std::string & at (size_type idx_r) const
 Access (required) field by number. More...
 
Date date () const
 date More...
 
HistoryActionID action () const
 HistoryActionID (or NONE_e if unknown) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from zypp::HistoryLogData
static Ptr create (FieldVector &fields_r)
 Factory method creating HistoryLogData classes. More...
 
- Protected Member Functions inherited from zypp::HistoryLogData
HistoryLogDataoperator= (const HistoryLogData &)
 no base class assign More...
 

Detailed Description

A zypp history log line for a removed packge.

Definition at line 235 of file HistoryLogData.h.

Member Typedef Documentation

◆ Ptr

◆ constPtr

Member Enumeration Documentation

◆ Index

< indices of known fields

Enumerator
DATE_INDEX 
ACTION_INDEX 
NAME_INDEX 

package name

EDITION_INDEX 

package edition

ARCH_INDEX 

package architecture

REQBY_INDEX 

requested by (user, pid:appname, or empty (solver))

USERDATA_INDEX 

userdata/transactionID

Definition at line 246 of file HistoryLogData.h.

Constructor & Destructor Documentation

◆ HistoryLogDataRemove()

zypp::HistoryLogDataRemove::HistoryLogDataRemove ( FieldVector fields_r)

Ctor moving FieldVector (via swap).

Exceptions
ParseExceptionif fields_r has the wrong HistoryActionID or number of fields.

Definition at line 254 of file HistoryLogData.cc.

Member Function Documentation

◆ name()

std::string zypp::HistoryLogDataRemove::name ( ) const

package name

Definition at line 257 of file HistoryLogData.cc.

◆ edition()

Edition zypp::HistoryLogDataRemove::edition ( ) const

package edition

Definition at line 258 of file HistoryLogData.cc.

◆ arch()

Arch zypp::HistoryLogDataRemove::arch ( ) const

package architecture

Definition at line 259 of file HistoryLogData.cc.

◆ reqby()

std::string zypp::HistoryLogDataRemove::reqby ( ) const

requested by (user, pid:appname, or empty (solver))

Definition at line 260 of file HistoryLogData.cc.

◆ userdata()

std::string zypp::HistoryLogDataRemove::userdata ( ) const

userdata/transactionID

Definition at line 261 of file HistoryLogData.cc.


The documentation for this class was generated from the following files: