/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/sedflux/sedflux_command_line.c File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <utils/utils.h>
#include <sed/sed_sedflux.h>
#include <bio.h>
#include "sedflux.h"

Go to the source code of this file.

Functions

Eh_project fill_sedflux_info_file (Eh_project p, const gchar *cmd_str, const gchar *desc)
gchar * sedflux_get_file_name_interactively (gchar **working_dir, gchar **in_file)
Sedflux_param_stsedflux_parse_command_line (int argc, char *argv[], GError **error)
GQuark sedflux_error_quark (void)
gboolean sedflux_setup_project_dir (gchar **init_file, gchar **working_dir, GError **error)
gint sedflux_print_info_file (const gchar *init_file, const gchar *wd, const gchar *cmd_str, const gchar *desc)

Variables

gchar * copyleft_msg []


Function Documentation

Eh_project fill_sedflux_info_file ( Eh_project  p,
const gchar *  cmd_str,
const gchar *  desc 
)

Definition at line 280 of file sedflux_command_line.c.

References eh_create_project(), eh_destroy_project(), eh_free, eh_input_str(), eh_new, eh_project_add_info_val(), eh_project_dir_name(), eh_project_get_info_val(), eh_project_name(), eh_read_project_info_file(), eh_require, eh_set_project_dir(), S_LINEMAX, and SED_VERSION_S.

Referenced by sedflux_print_info_file().

GQuark sedflux_error_quark ( void   ) 

Definition at line 139 of file sedflux_command_line.c.

gchar * sedflux_get_file_name_interactively ( gchar **  working_dir,
gchar **  in_file 
)

Definition at line 209 of file sedflux_command_line.c.

References copyleft_msg, eh_fprint_version_info(), eh_free, eh_get_input_val(), eh_new, eh_print_message(), eh_require, PROGRAM_NAME, S_MAJOR_VERSION, S_MICRO_VERSION, S_MINOR_VERSION, and sed_mode_is_3d().

Referenced by sedflux_setup_project_dir().

Sedflux_param_st* sedflux_parse_command_line ( int  argc,
char *  argv[],
GError **  error 
)

Definition at line 60 of file sedflux_command_line.c.

References Sedflux_param_st::active_procs, bio_get_option_group(), eh_exit(), eh_fprint_version_info(), eh_new, eh_require, eh_return_val_if_fail, eh_set_verbosity_level(), Sedflux_param_st::init_file, Sedflux_param_st::just_plume, Sedflux_param_st::just_rng, Sedflux_param_st::out_file, PROGRAM_NAME, Sedflux_param_st::run_desc, S_MAJOR_VERSION, S_MICRO_VERSION, S_MINOR_VERSION, sed_mode_set(), SEDFLUX_ERROR, SEDFLUX_ERROR_MULTIPLE_MODES, SEDFLUX_MODE_2D, SEDFLUX_MODE_3D, Sedflux_param_st::summary, Sedflux_param_st::verbose, Sedflux_param_st::verbosity, Sedflux_param_st::version, Sedflux_param_st::warn, and Sedflux_param_st::working_dir.

Referenced by main(), and sedflux_setup().

gint sedflux_print_info_file ( const gchar *  init_file,
const gchar *  wd,
const gchar *  cmd_str,
const gchar *  desc 
)

Definition at line 262 of file sedflux_command_line.c.

References eh_create_project(), eh_destroy_project(), eh_set_project_dir(), eh_write_project_info_file(), and fill_sedflux_info_file().

Referenced by main(), and sedflux_setup().

gboolean sedflux_setup_project_dir ( gchar **  init_file,
gchar **  working_dir,
GError **  error 
)

Definition at line 145 of file sedflux_command_line.c.

References eh_return_val_if_fail, eh_set_file_error_from_errno(), and sedflux_get_file_name_interactively().

Referenced by main(), and sedflux_setup().


Variable Documentation

gchar* copyleft_msg[]

Initial value:

{
"                                                                             ",
" sedflux - A process based basin fill model.                                 ",
" Copyright (C) 2003 Eric Hutton.                                             ",
"                                                                             ",
" This is free software; you can redistribute it and/or modify it under the   ",
" terms of the GNU General Public License as published by the Free Software   ",
" Foundation; either version 2 of the License, or (at your option) any later  ",
" version.                                                                    ",
"                                                                             ",
" This program is distributed in the hope that it will be useful, but WITHOUT ",
" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       ",
" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for   ",
" more details.                                                               ",
"                                                                             ",
" You should have received a copy of the GNU General Public License along with",
" this program; if not, write to the Free Software Foundation, Inc., 59 Temple",
" Place - Suite 330, Boston, MA 02111-1307, USA.                              ",
"                                                                             ",
NULL
}

Definition at line 185 of file sedflux_command_line.c.

Referenced by sedflux_get_file_name_interactively().


Generated on Fri Jan 4 18:04:18 2008 for sedflux by  doxygen 1.5.2