introduced field_attributes shortcuts and added method on_base() to all processor classes
This commit is contained in:
@@ -53,12 +53,12 @@ void revision(Operator &op, const char *id, uint64_t &value) {
|
||||
}
|
||||
|
||||
template<class Operator, class Type>
|
||||
void attribute(Operator &op, const char *id, Type &value, const utils::field_attributes &attr = utils::NullAttributes) {
|
||||
void attribute(Operator &op, const char *id, Type &value, const utils::field_attributes &attr = NullAttributes) {
|
||||
op.on_attribute(id, value, attr);
|
||||
}
|
||||
|
||||
template<class Operator, class Type>
|
||||
void attribute(Operator &op, const char *id, std::optional<Type> &value, const utils::field_attributes &attr = utils::NullAttributes) {
|
||||
void attribute(Operator &op, const char *id, std::optional<Type> &value, const utils::field_attributes &attr = NullAttributes) {
|
||||
op.on_attribute(id, value, attr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user