Skip to content
Snippets Groups Projects

ENH: Allow insertion and deletion of single entities

Merged Florian Spreckelsen requested to merge f-insert into dev
All threads resolved!
Compare and Show latest version
9 files
+ 28
47
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 2
18
@@ -213,6 +213,8 @@ private:
*
* This is a property which belongs to another entity. Don't confuse it with
* an Entity with the "Property" role.
*
* @brief Property of an Entity.
*/
class Property {
public:
@@ -258,24 +260,6 @@ public:
auto Append(const Property &property) -> void;
friend class Entity;
};
/**
* Messages convey information about the state and result of transactions.
*
* A Message object can be thought of as kinf of a generalized error object in
* other frameworks. Please have a look at MessageCodes for more details.
*/
class Message {
public:
explicit inline Message(caosdb::entity::v1alpha1::Message *wrapped)
: wrapped(wrapped){};
[[nodiscard]] inline auto GetCode() const -> MessageCode {
return get_message_code(wrapped->code());
}
[[nodiscard]] inline auto GetDescription() const -> std::string {
return wrapped->description();
}
private:
inline Properties(){};
Loading