12 #ifndef ZYPP_BASE_SERIALNUMBER_H
13 #define ZYPP_BASE_SERIALNUMBER_H
146 {
return(
_serial != serial_r ); }
153 {
return(
_serial == serial_r ); }
184 #endif // ZYPP_BASE_SERIALNUMBER_H
Simple serial number watcher.
bool remember(const SerialNumber &serial_r) const
friend std::ostream & operator<<(std::ostream &str, const SerialNumberWatcher &obj)
bool isDirty(const SerialNumber &serial_r) const
std::ostream & operator<<(std::ostream &str, const Exception &obj)
virtual ~SerialNumberWatcher()
Dtor.
bool isClean(unsigned serial_r) const
Return whether serial_r is still unchanged.
SerialNumber(bool dirty_r=false)
Ctor taking initial dirty value.
bool isClean(const SerialNumber &serial_r) const
Simple serial number provider.
SerialNumberWatcher(unsigned serial_r=(unsigned)-1)
Ctor taking an initial serial value.
virtual ~SerialNumber()
Dtor.
friend std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
bool remember(unsigned serial_r) const
Return isDirty, storing serial_r as new value.
bool isDirty(unsigned serial_r) const
Return whether serial_r differs.