diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-11 14:47:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-05-11 14:47:19 +0200 |
| commit | 919b61fbe43e28ffda689b735721b3042be081ad (patch) | |
| tree | b8c3edcc83396e51445e407ec288e5f7528b77ca /src | |
| parent | 928b10e8f4195c29a31fe643e38fb00b6c1b8953 (diff) | |
Add ID member to verification note.
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.h | 10 |
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; |
