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

lissom.c File Reference

Main RF-LISSOM command-line program. More...

#include <string.h>
#include <time.h>
#include <stdio.h>
#include "ipc.h"
#include "cmdparam.h"
#include "binarysave.h"
#include "inputs.h"
#include "ppm_draw.h"
#include "tilt.h"
#include "analyze.h"
#include "file_io.h"
#include "globals.h"
#include "kernel.h"
#include "lissom.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   48
#define RCFILENAME   ".lissomrc"
#define nextargis(string)    (!strcmp(argv[nextarg],string) && nextarg++)
 Compare string to arg, and if it matches, consume that arg. More...

#define argsleft   (argc-nextarg)
#define COMPAREARG(arg,string)    (argc>(arg) && !strcmp(argv[arg],string))
#define NEW_SECTION(name)
 Define a new section in the ASCII user documentation. More...

#define NEW_SUBSECTION(name)
 Define a new subsection in the ASCII user documentation. More...


Functions

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

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. More...

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

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

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

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

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

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


Variables

int has_command_file = False
const char lissom_version [] = "3.0a1"
const char title_string []
 Main page for online and user documentation. More...

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


Detailed Description

Main RF-LISSOM command-line program.

Header:
/u/nn/cvsroot/lissom/src/lissom.c,v 1.106 2000/08/21 02:54:23 jbednar Exp

Usage information is in the global constant "usage".

Definition in file lissom.c.


Define Documentation

#define COMPAREARG( arg, string )   (argc>(arg) && !strcmp(argv[arg],string))
 

Definition at line 741 of file lissom.c.

#define MAX_PROMPT_CHARS   48
 

Definition at line 49 of file lissom.c.

#define NEW_SECTION( name )
 

Initializer:

\
 fprintf(file,"\nSECTION: " #name "\n\n")
Define a new section in the ASCII user documentation.

Definition at line 789 of file lissom.c.

Referenced by cmd_make_doc().

#define NEW_SUBSECTION( name )
 

Initializer:

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

Definition at line 793 of file lissom.c.

Referenced by cmd_make_doc().

#define RCFILENAME   ".lissomrc"
 

Definition at line 57 of file lissom.c.

#define argsleft   (argc-nextarg)
 

Definition at line 581 of file lissom.c.

#define nextargis( string )   (!strcmp(argv[nextarg],string) && nextarg++)
 

Compare string to arg, and if it matches, consume that arg.

Definition at line 580 of file lissom.c.

Referenced by process_command_line_args().


Function Documentation

cmdstat cmd_help ( int argc,
const char * argv[] )
 

Definition at line 742 of file lissom.c.

cmdstat cmd_make_doc ( int argc,
const char * argv[] )
 

Generate file with on-line documentation.

Definition at line 797 of file lissom.c.

int get_line_from_prompt ( void )
 

CmdDefs_LineGenerator for interactive command-line prompts.

Definition at line 700 of file lissom.c.

void lissom_init_hooks ( void )
 

Initializations for this file and all others.

Definition at line 412 of file lissom.c.

Referenced by main().

int main ( int argc,
char ** argv )
 

Main command-line function.

Definition at line 369 of file lissom.c.

void 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.

Definition at line 589 of file lissom.c.

Referenced by main().

void read_command_file_if_present ( string name )
 

Execute the given file of commands, failing silently if it does not exist.

Definition at line 566 of file lissom.c.

Referenced by main().

void set_filebase ( char * commandfilename )
 

Use filename of first command file as the basename for files created by this program, trimming ".param" if needed.

Definition at line 687 of file lissom.c.

Referenced by process_command_line_args().

void wrong_usage ( const char * filename )
 

Exit and display usage error message.

Definition at line 556 of file lissom.c.

Referenced by process_command_line_args().


Variable Documentation

const char cmd_help_string[]
 

Definition at line 238 of file lissom.c.

const char file_types_string[]
 

Definition at line 288 of file lissom.c.

int has_command_file = False
 

Definition at line 59 of file lissom.c.

const char intro_string[]
 

Initializer:

"`lissom' is a Receptive-Field LISSOM implementation that runs\n"
"on the Cray T3E massively parallel supercomputer as well as on\n"
"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 James A. Bednar\n"

Definition at line 148 of file lissom.c.

const char lissom_version[] = "3.0a1"
 

Definition at line 61 of file lissom.c.

const char param_help_string[]
 

Definition at line 201 of file lissom.c.

const char title_string[]
 

Initializer:

"                         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 137 of file lissom.c.

const char usage[]
 

Definition at line 166 of file lissom.c.


Generated at Mon Aug 21 00:31:06 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000