Add ID member to verification note.
authorCarl Hetherington <cth@carlh.net>
Thu, 11 May 2023 12:47:19 +0000 (14:47 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 11 May 2023 12:47:19 +0000 (14:47 +0200)
src/verify.h

index 48c06577b419b79498db03b37d1f30f5f10a5cb7..08a24227ab1cc97d7799114772e734ad73c81014 100644 (file)
@@ -502,6 +502,7 @@ private:
                FRAME,
                COMPONENT,
                SIZE,
+               ID,
        };
 
        template <class T>
@@ -554,6 +555,15 @@ public:
                return data<int>(Data::SIZE);
        }
 
+       VerificationNote& set_id(std::string id) {
+               _data[Data::ID] = id;
+               return *this;
+       }
+
+       boost::optional<std::string> id() const {
+               return data<std::string>(Data::ID);
+       }
+
 private:
        Type _type;
        Code _code;