source: proiecte/NBody/Tree codes/getparam.h @ 170

Last change on this file since 170 was 170, checked in by (none), 14 years ago
File size: 1.2 KB
Line 
1/****************************************************************************/
2/* GETPARAM.H: include file for command-line processing.                    */
3/* Copyright (c) 1999 by Joshua E. Barnes, Tokyo, JAPAN.                    */
4/****************************************************************************/
5
6#ifndef _getparam_h
7#define _getparam_h
8
9void initparam(string *, string *);
10
11string getparam(string);
12
13int getiparam(string);
14bool getbparam(string);
15double getdparam(string);
16
17/*
18 * Macros to obtain name and version of program.
19 */
20
21#define getargv0()    (getparam("argv0"))
22#define getversion()  (getparam("VERSION"))
23
24/*
25 * Function to inquire about parameter status.
26 */
27
28int getparamstat(string);
29
30/* Bits for parameter status flags. */
31
32#define DEFPARAM        001                     /* param has default value  */
33#define REQPARAM        002                     /* must be given a value    */
34#define ARGPARAM        004                     /* value reset by argument  */
35#define INPARAM         010                     /* param used for input     */
36#define OUTPARAM        020                     /* param used for output    */
37#define HIDPARAM        040                     /* parameter is hidden      */
38
39#endif  /* ! _getparam_h */
Note: See TracBrowser for help on using the repository browser.