libzypp  17.8.0
zypp::HistoryActionID Class Reference

Enumeration of known history actions. More...

#include <HistoryLogData.h>

Public Types

enum  ID {
  NONE_e, INSTALL_e, REMOVE_e, REPO_ADD_e,
  REPO_REMOVE_e, REPO_CHANGE_ALIAS_e, REPO_CHANGE_URL_e, STAMP_COMMAND_e
}
 

Public Member Functions

 HistoryActionID ()
 
 HistoryActionID (ID id)
 
 HistoryActionID (const std::string &strval_r)
 
ID toEnum () const
 
const std::string & asString (bool pad=false) const
 

Static Public Member Functions

static HistoryActionID::ID parse (const std::string &strval_r)
 

Static Public Attributes

static const HistoryActionID NONE
 
static const HistoryActionID INSTALL
 
static const HistoryActionID REMOVE
 
static const HistoryActionID REPO_ADD
 
static const HistoryActionID REPO_REMOVE
 
static const HistoryActionID REPO_CHANGE_ALIAS
 
static const HistoryActionID REPO_CHANGE_URL
 
static const HistoryActionID STAMP_COMMAND
 

Private Attributes

ID _id
 

Related Functions

(Note that these are not member functions.)

bool operator== (const HistoryActionID &lhs, const HistoryActionID &rhs)
 
bool operator!= (const HistoryActionID &lhs, const HistoryActionID &rhs)
 
std::ostream & operator<< (std::ostream &str, const HistoryActionID &id)
 

Detailed Description

Enumeration of known history actions.

Definition at line 36 of file HistoryLogData.h.

Member Enumeration Documentation

◆ ID

Enumerator
NONE_e 
INSTALL_e 
REMOVE_e 
REPO_ADD_e 
REPO_REMOVE_e 
REPO_CHANGE_ALIAS_e 
REPO_CHANGE_URL_e 
STAMP_COMMAND_e 

Definition at line 48 of file HistoryLogData.h.

Constructor & Destructor Documentation

◆ HistoryActionID() [1/3]

zypp::HistoryActionID::HistoryActionID ( )
inline

Definition at line 61 of file HistoryLogData.h.

◆ HistoryActionID() [2/3]

zypp::HistoryActionID::HistoryActionID ( ID  id)
inline

Definition at line 63 of file HistoryLogData.h.

◆ HistoryActionID() [3/3]

zypp::HistoryActionID::HistoryActionID ( const std::string &  strval_r)
explicit

Definition at line 44 of file HistoryLogData.cc.

Member Function Documentation

◆ toEnum()

ID zypp::HistoryActionID::toEnum ( ) const
inline

Definition at line 67 of file HistoryLogData.h.

◆ parse()

HistoryActionID::ID zypp::HistoryActionID::parse ( const std::string &  strval_r)
static

Definition at line 48 of file HistoryLogData.cc.

◆ asString()

const std::string & zypp::HistoryActionID::asString ( bool  pad = false) const

Definition at line 74 of file HistoryLogData.cc.

Friends And Related Function Documentation

◆ operator==()

bool operator== ( const HistoryActionID lhs,
const HistoryActionID rhs 
)
related

Definition at line 78 of file HistoryLogData.h.

◆ operator!=()

bool operator!= ( const HistoryActionID lhs,
const HistoryActionID rhs 
)
related

Definition at line 82 of file HistoryLogData.h.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  str,
const HistoryActionID id 
)
related

Definition at line 95 of file HistoryLogData.cc.

Member Data Documentation

◆ NONE

const HistoryActionID zypp::HistoryActionID::NONE
static

Definition at line 38 of file HistoryLogData.h.

◆ INSTALL

const HistoryActionID zypp::HistoryActionID::INSTALL
static

Definition at line 40 of file HistoryLogData.h.

◆ REMOVE

const HistoryActionID zypp::HistoryActionID::REMOVE
static

Definition at line 41 of file HistoryLogData.h.

◆ REPO_ADD

const HistoryActionID zypp::HistoryActionID::REPO_ADD
static

Definition at line 42 of file HistoryLogData.h.

◆ REPO_REMOVE

const HistoryActionID zypp::HistoryActionID::REPO_REMOVE
static

Definition at line 43 of file HistoryLogData.h.

◆ REPO_CHANGE_ALIAS

const HistoryActionID zypp::HistoryActionID::REPO_CHANGE_ALIAS
static

Definition at line 44 of file HistoryLogData.h.

◆ REPO_CHANGE_URL

const HistoryActionID zypp::HistoryActionID::REPO_CHANGE_URL
static

Definition at line 45 of file HistoryLogData.h.

◆ STAMP_COMMAND

const HistoryActionID zypp::HistoryActionID::STAMP_COMMAND
static

Definition at line 46 of file HistoryLogData.h.

◆ _id

ID zypp::HistoryActionID::_id
private

Definition at line 74 of file HistoryLogData.h.


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