note description: "[ Objects sharing a ECF_CONF_HELPERS instance. ]" author: "$Author$" date: "$Date$" revision: "$Revision$" class ECF_SHARED_CONF_HELPERS feature -- Access config_system_from (a_file_name: READABLE_STRING_GENERAL): detachable CONF_SYSTEM -- Loads a configuration system from `a_file_name' require a_file_name_attached: a_file_name /= Void not_a_file_name_is_empty: not a_file_name.is_empty a_file_name_exists: conf_helpers.is_file_readable (a_file_name) do Result := conf_helpers.config_system_from (a_file_name) end config_redirection_from (a_file_name: READABLE_STRING_GENERAL): detachable CONF_REDIRECTION -- Loads a configuration redirection from `a_file_name' require a_file_name_attached: a_file_name /= Void not_a_file_name_is_empty: not a_file_name.is_empty a_file_name_exists: conf_helpers.is_file_readable (a_file_name) do Result := conf_helpers.config_redirection_from (a_file_name) end save_conf_file (a_cfg: CONF_FILE; a_file_name: READABLE_STRING_GENERAL): BOOLEAN -- Saves the configuration system `a_cfg' to `a_file_name' require a_cfg_attached: a_cfg /= Void a_file_name_attached: a_file_name /= Void not_a_file_name_is_empty: not a_file_name.is_empty do Result := conf_helpers.save_conf_file (a_cfg, a_file_name) end save_conf_file_with_namespace_and_schema (a_cfg: CONF_FILE; a_file_name: READABLE_STRING_GENERAL; a_namespace, a_schema: detachable READABLE_STRING_GENERAL): BOOLEAN -- Saves the configuration system `a_cfg' to `a_file_name' require a_cfg_attached: a_cfg /= Void a_file_name_attached: a_file_name /= Void not_a_file_name_is_empty: not a_file_name.is_empty do Result := conf_helpers.save_conf_file_with_namespace_and_schema (a_cfg, a_file_name, a_namespace, a_schema) end append_conf_file_to (a_cfg: CONF_FILE; a_output: STRING): BOOLEAN -- Append the configuration system `a_cfg' into `a_output'. require a_cfg_attached: a_cfg /= Void a_output: a_output /= Void do Result := conf_helpers.append_conf_file_to (a_cfg, a_output) end new_conf_redirection (a_file_name: READABLE_STRING_GENERAL; a_location: READABLE_STRING_GENERAL; a_uuid: detachable UUID; a_message: detachable READABLE_STRING_GENERAL): detachable CONF_REDIRECTION require a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty a_location_ok: a_location /= Void and then not a_location.is_empty do Result := conf_helpers.new_conf_redirection (a_file_name, a_location, a_uuid, a_message) end feature -- Helper conf_helpers: ECF_CONF_HELPERS once create Result end note copyright: "Copyright (c) 1984-2016, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end