MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / storeMetaInfos_

Method storeMetaInfos_

src/openms/include/OpenMS/FORMAT/OMSFileStore.h:125–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 ///@{

Callers

nothing calls this directly

Calls 2

isMetaEmptyMethod · 0.80
atMethod · 0.80

Tested by

no test coverage detected