summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/verify.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/verify.h b/src/verify.h
index 48c06577..08a24227 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -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;