Syndication::SpecificItem Class
class Syndication::SpecificItemInterface for all format-specific item-like classes, such as RSS2/RDF items, and Atom entries. More...
Header: | #include <Syndication/SpecificItem> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Syndication) target_link_libraries(mytarget PRIVATE KF6::Syndication) |
Inherited By: |
Public Functions
virtual bool | accept(Syndication::SpecificItemVisitor *visitor) = 0 |
Detailed Description
To process items based on their format, use a SpecificItemVisitor.
Member Function Documentation
[pure virtual]
bool SpecificItem::accept(Syndication::SpecificItemVisitor *visitor)
This must be implemented for the double dispatch technique (Visitor pattern).
The usual implementation is
return visitor->visit(this);
See also SpecificItemVisitor.
visitor the visitor "visiting" this object