Skip to content
Snippets Groups Projects
Commit acdd1f0f authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Entity now has HasInfo() method.

parent 3e95cd2e
No related branches found
No related tags found
No related merge requests found
Pipeline #12841 passed
Pipeline: caosdb-cppinttest

#12842

    ......@@ -607,6 +607,7 @@ public:
    value.wrapped = this->wrapped->mutable_value();
    properties.wrapped = this->wrapped->mutable_properties();
    parents.wrapped = this->wrapped->mutable_parents();
    // FIXME(dh) copy messages?
    errors.wrapped = CreateMessagesField();
    warnings.wrapped = CreateMessagesField();
    infos.wrapped = CreateMessagesField();
    ......@@ -620,6 +621,7 @@ public:
    value.wrapped = this->wrapped->mutable_value();
    properties.wrapped = this->wrapped->mutable_properties();
    parents.wrapped = this->wrapped->mutable_parents();
    // FIXME(dh) copy messages?
    errors.wrapped = CreateMessagesField();
    warnings.wrapped = CreateMessagesField();
    infos.wrapped = CreateMessagesField();
    ......@@ -659,6 +661,7 @@ public:
    return this->warnings.wrapped->size() > 0;
    }
    [[nodiscard]] auto GetInfos() const -> const Messages & { return infos; }
    [[nodiscard]] inline auto HasInfos() const -> bool { return this->infos.wrapped->size() > 0; }
    inline auto ToString() const -> const std::string {
    google::protobuf::util::JsonPrintOptions options;
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment