class
APPLICATION
inherit
ARGUMENTS_32
EL_PLAIN_TEXT_FILE
If you want make a program (command line program) which read and write a file, you don't need inherit from EL_PLAIN_TEXT_FILE. Just add an attribute and work with it. Something like:
my_file: EL_PLAIN_TEXT_FILE
Germán
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/eiffel-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/7fb2abcf-a861-43b5-8a56-25105b0dd6d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hank Lenzi <hank....@gmail.com>:
Class: APPLICATIONFeature: new_cursor: ITERATION_CURSOR [IMMUTABLE_STRING_32] inherited from: ARGUMENTS_32 Version from: ARGUMENTS_32Feature: new_cursor: FILE_ITERATION_CURSOR inherited from: EL_PLAIN_TEXT_FILE Version from: FILESo, I'm thinking of taking a bold step and just leaving ARGUMENTS_32 out.
class
CHECK_LOCALE_STRINGS_APP
inherit
EL_LOGGED_COMMAND_LINE_SUB_APPLICATION [CHECK_LOCALE_STRINGS_COMMAND]
redefine
Option_name
end
create
make
feature {NONE} -- Implementation
argument_specs: ARRAY [like specs.item]
do
Result := <<
valid_required_argument ("config", "Configuration file path", << file_must_exist >>),
optional_argument ("language", "Language code to check")
>>
end
default_make: PROCEDURE
do
Result := agent {like command}.make ("", "en")
end
feature {NONE} -- Constants
Option_name: STRING = "check_locale_strings"
Description: STRING = "Check that every locale string can be found in given locale"
Log_filter: ARRAY [like CLASS_ROUTINES]
--
do
Result := <<
[{CHECK_LOCALE_STRINGS_APP}, All_routines]
>>
end
end