summaryrefslogtreecommitdiff
path: root/src/RSS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RSS.cpp')
-rw-r--r--src/RSS.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/RSS.cpp b/src/RSS.cpp
index 275b96c..1282c83 100644
--- a/src/RSS.cpp
+++ b/src/RSS.cpp
@@ -76,6 +76,16 @@ void RSS::parse(std::string contents) {
}
}
+void RSS::print() {
+ channelInfo.print();
+ int i = 0;
+ for (auto entry : Entries) {
+ if (i > 3) break;
+ entry.print();
+ ++i;
+ }
+}
+
RSS_Entry::RSS_Entry(XML_leaf node) {
Title = node.GetChild("title").GetValue();
URL = node.GetChild("link").GetValue();