Utility functions for entity flags and web data services

* multiple flags by name
* number of DB objects
* newer entities synchronized
This commit is contained in:
Klaus Basan
2018-04-02 02:24:08 +02:00
parent b6b37c9c0f
commit 574bc8b51b
4 changed files with 104 additions and 33 deletions

View File

@@ -416,6 +416,11 @@ namespace BlackCore
//! \threadsafe
BlackMisc::Network::CEntityFlags::Entity getEmptyEntities(BlackMisc::Network::CEntityFlags::Entity entities = BlackMisc::Network::CEntityFlags::AllDbEntities) const;
//! Synchronized entities either empty or with newer shared file
//! \remark will synchronize entities
//! \threadsafe
BlackMisc::Network::CEntityFlags::Entity getSychronizedEntitiesWithNewerSharedFileOrEmpty(bool syncData = true, BlackMisc::Network::CEntityFlags::Entity entities = BlackMisc::Network::CEntityFlags::AllDbEntities);
//! Cache count for entity
//! \threadsafe
int getCacheCount(BlackMisc::Network::CEntityFlags::Entity entity) const;
@@ -424,6 +429,10 @@ namespace BlackCore
//! \threadsafe
int getDbInfoObjectCount(BlackMisc::Network::CEntityFlags::Entity entity) const;
//! Count for 1-n entities from DB entity objects
//! \threadsafe
int getDbInfoObjectsCount(BlackMisc::Network::CEntityFlags::Entity entities, bool stopIfNotFound = true) const;
//! Count for entity from shared entity objects
//! \threadsafe
int getSharedInfoObjectCount(BlackMisc::Network::CEntityFlags::Entity entity) const;