diff --git a/include/caosdb/entity.h b/include/caosdb/entity.h index 11b425f3f33fecfabc2a63fdaf001a1dd5fb92e1..c7d80cbf686042e1d75b2dfc9fd6dbc852353545 100644 --- a/include/caosdb/entity.h +++ b/include/caosdb/entity.h @@ -442,7 +442,7 @@ public: auto SetRole(const std::string &role) -> void; auto SetName(const std::string &name) -> void; - + auto SetDescription(const std::string &description) -> void; auto SetValue(const std::string &value) -> void; auto SetUnit(const std::string &unit) -> void; // Currently no references or lists. diff --git a/src/caosdb/entity.cpp b/src/caosdb/entity.cpp index 1d616663642c11737228ce02b4e1fd15fc8d77a6..50dbbafaddf6de8cfd0d9440de51eae6f8b8afa7 100644 --- a/src/caosdb/entity.cpp +++ b/src/caosdb/entity.cpp @@ -189,6 +189,10 @@ auto Entity::SetName(const std::string &name) -> void { this->wrapped->set_name(name); } +auto Entity::SetDescription(const std::string &description) -> void { + this->wrapped->set_description(description); +} + auto Entity::SetValue(const std::string &value) -> void { this->wrapped->set_value(value); }