ocssw  1.0
/disk01/web/ocssw/build/inc/cdfinc/config.h (r8085/r3)
Go to the documentation of this file.
00001 /******************************************************************************
00002 *
00003 *  NSSDC/CDF                  CDF software distribution configuration.
00004 *
00005 *  Version 1.3, 25-May-95, Hughes STX.
00006 *
00007 *  Modification history:
00008 *
00009 *   V1.0  25-Jan-94, J Love Original version.
00010 *   V1.0a  4-Feb-94, J Love DEC Alpha/OpenVMS port.
00011 *   V1.1   9-Dec-94, J Love CDF V2.5.
00012 *   V1.1a 27-Feb-95, J Love Added `value' qualifier to CDFcompare.
00013 *   V1.2  28-Mar-95, J Love POSIX.
00014 *   V1.2a 18-Apr-95, J Love More POSIX.
00015 *   V1.3  25-May-95, J Love Setting for virtual memory usage under
00016 *               Microsoft C 7.00.  SOLARISbsdDIRUTILSbug.
00017 *
00018 ******************************************************************************/
00019 
00020 #if !defined(CONFIGh_INCLUDEd__)
00021 #define CONFIGh_INCLUDEd__
00022 
00023 /******************************************************************************
00024 *   This file contains the configurable parameters of the CDF distribution.
00025 * Any modifications must be made before the CDF distribution is built.  This
00026 * file is `included' by the CDF library and toolkit when they are compiled
00027 * and linked.  If you are unsure of how to change one of these defaults
00028 * contact CDFsupport.
00029 ******************************************************************************/
00030 
00031 /*****************************************************************************
00032 * Default number of cache buffers for the various file types.  These default
00033 * sizes are generally optimized for physically sequential access of variable
00034 * data values (whether using single, hyper, or sequential reads/writes).  Use
00035 * caution when raising these values on IBM PC and Macintosh systems where
00036 * memory is limited.
00037 *
00038 * Each value is defined as follows...
00039 *
00040 *   MINcacheSINGLE
00041 *   The minimum number of cache buffers for a single-file CDF.  This
00042 *   value is used if (<nVariables> * PERvarSINGLE) is less.
00043 *
00044 *   MAXcacheSINGLE
00045 *   The maximum number of cache buffers for a single-file CDF.  This
00046 *   value is used if (<nVariables> * PERvarSINGLE) is more.
00047 *
00048 *   PERvarSINGLE
00049 *   The number of cache buffers per variable in a single-file CDF.
00050 *   (<nVariables> * PERvarSINGLE) provides fairly optimal results.
00051 *
00052 *   NUMcacheMULTI
00053 *   The number of cache buffers for the `.cdf' file in a multi-file CDF.
00054 *
00055 *   MAXcacheVAR
00056 *   The number of cache buffers for each variable file in a multi-file CDF.
00057 *
00058 * Note that these are only defaults - an application should set the number
00059 * of cache buffers for a file with the Internal Interface to fully optimize
00060 * access to that file.
00061 *
00062 *****************************************************************************/
00063 
00064 #if defined(vms) || defined(unix) || defined(posixSHELL)
00065 #define MINcacheSINGLE  40
00066 #define MAXcacheSINGLE  300
00067 #define NUMcacheMULTI   40
00068 #endif
00069 
00070 #if defined(dos)
00071 #define MINcacheSINGLE  10
00072 #define MAXcacheSINGLE  32
00073 #define NUMcacheMULTI   10
00074 #endif
00075 
00076 #if defined(mac)
00077 #define MINcacheSINGLE  20
00078 #define MAXcacheSINGLE  64
00079 #define NUMcacheMULTI   20
00080 #endif
00081 
00082 #define PERvarSINGLE    4
00083 #define MAXcacheVAR 1
00084 
00085 /*****************************************************************************
00086 * NSSDC Standard.
00087 *     Do CDFs being accessed conform to the NSSDC standard as defined in the
00088 * CDF User's Guide?
00089 *****************************************************************************/
00090 
00091 #define NSSDC_STANDARD          1           /* 1 = yes, 0 = no. */
00092 
00093 /*****************************************************************************
00094 * Should trailing blanks be automatically stripped from CDF pathnames when
00095 * creating or opening a CDF?  1 = yes, 0 = no.
00096 *****************************************************************************/
00097 
00098 #define STRIP_TRAILING_BLANKS_FROM_CDFPATH  1   /* 1 = yes, 0 = no. */
00099 
00100 /*****************************************************************************
00101 * Should a read-only distribution be built with which CDFs can only be read,
00102 * not created or modified.
00103 *****************************************************************************/
00104 
00105 #define BUILD_READ_ONLY_DISTRIBUTION    0       /* 1 = yes, 0 = no. */
00106 
00107 /*****************************************************************************
00108 * Should the explanation text for CDF status codes be built into the CDF
00109 * library (which increases its size).
00110 *****************************************************************************/
00111 
00112 #define INCLUDE_STATUS_TEXT             1       /* 1 = yes, 0 = no. */
00113 
00114 /*****************************************************************************
00115 * Should the default encoding for CDFs created with the Internal Interface be
00116 * HOST_ENCODING (the alternative is NETWORK_ENCODING)?
00117 *****************************************************************************/
00118 
00119 #define DEFAULT_TO_HOST_ENCODING        1       /* 1 = yes, 0 = no. */
00120 
00121 /*****************************************************************************
00122 * Should the default majority for CDFs created with the Internal Interface be
00123 * ROW_MAJOR (the alternate is COL_MAJOR)?
00124 *****************************************************************************/
00125 
00126 #define DEFAULT_TO_ROW_MAJOR            1       /* 1 = yes, 0 = no. */
00127 
00128 /*****************************************************************************
00129 * Should the default format for CDFs created with either the Internal or
00130 * Standard Interface be SINGLE_FILE (the alternative is MULTI_FILE)?
00131 *****************************************************************************/
00132 
00133 #define DEFAULT_TO_SINGLE_FILE          1       /* 1 = yes, 0 = no. */
00134 
00135 /*****************************************************************************
00136 * Should virtual memory be used under Microsoft 7.00.
00137 *****************************************************************************/
00138 
00139 #define USEvMEMORY              0       /* 1 = yes, 0 = no. */
00140 
00141 /*****************************************************************************
00142 * Does a bug exist in the BSD system library involving the directory
00143 * utilities on a Solaris system?  This bug existed in Solaris 2.2 and 2.3
00144 * but has apparently been fixed in Solaris 2.4.  If the first two characters
00145 * of file names are absent, then this bug exists on your system.
00146 *****************************************************************************/
00147 
00148 #define SOLARISbsdDIRUTILSbug           0       /* 1 = yes, 0 = no. */
00149 
00150 /*****************************************************************************
00151 * The default pad values for each data type.
00152 *****************************************************************************/
00153 
00154 #define DEFAULT_BYTE_PADVALUE           0
00155 #define DEFAULT_INT1_PADVALUE           0
00156 #define DEFAULT_UINT1_PADVALUE          0
00157 #define DEFAULT_INT2_PADVALUE           0
00158 #define DEFAULT_UINT2_PADVALUE          0
00159 #define DEFAULT_INT4_PADVALUE           0
00160 #define DEFAULT_UINT4_PADVALUE          0
00161 #define DEFAULT_REAL4_PADVALUE          0.0
00162 #define DEFAULT_FLOAT_PADVALUE          0.0
00163 #define DEFAULT_REAL8_PADVALUE          0.0
00164 #define DEFAULT_DOUBLE_PADVALUE         0.0
00165 #define DEFAULT_CHAR_PADVALUE           ' '
00166 #define DEFAULT_UCHAR_PADVALUE          ' '
00167 #define DEFAULT_EPOCH_PADVALUE          0.0
00168 
00169 /*****************************************************************************
00170 * By default, convert -0.0 to 0.0 when read from or written to a CDF by the
00171 * CDF library?  (Values already existing in the CDF are not modified.)  TRUE
00172 * = yes, FALSE = no.  This default can be overridden on the applicable toolkit
00173 * command lines.  -0.0 is an illegal floating-point value on VAXes and DEC
00174 * Alphas running OpenVMS.  Programs will crash on those machines if -0.0 is
00175 * used in arithmetic operations or is encoded for display.  -0.0 is legal on
00176 * UNIX machines, the IBM PC, and the Macintosh.
00177 *****************************************************************************/
00178 
00179 #if defined(vax) || defined(alphavms)
00180 #define DEFAULT_NEGtoPOSfp0     TRUE
00181 #else
00182 #define DEFAULT_NEGtoPOSfp0     FALSE
00183 #endif
00184 
00185 /******************************************************************************
00186 * Status reporting defaults for toolkit programs.  These defaults can be
00187 * overridden on the command line when a toolkit program is executed.  TRUE
00188 * means report, FALSE means do not report.
00189 ******************************************************************************/
00190 
00191 #define REPORTerrorsDEFAULT TRUE
00192 #define REPORTwarningsDEFAULT   TRUE
00193 #define REPORTinfosDEFAULT  FALSE
00194 
00195 /******************************************************************************
00196 * Command line defaults for CDFedit.
00197 *     These defaults can be overridden on the command line when CDFedit is
00198 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00199 * means `noxxxxx'.
00200 ******************************************************************************/
00201 
00202 #define DEFAULTbrowseEDIT   FALSE       /* [no]browse */
00203 #define DEFAULTformatEDIT   TRUE        /* [no]format */
00204 #define DEFAULTpromptEDIT   FALSE       /* [no]prompt */
00205 #define DEFAULTstatsEDIT    FALSE       /* [no]statistics */
00206 #define DEFAULTzModeEDIT    zMODEoff    /* zMODEoff = zMode/0,
00207                            zMODEon1 = zMode/1,
00208                            zMODEon2 = zMode/2 */
00209 #define DEFAULTgWithEDIT    FALSE       /* [no]gwithentries */
00210 #define DEFAULTvWithEDIT    FALSE       /* [no]vwithentries */
00211 
00212 /******************************************************************************
00213 * Command line defaults for CDFconvert.
00214 *     These defaults can be overridden on the command line when CDFconvert is
00215 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00216 * means `noxxxxx'.
00217 ******************************************************************************/
00218 
00219 #define DEFAULTlogCVT       FALSE       /* [no]log */
00220 #define DEFAULTpctCVT       FALSE       /* [no]percent */
00221 #define DEFAULTdelCVT       FALSE       /* [no]delete */
00222 #define DEFAULTpageCVT      FALSE       /* [no]page */
00223 #define DEFAULTstatsCVT     FALSE       /* [no]statistics */
00224 #define DEFAULTzModeCVT     zMODEoff    /* zMODEoff = zMode/0,
00225                            zMODEon1 = zMode/1,
00226                            zMODEon2 = zMode/2 */
00227 
00228 /******************************************************************************
00229 * Command line defaults for CDFinquire.
00230 *     These defaults can be overridden on the command line when CDFinquire is
00231 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00232 * means `noxxxxx'.
00233 ******************************************************************************/
00234 
00235 #define DEFAULTpageINQ      FALSE       /* [no]page */
00236 #define DEFAULTidINQ        TRUE        /* TRUE if /ID,-id specified.*/
00237 
00238 /******************************************************************************
00239 * Command line defaults for CDFdump.
00240 *     These defaults can be overridden on the command line when CDFdump is
00241 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00242 * means `noxxxxx'.
00243 ******************************************************************************/
00244 
00245 #define DEFAULTpageDUMP     FALSE       /* [no]page */
00246 #define DEFAULTsizesDUMP    FALSE       /* [no]sizes */
00247 #define DEFAULTbriefDUMP    TRUE        /* TRUE == "brief",
00248                            FALSE == "full" */
00249 
00250 /******************************************************************************
00251 * Command line defaults for CDFcompare.
00252 *     These defaults can be overridden on the command line when CDFcompare is
00253 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00254 * means `noxxxxx'.
00255 ******************************************************************************/
00256 
00257 #define DEFAULTpageCMP      FALSE       /* [no]page */
00258 #define DEFAULTlogCMP       FALSE       /* [no]log */
00259 #define DEFAULTattrCMP      TRUE        /* [no]attr */
00260 #define DEFAULTvarCMP       TRUE        /* [no]var */
00261 #define DEFAULTnumberCMP    TRUE        /* [no]number */
00262 #define DEFAULTpctCMP       FALSE       /* [no]percent */
00263 #define DEFAULTetcCMP       TRUE        /* [no]etc */
00264 #define DEFAULTlocationCMP  FALSE       /* [no]location */
00265 #define DEFAULTvalueCMP     FALSE       /* [no]value */
00266 #define DEFAULTstatsCMP     FALSE       /* [no]statistics */
00267 #define DEFAULTzModeCMP     zMODEoff    /* zMODEoff = zMode/0,
00268                            zMODEon1 = zMode/1,
00269                            zMODEon2 = zMode/2.
00270                            This default applies to
00271                            both CDFs being compared. */
00272 
00273 /******************************************************************************
00274 * Command line defaults for CDFstats.
00275 *     These defaults can be overridden on the command line when CDFstats is
00276 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00277 * means `noxxxxx'.
00278 ******************************************************************************/
00279 
00280 #define DEFAULTrangeSTATS   TRUE        /* [no]range */
00281 #define DEFAULTfillSTATS    TRUE        /* [no]fill */
00282 #define DEFAULTupValidsSTATS    FALSE       /* [no]update_valids */
00283 #define DEFAULTupScalesSTATS    FALSE       /* [no]update_scales */
00284 #define DEFAULTupMonoSTATS  FALSE       /* [no]update_monotonic */
00285 #define DEFAULTpageSTATS    FALSE       /* [no]page */
00286 #define DEFAULTformatSTATS  TRUE        /* [no]format */
00287 #define DEFAULTzModeSTATS   zMODEoff    /* zMODEoff = zMode/0,
00288                            zMODEon1 = zMode/1,
00289                            zMODEon2 = zMode/2 */
00290 
00291 /******************************************************************************
00292 * Command line defaults for SkeletonTable.
00293 *     These defaults can be overridden on the command line when SkeletonTable
00294 * is executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00295 * means `noxxxxx'.
00296 ******************************************************************************/
00297 
00298 #define DEFAULTvaluesCDF2SKT    NRVvalues   /* NOvalues = no variables,
00299                            NRVvalues = NRV variables,
00300                            RVvalues = RV variables,
00301                            ALLvalues = all variables,
00302                            NAMEDvalues = named
00303                                      variables. */
00304 #define DEFAULTlogCDF2SKT   FALSE       /* [no]log */
00305 #define DEFAULTformatCDF2SKT    TRUE        /* [no]format */
00306 #define DEFAULTzModeCDF2SKT zMODEoff    /* zMODEoff = zMode/0,
00307                            zMODEon1 = zMode/1,
00308                            zMODEon2 = zMode/2 */
00309 #define DEFAULTscreenCDF2SKT    FALSE       /* TRUE = to screen, FALSE =
00310                            to skeleton table file. */
00311 #define DEFAULTpageCDF2SKT  FALSE       /* [no]page */
00312 
00313 /******************************************************************************
00314 * Command line defaults for SkeletonCDF.
00315 *     These defaults can be overridden on the command line when SkeletonCDF is
00316 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00317 * means `noxxxxx'.
00318 ******************************************************************************/
00319 
00320 #define DEFAULTlogSKT2CDF   FALSE       /* [no]log */
00321 #define DEFAULTdeleteSKT2CDF    FALSE       /* [no]delete */
00322 #define DEFAULTfillvalSKT2CDF   FALSE       /* [no]fillval */
00323 
00324 /******************************************************************************
00325 * `Setup' menu defaults for CDFlist.
00326 *     These defaults can be overridden on the command line when CDFlist is
00327 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00328 * means `noxxxxx'.
00329 ******************************************************************************/
00330 
00331 #define DEFAULTformatLIST   TRUE        /* [no]format */
00332 #define DEFAULTfilterLIST   TRUE        /* [no]filter */
00333 #define DEFAULTfillLIST     TRUE        /* [no]fill */
00334 #define DEFAULTeraseLIST    TRUE        /* [no]erase */
00335 #define DEFAULTsingleLIST   TRUE        /* TRUE == "single",
00336                            FALSE == "multi". */
00337 #define DEFAULTnetworkLIST  TRUE        /* TRUE == "network",
00338                            FALSE == "host". */
00339 #define DEFAULTepochLIST    TRUE        /* TRUE == "epoch",
00340                            FALSE == "epoch1". */
00341 #define DEFAULThorizontalLIST   TRUE        /* TRUE == "horizontal",
00342                            FALSE == "vertical". */
00343 #define DEFAULTzModeLIST    FALSE       /* TRUE == "zmode" present,
00344                            FALSE == "zmode" absent. */
00345 
00346 /******************************************************************************
00347 * `Setup' menu defaults for CDFwalk.
00348 *     These defaults can be overridden on the command line when CDFwalk is
00349 * executed.  For the [no]xxxxx-style qualifiers TRUE means `xxxxx' and FALSE
00350 * means `noxxxxx'.
00351 ******************************************************************************/
00352 
00353 #define DEFAULTformatWALK   TRUE        /* [no]format */
00354 
00355 /******************************************************************************
00356 * Key definitions for CDFedit.
00357 *    These values would be changed, for instance, if problems were encountered
00358 * with a terminal server intercepting (and interpreting) control characters.
00359 * These values can be found in the include file `windoz.h'.
00360 ******************************************************************************/
00361 
00362 #define RETURNkey_EDIT          KB_RETURN
00363 #define SELECTkey_EDIT          KB_RETURN
00364 #define ENTERkey_EDIT           KB_RETURN
00365 #define MODIFYkey_EDIT          KB_RETURN
00366 #define EXITkey_EDIT            KB_CTRL_E
00367 #define HELPkey_EDIT            KB_CTRL_L
00368 #define REFRESHkey_EDIT         KB_CTRL_W
00369 #define DELETECDFkey_EDIT       KB_CTRL_D
00370 #define DELETEATTRorENTRYkey_EDIT   KB_CTRL_D
00371 #define DELETEVARkey_EDIT       KB_CTRL_D
00372 #define CREATECDFkey_EDIT       KB_CTRL_A
00373 #define CREATEVARkey_EDIT       KB_CTRL_A
00374 #define CREATEATTRkey_EDIT      KB_CTRL_A
00375 #define CREATEENTRYkey_EDIT     KB_CTRL_B
00376 #define NEXTFIELDkey_EDIT       KB_RIGHTARROW
00377 #define PREVFIELDkey_EDIT       KB_LEFTARROW
00378 #define INCREMENTkey_EDIT       KB_UPARROW
00379 #define DECREMENTkey_EDIT       KB_DOWNARROW
00380 #define TOGGLESCOPEkey_EDIT     KB_CTRL_T
00381 #define SOLkey_EDIT         KB_CTRL_B
00382 #define EOLkey_EDIT         KB_CTRL_T
00383 #define SOTkey_EDIT         KB_CTRL_A
00384 #define EOTkey_EDIT         KB_CTRL_B
00385 #define NSkey_EDIT          KB_CTRL_N
00386 #define PSkey_EDIT          KB_CTRL_P
00387 #define rENTRYbyNUMBERkey_EDIT      KB_CTRL_A
00388 #define zENTRYbyNUMBERkey_EDIT      KB_CTRL_B
00389 #define TOGGLEinsertMODEkey_EDIT    KB_CTRL_A
00390 #define zMODE0key_EDIT          KB_0
00391 #define zMODE1key_EDIT          KB_1
00392 #define zMODE2key_EDIT          KB_2
00393 
00394 /******************************************************************************
00395 * Key definitions for CDFlist.
00396 *    These values would be changed, for instance, if problems were encountered
00397 * with a terminal server intercepting (and interpreting) control characters.
00398 * These values can be found in the include file `windoz.h'.
00399 ******************************************************************************/
00400 
00401 #define SELECTkey_LIST          KB_RETURN
00402 #define NEXTFIELDkey_LIST           KB_RETURN
00403 #define PREVFIELDkey_LIST       KB_CTRL_B
00404 #define CONTINUEkey_LIST        KB_RETURN
00405 #define HELPDONEkey_LIST        KB_RETURN
00406 #define ACTIONkey_LIST          KB_CTRL_F
00407 #define INSERTTOGGLEkey_LIST        KB_CTRL_A
00408 #define SOLkey_LIST         KB_CTRL_H
00409 #define EOLkey_LIST         KB_CTRL_E
00410 #define DELENDkey_LIST          KB_CTRL_D
00411 #define NEXTITEMkey_LIST        KB_DOWNARROW
00412 #define PREVITEMkey_LIST        KB_UPARROW
00413 #define NEXTVARkey_LIST         KB_DOWNARROW
00414 #define PREVVARkey_LIST         KB_UPARROW
00415 #define DELETEVARkey_LIST       KB_DELETE
00416 #define REFRESHkey_LIST         KB_CTRL_W
00417 #define POPUPkey_LIST           KB_CTRL_P
00418 #define QUITkey_LIST            KB_q
00419 #define PAGEDOWNkey_LIST        KB_d
00420 #define PAGEUPkey_LIST          KB_u 
00421 #define FILTERTOGGLEkey_LIST        KB_f
00422 #define OUTPUTkey_LIST          KB_y
00423 #define NOOUTPUTkey_LIST        KB_n
00424 #define MONOTONINCkey_LIST      KB_PLUS
00425 #define MONOTONDECkey_LIST      KB_MINUS
00426 #define MONOTONFALSEkey_LIST        KB_f
00427 
00428 /******************************************************************************
00429 * Key definitions for CDFwalk.
00430 *    These values would be changed, for instance, if problems were encountered
00431 * with a terminal server intercepting (and interpreting) control characters.
00432 * These values can be found in the include file `windoz.h'.
00433 ******************************************************************************/
00434 
00435 #define SELECTkey_WALK          KB_RETURN
00436 #define NEXTFIELDkey_WALK       KB_RETURN
00437 #define PREVFIELDkey_WALK       KB_CTRL_B
00438 #define CONTINUEkey_WALK            KB_RETURN
00439 #define HELPDONEkey_WALK            KB_RETURN
00440 #define ACTIONkey_WALK          KB_CTRL_F
00441 #define INSERTTOGGLEkey_WALK        KB_CTRL_A
00442 #define MOVEtoBEGINkey_WALK     KB_CTRL_H
00443 #define MOVEtoENDkey_WALK       KB_CTRL_E
00444 #define DELETEtoENDkey_WALK     KB_CTRL_D
00445 #define NEXTITEMkey_WALK        KB_DOWNARROW
00446 #define PREVITEMkey_WALK        KB_UPARROW
00447 #define NEXTRECDIMkey_WALK      KB_DOWNARROW
00448 #define PREVRECDIMkey_WALK      KB_UPARROW
00449 #define NEXTVARkey_WALK         KB_DOWNARROW
00450 #define PREVVARkey_WALK         KB_UPARROW
00451 #define NEXTRECORDkey_WALK      KB_RIGHTARROW
00452 #define PREVRECORDkey_WALK      KB_LEFTARROW
00453 #define REDRAWkey_WALK          KB_CTRL_W
00454 #define POPUPkey_WALK           KB_CTRL_P
00455 #define QUITkey_WALK            KB_q
00456 #define PAGEDOWNkey_WALK        KB_d
00457 #define PAGEUPkey_WALK          KB_u 
00458 #define NEWVARkey_WALK          KB_v
00459 #define INPUTkey_WALK           KB_i
00460 
00461 /*****************************************************************************/
00462 
00463 #endif