libzypp 17.37.17
zypp::HistoryLogDataInstall Class Reference

A zypp history log line for an installed packaged. More...

#include <zypp/HistoryLogData.h>

Inheritance diagram for zypp::HistoryLogDataInstall:

Public Types

enum  Index {
  DATE_INDEX = HistoryLogData::DATE_INDEX , ACTION_INDEX = HistoryLogData::ACTION_INDEX , NAME_INDEX , EDITION_INDEX ,
  ARCH_INDEX , REQBY_INDEX , REPOALIAS_INDEX , CHEKSUM_INDEX ,
  USERDATA_INDEX
}
 < indices of known fields More...
using Ptr = shared_ptr<HistoryLogDataInstall>
using constPtr = shared_ptr<const HistoryLogDataInstall>
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

 HistoryLogDataInstall (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 repoAlias () const
 repository providing the package
CheckSum checksum () const
 package checksum
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
HistoryLogDataoperator= (const HistoryLogData &)
 no base class assign

Detailed Description

A zypp history log line for an installed packaged.

Definition at line 199 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@hostname, pid:appname, or empty (solver))

REPOALIAS_INDEX 

repository providing the package

CHEKSUM_INDEX 

package checksum

USERDATA_INDEX 

userdata/transactionID

Definition at line 210 of file HistoryLogData.h.

Constructor & Destructor Documentation

◆ HistoryLogDataInstall()

zypp::HistoryLogDataInstall::HistoryLogDataInstall ( FieldVector & fields_r)

Ctor moving FieldVector (via swap).

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

Definition at line 244 of file HistoryLogData.cc.

Member Function Documentation

◆ name()

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

package name

Definition at line 247 of file HistoryLogData.cc.

◆ edition()

Edition zypp::HistoryLogDataInstall::edition ( ) const

package edition

Definition at line 248 of file HistoryLogData.cc.

◆ arch()

Arch zypp::HistoryLogDataInstall::arch ( ) const

package architecture

Definition at line 249 of file HistoryLogData.cc.

◆ reqby()

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

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

Definition at line 250 of file HistoryLogData.cc.

◆ repoAlias()

std::string zypp::HistoryLogDataInstall::repoAlias ( ) const

repository providing the package

Definition at line 251 of file HistoryLogData.cc.

◆ checksum()

CheckSum zypp::HistoryLogDataInstall::checksum ( ) const

package checksum

Definition at line 252 of file HistoryLogData.cc.

◆ userdata()

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

userdata/transactionID

Definition at line 253 of file HistoryLogData.cc.


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