| 123 | /// Store meta values (for all objects in a container) in the database |
| 124 | template<class MetaInfoInterfaceContainer, class DBKeyTable> |
| 125 | void storeMetaInfos_(const MetaInfoInterfaceContainer& container, |
| 126 | const String& parent_table, const DBKeyTable& db_keys) |
| 127 | { |
| 128 | bool table_created = false; |
| 129 | for (const auto& element : container) |
| 130 | { |
| 131 | if (!element.isMetaEmpty()) |
| 132 | { |
| 133 | if (!table_created) |
| 134 | { |
| 135 | createTableMetaInfo_(parent_table); |
| 136 | table_created = true; |
| 137 | } |
| 138 | storeMetaInfo_(element, parent_table, db_keys.at(&element)); |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /// @name Helper functions for storing identification data |
| 144 | ///@{ |
nothing calls this directly
no test coverage detected