1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
#/*##########################################################################
# Copyright (C) 2004-2013 European Synchrotron Radiation Facility
#
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
# the ESRF by the Software group.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This file is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
#############################################################################*/
/***************************************************************************
*
* File: SpecFileP.h
*
* Description: Include file for treating spec data files.
*
* Author: Vicente Rey
*
* Created: 2 March 1995
*
* (copyright by E.S.R.F. March 1995)
*
***************************************************************************/
#ifndef SPECFILE_P_H
#define SPECFILE_P_H
/*
* Defines.
*/
#define FILE_HEADER 0
#define SCAN 1
#define FROM_SCAN 0
#define FROM_FILE 1
#define SF_COMMENT 'C'
#define SF_DATE 'D'
#define SF_EPOCH 'E'
#define SF_FILE_NAME 'F'
#define SF_GEOMETRY 'G'
#define SF_INTENSITY 'I'
#define SF_LABEL 'L'
#define SF_MON_NORM 'M'
#define SF_COLUMNS 'N'
#define SF_MOTOR_NAMES 'O'
#define SF_MOTOR_POSITIONS 'P'
#define SF_RECIP_SPACE 'Q'
#define SF_RESULTS 'R'
#define SF_SCAN_NUM 'S'
#define SF_TIME_NORM 'T'
#define SF_USER_DEFINED 'U'
#define SF_TEMPERATURE 'X'
#define SF_MCA_DATA '@'
/*
* Library internal functions
*/
extern int sfSetCurrent ( SpecFile *sf, long index, int *error);
extern ObjectList *findScanByIndex ( ListHeader *list, long index );
extern ObjectList *findScanByNo ( ListHeader *list, long scan_no, long order );
extern void freeArr ( void ***ptr, long lines );
extern void freeAllData ( SpecFile *sf );
extern long mulstrtod ( char *str, double **arr, int *error );
extern int sfGetHeaderLine ( SpecFile *sf, int from, char character,
char **buf,int *error);
#endif /* SPECFILE_P_H */
|