class TOKENIZED_FILE_SIZE_SCANNER

(source code)

Description

Find sum of all file-size counts in rhythmdb.xml using tokenized xpath processing

note
	description: "[
		Find sum of all `file-size' counts in rhythmdb.xml using tokenized xpath processing
	]"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2023-07-27 7:14:10 GMT (Thursday 27th July 2023)"
	revision: "12"

class
	TOKENIZED_FILE_SIZE_SCANNER

inherit
	EL_CREATEABLE_FROM_XPATH_MATCH_EVENTS

	FILE_SIZE_SCANNER
		rename
			node as last_node
		end

	EL_XML_PARSE_EVENT_TYPE

create
	make

feature {NONE} -- Initialization

	make_default
		do
		end

feature {NONE} -- Implementation

	xpath_match_events: ARRAY [EL_XPATH_TO_AGENT_MAP]
			--
		do
			Result := <<
				[On_open, "/rhythmdb/entry/file-size/text()", agent increment_size_count]
			>>
		end

end