Added interactions for clusters/filters

This commit is contained in:
emeric
2018-05-07 14:04:03 +02:00
parent eedcb1c2b5
commit 87c2f2936f
6 changed files with 50 additions and 13 deletions
+6
View File
@@ -232,6 +232,12 @@ Cluster::getAll(Wt::Dbo::Session& session)
return std::vector<Cluster::pointer>(res.begin(), res.end());
}
Cluster::pointer
Cluster::getById(Wt::Dbo::Session& session, id_type id)
{
return session.find<Cluster>().where("id = ?").bind(id);
}
ClusterType::ClusterType(std::string name)
: _name(name)
{