mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T109, make sure liveries and ICAO are compared correctly
* isDbEqual function * used in getXXDifference functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d64bfcabce
commit
551d9326fe
@@ -73,6 +73,9 @@ namespace BlackMisc
|
||||
//! Has valid DB key
|
||||
bool hasValidDbKey() const { return m_dbKey >= 0; }
|
||||
|
||||
//! Same DB key and hence equal
|
||||
bool isDbEqual(const IDatastoreObjectWithIntegerKey &other) const { return other.isLoadedFromDb() && this->isLoadedFromDb() && other.getDbKey() == this->getDbKey(); }
|
||||
|
||||
//! Loaded from DB
|
||||
//! \remarks here not really needed, but added to have similar signature as IDatastoreObjectWithStringKey
|
||||
bool isLoadedFromDb() const;
|
||||
@@ -143,6 +146,9 @@ namespace BlackMisc
|
||||
//! Has valid DB key
|
||||
bool hasValidDbKey() const { return !m_dbKey.isEmpty(); }
|
||||
|
||||
//! Same DB key and hence equal
|
||||
bool isDbEqual(const IDatastoreObjectWithStringKey &other) const { return other.isLoadedFromDb() && this->isLoadedFromDb() && other.getDbKey() == this->getDbKey(); }
|
||||
|
||||
//! Loaded from DB
|
||||
bool isLoadedFromDb() const { return m_loadedFromDb; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user