15 #ifndef HEXT_ATTRIBUTE_CAPTURE_H_INCLUDED
16 #define HEXT_ATTRIBUTE_CAPTURE_H_INCLUDED
63 :
public Cloneable<AttributeCapture, Capture>
75 std::string result_name,
76 std::unique_ptr<StringPipe> pipe =
nullptr) noexcept;
91 std::optional<
ResultPair> capture(const GumboNode * node) const override;
95 std::
string attr_name_;
Defines template hext::Cloneable.
Typedefs for results returned from capturing HTML.
Declares hext::StringPipe.
Defines HEXT_PUBLIC and HEXT_PRIVATE.
Captures an HTML Element's attribute.
AttributeCapture(std::string attr_name, std::string result_name, std::unique_ptr< StringPipe > pipe=nullptr) noexcept
Constructs an AttributeCapture.
Curiously recurring template pattern that extends a base class to provide a virtual method Cloneable:...
Abstract base for every StringPipe.
std::pair< std::string, std::string > ResultPair
A string-pair containing a name and a value.