1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 2 // vi: set et ts=4 sw=2 sts=2: 3 /****************************************************************************/ 4 /* */ 5 /* File: scan.h */ 6 /* */ 7 /* Purpose: header file for scanning routines for npinit calls */ 8 /* */ 9 /* Author: Christian Wieners */ 10 /* Institut fuer Computeranwendungen III */ 11 /* Universitaet Stuttgart */ 12 /* Pfaffenwaldring 27 */ 13 /* 70569 Stuttgart */ 14 /* email: ug@ica3.uni-stuttgart.de */ 15 /* */ 16 /* History: December 8, 1996 */ 17 /* low part of former np/scan.c, 15.5.97 */ 18 /* */ 19 /* Remarks: */ 20 /* */ 21 /****************************************************************************/ 22 23 24 25 /****************************************************************************/ 26 /* */ 27 /* auto include mechanism and other include files */ 28 /* */ 29 /****************************************************************************/ 30 31 #ifndef __SCAN__ 32 #define __SCAN__ 33 34 #include "ugtypes.h" 35 #include "heaps.h" 36 37 #include "namespace.h" 38 39 START_UG_NAMESPACE 40 41 /****************************************************************************/ 42 /* */ 43 /* defines in the following order */ 44 /* */ 45 /* compile time constants defining static data size (i.e. arrays) */ 46 /* other constants */ 47 /* macros */ 48 /* */ 49 /****************************************************************************/ 50 51 /****************************************************************************/ 52 /* */ 53 /* general numerics defines */ 54 /* */ 55 /****************************************************************************/ 56 57 #define OPTIONLEN 32 58 #define OPTIONLENSTR "31" 59 #define VALUELEN 64 60 #define VALUELENSTR "63" 61 62 /****************************************************************************/ 63 /* */ 64 /* macros concerned with data descriptors and symbols */ 65 /* */ 66 /****************************************************************************/ 67 68 /****************************************************************************/ 69 /* */ 70 /* macros concerned with solving */ 71 /* */ 72 /****************************************************************************/ 73 74 /****************************************************************************/ 75 /* */ 76 /* structures concerned with symbolic user data management */ 77 /* */ 78 /****************************************************************************/ 79 80 /****************************************************************************/ 81 /* */ 82 /* function declarations */ 83 /* */ 84 /****************************************************************************/ 85 86 /* scanning argument lists */ 87 INT ReadArgvDOUBLE (const char *name, DOUBLE *a, INT argc, char **argv); 88 INT ReadArgvOption (const char *name, INT argc, char **argv); 89 90 END_UG_NAMESPACE 91 92 #endif 93