mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #787, utility functions for shared files
* get file name from URL * service and file names in CDbInfo * adjusted DB flags, allow to load headers only * set of entity flags
This commit is contained in:
@@ -155,6 +155,18 @@ namespace BlackMisc
|
||||
return NoEntity;
|
||||
}
|
||||
|
||||
QSet<CEntityFlags::Entity> CEntityFlags::asSingleEntities(Entity entities)
|
||||
{
|
||||
QSet<CEntityFlags::Entity> s;
|
||||
CEntityFlags::Entity currentEntity = iterateDbEntities(entities);
|
||||
while (currentEntity != NoEntity)
|
||||
{
|
||||
s.insert(currentEntity);
|
||||
currentEntity = iterateDbEntities(entities);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
void CEntityFlags::registerMetadata()
|
||||
{
|
||||
// this is no value class and I register enums here,
|
||||
|
||||
Reference in New Issue
Block a user