Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

lissom.c File Reference


Detailed Description

Main RF-LISSOM command-line program.

Header
/u/nn/cvsroot/lissom/src/lissom.c,v 1.149 2003/01/17 07:19:36 jbednar Exp

Usage information is in the global constant "usage".

Definition in file lissom.c.

#include <string.h>
#include <time.h>
#include <stdio.h>
#include "ipc.h"
#include "cmdparam.h"
#include "binarysave.h"
#include "inputs.h"
#include "globals.h"

Include dependency graph for lissom.c:

Include dependency graph

Go to the source code of this file.

Compounds

struct  cmdobj_help
struct  cmdobj_make_doc

Defines

#define MAX_PROMPT_CHARS   1024
#define RCFILENAME   ".lissomrc"
#define nextargis(str)   (arglist.nextis(string(str)))
 Compare string to arg, and if it matches, consume that arg.

#define COMPAREARG(arg, string)   (argc>(arg) && !strcmp(argv[arg],string))
#define NEW_SECTION(name)   fprintf(file," \nSECTION: " #name "\n\n")
 Define a new section in the ASCII user documentation.

#define NEW_SUBSECTION(name)   fprintf(file," \nSUBSECTION: " #name "\n\n")
 Define a new subsection in the ASCII user documentation.


Functions

cmdstat cmd_help (int argc, const char *argv[])
cmdstat cmd_make_doc (int argc, const char *argv[])
 Generate file with on-line documentation.

char ** command_prompt_completion (char *text, int start, int end)
 Simple command-line completion function.

int get_line_from_prompt (void)
 CmdDefs_LineGenerator for interactive command-line prompts.

void lissom_init_hooks (void)
 Initializations for this file and all others.

bool process_command_line_args (int argc, char **argv)
 Read and perform actions specified on the command line.

void set_filebase (string commandfilename)
 Use filename of first command file as the basename for files created by this program, trimming ".param" if needed.

void wrong_usage (const char *filename)
 Exit and display usage error message.

void read_command_file_if_present (string name)
 Execute the given file of commands, failing silently if it does not exist.

int main (int argc, char **argv)
 Main command-line function.


Variables

bool has_command_file = false
const char lissom_version [] = "4.0"
const char title_string []
 Main page for online and user documentation.

const char intro_string []
const char usage []
const char param_help_string []
const char cmd_help_string []
const char file_types_string []


Function Documentation

bool process_command_line_args int    argc,
char **    argv
 

Read and perform actions specified on the command line.

All of the options except "--command" are provided just for convenience, since they can all be implemented with that single option.

Returns true if this is an interactive session.

Definition at line 606 of file lissom.c.

References cmddefs_exec_file(), ipc_abort(), ipc_init_logfile(), nextargis, read_command_file_if_present(), set_filebase(), Tristate, and wrong_usage().

Referenced by main().


Variable Documentation

const char intro_string[]
 

Initial value:

"`lissom' is a Receptive-Field LISSOM implementation that currently\n"
"runs on single-processor UNIX machines.  Since `lissom' is a living\n"
"program used for research, all documentation in this file and others\n"
"should be considered preliminary, incomplete, outdated, and otherwise\n"
"inaccurate.  Then again, it is hopefully better than nothing ;^).\n\n"

"This program is free software; you can redistribute it and/or modify it\n"
"under the terms of the GNU General Public License version 2 as published\n"
"by the Free Software Foundation. This program is distributed in the hope\n"
"that it will be useful, but without any warranty; without even the\n"
"implied warranty of merchantability or fitness for a particular purpose.\n"
"See the GNU General Public License for more details.\n\n"

"Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 James A. Bednar\n"

Definition at line 139 of file lissom.c.

const char title_string[]
 

Initial value:

"                         RF-LISSOM SOFTWARE\n"
"\n"
"                           James A. Bednar\n"
"                   Department of Computer Sciences\n"
"                  The University of Texas at Austin\n"
"\n"
"                         Version: %s\n"
"                 Compiled on %s at %s.\n"
Main page for online and user documentation.

Definition at line 128 of file lissom.c.


Generated on Mon Jan 20 02:36:16 2003 for RF-LISSOM by doxygen1.3-rc2