projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
928b10e
)
Add ID member to verification note.
author
Carl Hetherington
<cth@carlh.net>
Thu, 11 May 2023 12:47:19 +0000
(14:47 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 11 May 2023 12:47:19 +0000
(14:47 +0200)
src/verify.h
patch
|
blob
|
history
diff --git
a/src/verify.h
b/src/verify.h
index 48c06577b419b79498db03b37d1f30f5f10a5cb7..08a24227ab1cc97d7799114772e734ad73c81014 100644
(file)
--- 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;