/* * Copyright (C) 1998 by Southwest Research Institute (SwRI) * * All rights reserved under U.S. Copyright Law and International Conventions. * * The development of this Software was supported by contracts NAG5-3148, * NAG5-6855, NAS8-36840, NAG5-2323, and NAG5-7043 issued on behalf of * the United States Government by its National Aeronautics and Space * Administration. Southwest Research Institute grants to the Government, * and others acting on its behalf, a paid-up nonexclusive, irrevocable, * worldwide license to reproduce, prepare derivative works, and perform * publicly and display publicly, by or on behalf of the Government. * Other than those rights granted to the United States Government, no part * of this Software may be reproduced in any form or by any means, electronic * or mechanical, including photocopying, without permission in writing from * Southwest Research Institute. All inquiries should be addressed to: * * Director of Contracts * Southwest Research Institute * P. O. Drawer 28510 * San Antonio, Texas 78228-0510 * * * Use of this Software is governed by the terms of the end user license * agreement, if any, which accompanies or is included with the Software * (the "License Agreement"). An end user will be unable to install any * Software that is accompanied by or includes a License Agreement, unless * the end user first agrees to the terms of the License Agreement. Except * as set forth in the applicable License Agreement, any further copying, * reproduction or distribution of this Software is expressly prohibited. * Installation assistance, product support and maintenance, if any, of the * Software is available from SwRI and/or the Third Party Providers, as the * case may be. * * Disclaimer of Warranty * * SOFTWARE IS WARRANTED, IF AT ALL, IN ACCORDANCE WITH THESE TERMS OF THE * LICENSE AGREEMENT. UNLESS OTHERWISE EXPLICITLY STATED, THIS SOFTWARE IS * PROVIDED "AS IS", IS EXPERIMENTAL, AND IS FOR NON-COMMERCIAL USE ONLY, * AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT * SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. * * Limitation of Liability * * SwRI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED AS A RESULT OF USING, * MODIFYING, CONTRIBUTING, COPYING, DISTRIBUTING, OR DOWNLOADING THIS * SOFTWARE. IN NO EVENT SHALL SwRI BE LIABLE FOR ANY INDIRECT, PUNITIVE, * SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGE (INCLUDING LOSS OF BUSINESS, * REVENUE, PROFITS, USE, DATA OR OTHER ECONOMIC ADVANTAGE) HOWEVER IT ARISES, * WHETHER FOR BREACH OF IN TORT, EVEN IF SwRI HAS BEEN PREVIOUSLY ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. YOU HAVE SOLE RESPONSIBILITY FOR ADEQUATE * PROTECTION AND BACKUP OF DATA AND/OR EQUIPMENT USED IN CONNECTION WITH THE * SOFTWARE AND WILL NOT MAKE A CLAIM AGAINST SwRI FOR LOST DATA, RE-RUN TIME, * INACCURATE OUTPUT, WORK DELAYS OR LOST PROFITS RESULTING FROM THE USE OF * THIS SOFTWARE. YOU AGREE TO HOLD SwRI HARMLESS FROM, AND YOU COVENANT NOT * TO SUE SwRI FOR, ANY CLAIMS BASED ON USING THE SOFTWARE. * * Local Laws: Export Control * * You acknowledge and agree this Software is subject to the U.S. Export * Administration Laws and Regulations. Diversion of such Software contrary * to U.S. law is prohibited. You agree that none of the Software, nor any * direct product therefrom, is being or will be acquired for, shipped, * transferred, or reexported, directly or indirectly, to proscribed or * embargoed countries or their nationals, nor be used for nuclear activities, * chemical biological weapons, or missile projects unless authorized by U.S. * Government. Proscribed countries are set forth in the U.S. Export * Administration Regulations. Countries subject to U.S embargo are: Cuba, * Iran, Iraq, Libya, North Korea, Syria, and the Sudan. This list is subject * to change without further notice from SwRI, and you must comply with the * list as it exists in fact. You certify that you are not on the U.S. * Department of Commerce's Denied Persons List or affiliated lists or on the * U.S. Department of Treasury's Specially Designated Nationals List. You agree * to comply strictly with all U.S. export laws and assume sole responsibilities * for obtaining licenses to export or reexport as may be required. * * General * * These Terms represent the entire understanding relating to the use of the * Software and prevail over any prior or contemporaneous, conflicting or * additional, communications. SwRI can revise these Terms at any time * without notice by updating this posting. * * Trademarks * * The SwRI logo is a trademark of SwRI in the United States and other countries. * */ #ifndef __LIBBASE_CODES_H #define __LIBBASE_CODES_H #define EOF_STATUS 0 #define LOS_STATUS 9 #define NEXT_FILE_STATUS 12 #define READ_SPIN_TERMINATE 15 #define READ_SPIN_DATA_GAP 18 #define DREC_NO_SENSOR 2 #define DREC_EOF_NO_SENSOR 3 #define DREC_EOF_SENSOR 6 #define TENSOR_NO_SENSOR 2 /* identical to DREC_NO_SENSOR */ #define TENSOR_EOF_NO_SENSOR 3 /* identical to DREC_EOF_NO_SENSOR */ #define TENSOR_EOF_SENSOR 6 /* identical to DREC_EOF_SENSOR */ #define RESET_CSET_MALLOC -1 #define LOCATE_NOT_FOUND -3 #define LOCATE_PTR_MALLOC -4 #define LOCATE_EX_REALLOC -5 #define CP_BAD_FRAC -6 #define CP_BAD_TIMES -7 #define OPEN_PTR_MALLOC -8 #define OPEN_EX_REALLOC -9 #define RTIME_NO_HEADER -10 #define RTIME_NO_DATA -11 #define CUR_TIME_NOT_FOUND -12 #define ALL_FLAG_MALLOC -13 #define ALLOC_HDR_READ_ERROR -14 #define ALLOC_HDR_MALLOC -15 #define ALLOC_HDR_REALLOC -16 #define CAL_DATA_MALLOC -17 #define PARTIAL_READ -18 #define SEL_SEN_NOT_FOUND -19 #define TIME_OFF_MALLOC -20 #define SCOM_TBL_MALLOC -21 #define SCOM_INDEX_MALLOC -22 #define SCOM_SEN_PTR_MALLOC -23 #define SCOM_PTR_MALLOC -24 #define POT_INFO_IDF_ELE_NOT_FOUND -25 #define POT_INFO_IDF_MANY_BYTES -26 #define POT_INFO_IDF_TBL_NUM -27 #define POT_INFO_IDF_CON_NUM -28 #define POT_INFO_IDF_NO_ENTRY -29 #define CCOM_MATCH_MALLOC -30 #define CCOM_VAL_MALLOC -31 #define CONV_MODE_MISMATCH -32 #define GET_ACTION_MALLOC -33 #define POS_NOT_FOUND -34 #define FILE_POS_MODE -35 #define POS_DATA_READ_ERROR -36 #define POS_HDR_READ_ERROR -37 #define POS_HDR_MALLOC -38 #define POS_HDR_REALLOC -39 #define PBACK_LOS -40 #define PBACK_NEXT_FILE -41 #define RHDR_READ_ERROR -42 #define RHDR_HDR_MALLOC -43 #define RHDR_HDR_REALLOC -44 #define FILL_HEADER -45 #define DREC_NOT_FOUND -46 #define CONV_CAL_MALLOC -47 #define DREC_NO_FILES -48 #define DREC_READ_ERROR -49 #define DREC_HDR_READ_ERROR -50 #define DREC_HDR_MALLOC -51 #define DREC_HDR_REALLOC -52 #define RESET_EULER_REALLOC -53 #define RESET_MODE_REALLOC -54 #define RESET_NOT_FOUND -55 #define RESET_DATA_MALLOC -56 #define RESET_DATA_REALLOC -57 #define RESET_ANGLE_REALLOC -58 #define FILE_POS_EULER -59 #define TOO_MANY_EULER -60 #define ALLOC_EV_REALLOC -61 #define CRIT_TBL_NOT_FOUND -62 #define CONST_ANG_MALLOC -63 #define CONST_TEMP_MALLOC -64 #define CNVT_NOT_FOUND -65 #define TBL_MISC_MALLOC -66 #define TBL_MALLOC -67 #define TBL_IDF_ELE_NOT_FOUND -68 #define TBL_IDF_MANY_BYTES -69 #define TBL_IDF_TBL_NUM -70 #define TBL_IDF_CON_NUM -71 #define TBL_IDF_NO_ENTRY -72 #define UPDATE_IDF_ELE_NOT_FOUND -73 #define UPDATE_IDF_MANY_BYTES -74 #define UPDATE_IDF_TBL_NUM -75 #define UPDATE_IDF_CON_NUM -76 #define UPDATE_IDF_NO_ENTRY -77 #define SEN_IDF_ELE_NOT_FOUND -78 #define SEN_IDF_MANY_BYTES -79 #define SEN_IDF_TBL_NUM -80 #define SEN_IDF_CON_NUM -81 #define SEN_IDF_NO_ENTRY -82 #define ONCE_IDF_ELE_NOT_FOUND -83 #define ONCE_IDF_MANY_BYTES -84 #define ONCE_IDF_TBL_NUM -85 #define ONCE_IDF_CON_NUM -86 #define ONCE_IDF_NO_ENTRY -87 #define ONCE_DATA_MALLOC -88 #define ONCE_D_TYPE_MALLOC -89 #define ONCE_TBL_INFO_MALLOC -90 #define ONCE_CTARGET_MALLOC -91 #define ONCE_CLEN_MALLOC -92 #define ONCE_TDW_LEN_MALLOC -93 #define ONCE_SEN_STAT_MALLOC -94 #define BAD_SCPOT_FORMAT -95 #define BAD_PA_FORMAT -96 #define MODE_TBL_SZ_IDF_ELE_NOT_FOUND -97 #define MODE_TBL_SZ_IDF_MANY_BYTES -98 #define MODE_TBL_SZ_IDF_TBL_NUM -99 #define MODE_TBL_SZ_IDF_CON_NUM -100 #define MODE_TBL_SZ_IDF_NO_ENTRY -101 #define EXP_IDF_ELE_NOT_FOUND -102 #define EXP_IDF_MANY_BYTES -103 #define EXP_IDF_TBL_NUM -104 #define EXP_IDF_CON_NUM -105 #define EXP_IDF_NO_ENTRY -106 #define CRIT_IDF_ELE_NOT_FOUND -107 #define CRIT_IDF_MANY_BYTES -108 #define CRIT_IDF_TBL_NUM -109 #define CRIT_IDF_CON_NUM -110 #define CRIT_IDF_NO_ENTRY -111 #define NEW_IDF_ELE_NOT_FOUND -112 #define NEW_IDF_MANY_BYTES -113 #define NEW_IDF_TBL_NUM -114 #define NEW_IDF_CON_NUM -115 #define NEW_IDF_NO_ENTRY -116 #define NEW_SCALE_MALLOC -117 #define CONV_CAL_VECTOR_MISMATCH -118 #define TIMING_MALLOC -119 #define PBACK_NO_HEADER -120 #define PBACK_NO_DATA -121 #define CHK_DATA_NOT_FOUND -122 #define NUM_CAL_REALLOC -123 #define FILE_POS_DATA_GAP -124 #define READ_IN_MALLOC -125 #define READ_IN_IDF_ELE_NOT_FOUND -126 #define READ_IN_IDF_MANY_BYTES -127 #define READ_IN_IDF_TBL_NUM -128 #define READ_IN_IDF_CON_NUM -129 #define READ_IN_IDF_NO_ENTRY -130 #define CREATE_TBL_MALLOC -131 #define CREATE_IDF_ELE_NOT_FOUND -132 #define CREATE_IDF_MANY_BYTES -133 #define CREATE_IDF_TBL_NUM -134 #define CREATE_IDF_CON_NUM -135 #define CREATE_IDF_NO_ENTRY -136 #define CONST_IDF_ELE_NOT_FOUND -137 #define CONST_IDF_MANY_BYTES -138 #define CONST_IDF_TBL_NUM -139 #define CONST_IDF_CON_NUM -140 #define CONST_IDF_NO_ENTRY -141 #define DKEY_PROJECT -145 #define DKEY_MISSION -146 #define DKEY_EXPERIMENT -147 #define DKEY_INSTRUMENT -148 #define DKEY_VINST -149 #define CALC_TRES_NOT_FOUND -193 #define IMAGE_NOT_FOUND -200 #define IMAGE_READ_ERROR -201 #define IMAGE_HDR_MALLOC -202 #define IMAGE_HDR_REALLOC -203 #define NEXT_FILE_TIME_NOT_FOUND -204 #define NEXT_FILE_TIME_FILE_OPEN -205 #define NEXT_FILE_TIME_INFO_DUP -206 #define PA_MAIN_DATA_MISSING -207 #define TBL_VAR_NOT_CAL -224 #define TBL_VAR_NOT_RAW -225 #define CNVT_BAD_TBL_OPER -226 #define CNVT_NO_TMP -227 #define CNVT_TMP_MALLOC -228 #define CNVT_BAD_TBL_NUM -229 #define MODE_PTR_MALLOC -230 #define MODE_TBL_MISC_MALLOC -231 #define MODE_TBL_IDF_ELE_NOT_FOUND -232 #define MODE_TBL_IDF_MANY_BYTES -233 #define MODE_TBL_IDF_TBL_NUM -234 #define MODE_TBL_IDF_CON_NUM -235 #define MODE_TBL_IDF_NO_ENTRY -236 #define MODE_TBL_VAR_NOT_CAL -237 #define MODE_TBL_VAR_NOT_RAW -238 #define MODE_TBL_MALLOC -239 #define ASCII_AFTER_SENSOR -240 #define CONV_MODE_BAD_MODE -241 #define CONV_MODE_BAD_TBL_NUM -242 #define CRIT_ACT_MALLOC -268 #define CREATE_DATA_MALLOC -272 #define CREATE_DATA_ALL_MALLOC -273 #define CREATE_DATA_ALL_REALLOC -274 #define RESET_PITCH_MALLOC -275 #define RESET_PITCH_REALLOC -276 #define PITCH_MALLOC -277 #define PA_TBL_MALLOC -278 #define SWEEP_TIME_MALLOC -279 #define PINFO_IDF_ELE_NOT_FOUND -280 #define PINFO_IDF_MANY_BYTES -281 #define PINFO_IDF_TBL_NUM -282 #define PINFO_IDF_CON_NUM -283 #define PINFO_IDF_NO_ENTRY -284 #define FILE_POS_PA -285 #define PA_BAD_SRC -286 #define PA_BAD_FRAC -287 #define PA_UNIT_NORMAL -288 #define PA_UNIT_MALLOC -289 #define PA_DATA_MALLOC -290 #define CNVT_BAD_DTYPE -291 #define PA_BAD_TIMES -292 #define RESET_DCOS_MALLOC -318 #define RESET_DCOS_VAL_MALLOC -319 #define RESET_DCOS_VAL_REALLOC -320 #define NO_PA_CONSTANT -327 #define WRONG_DATA_STRUCTURE -332 #define VIDF_OPEN_PTR_MALLOC -333 #define VIDF_OPEN_EX_REALLOC -334 #define CP_MAIN_DATA_MISSING -340 #define CP_BAD_SRC -341 #define BAD_CP_FORMAT -342 #define CP_INFO_IDF_ELE_NOT_FOUND -344 #define CP_INFO_IDF_MANY_BYTES -345 #define CP_INFO_IDF_TBL_NUM -346 #define CP_INFO_IDF_CON_NUM -347 #define CP_INFO_IDF_NO_ENTRY -348 #define ONCE_CSCOPE_MALLOC -349 #define ONCE_BAD_HEADER_FMT -351 #define ONCE_BAD_TENSOR_RANK -352 #define ONCE_BAD_TENSOR_LENGTHS -353 #define HDR_FMT_ONE_MALLOC -354 #define HDR_FMT_TWO_MALLOC -355 #define HDR_FMT_TWO_DQUAL -356 #define UPDATE_IDF_BAD_PA_DEF -357 #define UPDATE_IDF_NO_FILL -358 #define CREATE_TENSOR_DATA_ALL_MALLOC -359 #define CREATE_TENSOR_DATA_ALL_REALLOC -360 #define CREATE_TENSOR_DATA_MALLOC -361 #define WRONG_HEADER_FORMAT -362 #define TENSOR_NOT_FOUND -363 #define TENSOR_NO_FILES -364 #define TENSOR_READ_ERROR -365 #define TENSOR_DQUAL_MALLOC -366 #define TENSOR_DQUAL_REALLOC -367 #define TENSOR_HDR_READ_ERROR -368 #define TENSOR_HDR_MALLOC -369 #define TENSOR_HDR_REALLOC -370 #define TENSOR_MODE_MALLOC -371 #define TENSOR_MODE_REALLOC -372 #define TENSOR_DATA_MALLOC -373 #define TENSOR_DATA_REALLOC -374 /* May be removed later */ #define ONCE_BAD_NUM_TBLS -375 #define ONCE_BAD_CAL_TARGET -376 #define ONCE_BAD_MAX_NSS -377 #define ONCE_BAD_SMP_ID -378 #define ONCE_BAD_DA_METHOD -379 #define ONCE_BAD_SWP_LEN -380 #define ONCE_BAD_SEN_MODE -381 #define TENSOR_DATA_TDW_LEN -382 #define CHK_TDATA_NOT_FOUND -384 #define FIRST_SEN_NOT_FOUND -386 #define START_SPIN_NOT_FOUND -387 #define START_SPIN_NO_POS -388 #define START_SPIN_NO_SPIN -389 #define START_SPIN_ETIME -390 #define START_SPIN_MALLOC -391 #define START_SPIN_ALL_MALLOC -392 #define ONCE_SPIN_OFF_MALLOC -393 #define TURN_OFF_PA_NOT_FOUND -394 #define TURN_ON_EA_NOT_FOUND -395 #define START_ELE_BAD_SENSOR -396 #define START_ELE_SPIN_NO_SENSOR -397 #define READ_SPIN_NOT_FOUND -398 #define READ_SPIN_NO_START -399 #define READ_SPIN_ALL_REALLOC -400 #define READ_SPIN_PARTIAL -401 #define NEW_BAD_TBL_OFFSET -423 #define UPDATE_IDF_BAD_SPIN_DEF -424 #define SPIN_SRC_MALLOC -425 #define START_SPIN_TIME_MALLOC -426 #define SPIN_SRC_BAD_SRC -427 #define SPIN_SINFO_IDF_ELE_NOT_FOUND -428 #define SPIN_SINFO_IDF_MANY_BYTES -429 #define SPIN_SINFO_IDF_TBL_NUM -430 #define SPIN_SINFO_IDF_CON_NUM -431 #define SPIN_SINFO_IDF_NO_ENTRY -432 #define FILE_POS_SPIN -433 #define SPIN_SRC_MAIN_DATA_MISSING -434 #define READ_SPIN_DSRC_READ -435 #define READ_SPIN_DSRC_BACK_SPIN -436 #define READ_SPIN_SENSOR_NOT_FOUND -437 #define ONCE_CDTYPE_MALLOC -438 #define CP_STR_MALLOC -439 #define CP_DATA_MALLOC -440 #define FILE_POS_CP -441 #define CNVT_NO_ADV -442 #define CNVT_BAD_BUF_NUM -443 #define CNVT_SAME_BUF_NUM -444 #define UPDATE_IDF_BAD_POT_DEF -445 #define POT_TBL_MALLOC -446 #define POT_BAD_SRC -447 #define POT_BAD_FRAC -448 #define POT_MALLOC -449 #define TURN_ON_CP_NOT_FOUND -450 #define POT_DATA_MALLOC -451 #define POT_MAIN_DATA_MISSING -452 #define FILE_POS_POT -453 #define POT_BAD_TIMES -454 #define RESET_POT_REALLOC -455 #define UPDATE_IDF_BAD_PMI_DEF -456 #define READ_IN_BAD_TBL_OFFSET -458 #define CREATE_BAD_TBL_OFFSET -459 #define OVERRIDE_NOT_FOUND -460 #define OVERRIDE_NO_POT -461 #define OVERRIDE_NO_POT_TBLS -462 #define OVERRIDE_TOO_MANY_POT_TBLS -463 #define OVERRIDE_TBL_FMT_MALLOC -464 #define OVERRIDE_BAD_TBL_FMT_VALUE -465 #define RESET_CP_REALLOC -466 #define RESET_TINFO_MALLOC -467 #define NO_CP_CONSTANT -468 #define CP_TBL_MALLOC -469 #define UPDATE_IDF_BAD_CP_DEF -470 #define CREATE_DSTR_NOT_FOUND -471 #define EULER_MALLOC -472 #define EULER_MAIN_DATA_MISSING -473 #define EULER_TBL_MALLOC -474 #define BAD_EULER_FORMAT -475 #define EULER_AXIS_MALLOC -476 #define LESS_EULER_CONSTANT_ANGLES -477 #define LESS_EULER_CONSTANT_AXIS -478 #define MORE_EULER_CONSTANT_ANGLES -479 #define MORE_EULER_CONSTANT_AXIS -480 #define EULER_IDF_DATA_MALLOC -481 #define EULER_BAD_SRC -482 #define EULER_BAD_TIMES -483 #define EULER_BAD_FRAC -484 #define EULER_INFO_IDF_ELE_NOT_FOUND -485 #define EULER_INFO_IDF_MANY_BYTES -486 #define EULER_INFO_IDF_TBL_NUM -487 #define EULER_INFO_IDF_CON_NUM -488 #define EULER_INFO_IDF_NO_ENTRY -489 #define DESTROY_NO_IDF_DATA -491 #define DESTROY_NO_TENSOR_DATA -492 #define FILE_POS_INVALID_DATA -493 #define BKGD_MAIN_DATA_MISSING -494 #define BKGD_BAD_SRC -495 #define BAD_BKGD_FORMAT -496 #define BKGD_TBL_MALLOC -497 #define BKGD_MALLOC -498 #define BKGD_DATA_MALLOC -499 #define BKGD_IDF_DATA_MALLOC -500 #define BKGD_INFO_IDF_ELE_NOT_FOUND -501 #define BKGD_INFO_IDF_MANY_BYTES -502 #define BKGD_INFO_IDF_TBL_NUM -503 #define BKGD_INFO_IDF_CON_NUM -504 #define BKGD_INFO_IDF_NO_ENTRY -505 #define FILE_POS_BKGD -506 #define BKGD_BAD_TIMES -507 #define RESET_BKGD_REALLOC -508 #define BKGD_BAD_FRAC -509 #define UPDATE_IDF_BAD_BKGD_DEF -510 #define NO_BKGD_CONSTANT -511 #endif