tag/Handler: add FullTagHandler constructor with want_mask

This commit is contained in:
Max Kellermann 2018-07-06 12:44:22 +02:00
parent abea4a24ba
commit 9ff1ff75cb
1 changed files with 5 additions and 1 deletions

View File

@ -116,9 +116,13 @@ public:
* attribute.
*/
class FullTagHandler : public AddTagHandler {
protected:
FullTagHandler(unsigned _want_mask, TagBuilder &_builder) noexcept
:AddTagHandler(WANT_PAIR|_want_mask, _builder) {}
public:
explicit FullTagHandler(TagBuilder &_builder) noexcept
:AddTagHandler(WANT_PAIR, _builder) {}
:FullTagHandler(0, _builder) {}
void OnPair(const char *key, const char *value) noexcept override;
};