class WINZIP_SOFTWARE_COMMON
Winzip software common
note
description: "Winzip software common"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2017 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2020-10-24 12:23:43 GMT (Saturday 24th October 2020)"
revision: "4"
deferred class
WINZIP_SOFTWARE_COMMON
inherit
EL_MODULE_TUPLE
EL_MODULE_DEFERRED_LOCALE
feature -- Contract Support
valid_architecture_list (a_list: STRING): BOOLEAN
do
Result := True
across a_list.split (',') as list until not Result loop
list.item.left_adjust
inspect list.item.to_integer
when 32, 64 then
else
Result := False
end
end
end
valid_target_list (a_list: STRING): BOOLEAN
do
Result := True
across a_list.split (',') as list until not Result loop
list.item.left_adjust
Result := Target_set.has (list.item)
end
end
valid_language_list (a_list: STRING): BOOLEAN
do
Result := True
across a_list.split (',') as list until not Result loop
list.item.left_adjust
Result := Locale.all_languages.has (list.item)
end
end
root_class_exists (a_pecf_path: EL_FILE_PATH): BOOLEAN
do
Result := (a_pecf_path.parent + Application_root_path).exists
end
feature {NONE} -- Constants
Application_root: ZSTRING
once
Result := "source/application_root.%S"
end
Application_root_path: EL_FILE_PATH
once
Result := Application_root #$ ['e']
end
Target_set: EL_STRING_8_LIST
once
create Result.make_from_tuple (Target)
end
Target: TUPLE [exe, installer: STRING]
once
create Result
Tuple.fill (Result, "exe, installer")
end
end