40 throw std::runtime_error {
41 "Database not set: make sure the field is registered in the database"
51 throw std::runtime_error {
52 "Database not set: make sure the field is registered in the database"
70 std::optional<Database*>
db_;
Mixin for database registration for fields (volume/surface).
const Database & db() const
std::string fieldCollectionName
FieldDatabaseMixin()=default
std::optional< Database * > db_
FieldDatabaseMixin(Database &db, std::string keyIn, std::string collectionName)