Updated a few comments.
Renamed generator to follow *_FEED_GENERATOR naming. Renamed feed entry as feed item. Made FEED conforms to ITERABLE [FEED_ITEM] for convenience.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
note
|
||||
description: "Convert a FEED to STRING_32 representation. Mostly for debug output."
|
||||
description: "[
|
||||
Convert a FEED to STRING_32 representation.
|
||||
Mostly for debug output!
|
||||
]"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
FEED_TO_STRING_32_VISITOR
|
||||
FEED_TO_STRING_32_DEBUG_VISITOR
|
||||
|
||||
inherit
|
||||
FEED_VISITOR
|
||||
@@ -55,7 +58,7 @@ feature -- Visitor
|
||||
append_new_line
|
||||
|
||||
across
|
||||
a_feed.entries as ic
|
||||
a_feed.items as ic
|
||||
loop
|
||||
exdent
|
||||
append_text (create {STRING_32}.make_filled ('-', 40))
|
||||
@@ -66,7 +69,7 @@ feature -- Visitor
|
||||
end
|
||||
end
|
||||
|
||||
visit_entry (a_entry: FEED_ENTRY)
|
||||
visit_item (a_entry: FEED_ITEM)
|
||||
do
|
||||
if attached a_entry.id as l_id then
|
||||
append_text ("#")
|
||||
@@ -16,7 +16,7 @@ feature -- Visit
|
||||
deferred
|
||||
end
|
||||
|
||||
visit_entry (a_entry: FEED_ENTRY)
|
||||
visit_item (a_item: FEED_ITEM)
|
||||
deferred
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user