1 | /*************************************************************************\ |
---|
2 | * Copyright (c) 2002 The University of Chicago, as Operator of Argonne |
---|
3 | * National Laboratory. |
---|
4 | * Copyright (c) 2002 The Regents of the University of California, as |
---|
5 | * Operator of Los Alamos National Laboratory. |
---|
6 | * This file is distributed subject to a Software License Agreement found |
---|
7 | * in the file LICENSE that is included with this distribution. |
---|
8 | \*************************************************************************/ |
---|
9 | |
---|
10 | /* file: SDDS.h |
---|
11 | * purpose: SDDS data types |
---|
12 | * format |
---|
13 | * |
---|
14 | * Michael Borland, 1993 |
---|
15 | $Log: not supported by cvs2svn $ |
---|
16 | Revision 1.7 2006/08/31 15:06:55 soliday |
---|
17 | Updated to work with SDDS2 |
---|
18 | |
---|
19 | Revision 1.6 2002/08/14 15:40:13 soliday |
---|
20 | Added Open License |
---|
21 | |
---|
22 | Revision 1.5 1999/02/19 22:52:26 borland |
---|
23 | Added SDDS_ANY_INTEGER_TYPE for use with SDDS_CheckXXX procedures. |
---|
24 | |
---|
25 | Revision 1.4 1997/12/19 16:55:46 borland |
---|
26 | Fixed SDDS_RowCount macro (more parentheses). Added prototype for |
---|
27 | SDDS_Malloc. Added new "type": SDDS_ANY_FLOATING_TYPE. |
---|
28 | |
---|
29 | * Revision 1.3 1995/09/06 14:12:01 saunders |
---|
30 | * First test release of SDDS1.5 |
---|
31 | * |
---|
32 | */ |
---|
33 | |
---|
34 | #if !defined(_SDDSTYPES_) |
---|
35 | |
---|
36 | #define _SDDSTYPES_ 1 |
---|
37 | |
---|
38 | #define SDDS_DOUBLE 1 |
---|
39 | #define SDDS_FLOAT 2 |
---|
40 | #define SDDS_LONG 3 |
---|
41 | #define SDDS_ULONG 4 |
---|
42 | #define SDDS_SHORT 5 |
---|
43 | #define SDDS_USHORT 6 |
---|
44 | #define SDDS_STRING 7 |
---|
45 | #define SDDS_CHARACTER 8 |
---|
46 | #define SDDS_NUM_TYPES 8 |
---|
47 | #define SDDS_INTEGER_TYPE(type) ((type)==SDDS_LONG || (type)==SDDS_ULONG || (type)==SDDS_SHORT || (type)==SDDS_USHORT) |
---|
48 | #define SDDS_FLOATING_TYPE(type) ((type)==SDDS_DOUBLE || (type)==SDDS_FLOAT) |
---|
49 | #define SDDS_NUMERIC_TYPE(type) (SDDS_INTEGER_TYPE(type) || SDDS_FLOATING_TYPE(type)) |
---|
50 | #define SDDS_VALID_TYPE(type) (type>=1 && type<=SDDS_NUM_TYPES) |
---|
51 | |
---|
52 | /* used by SDDS_Check*() routines */ |
---|
53 | #define SDDS_ANY_NUMERIC_TYPE (SDDS_NUM_TYPES+1) |
---|
54 | #define SDDS_ANY_FLOATING_TYPE (SDDS_NUM_TYPES+2) |
---|
55 | #define SDDS_ANY_INTEGER_TYPE (SDDS_NUM_TYPES+3) |
---|
56 | |
---|
57 | #endif |
---|