batch.h File Reference

#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>

Go to the source code of this file.

Classes

struct  DATETIME
struct  HEADER
struct  D2D_SPA_DAT_HEADER
struct  XYCoord
struct  Rectangle
union  FILEHEAD

Defines

#define VoltAnz   256
#define max(a, b)   (((a) > (b)) ? (a) : (b))
#define min(a, b)   (((a) < (b)) ? (a) : (b))
#define PI   M_PI
#define DATEI   0
#define SKALAR   1
#define INTAKT   2
#define BOOL   int
#define TRUE   1
#define FALSE   0
#define MABYT   255
#define MIBYT   0
#define MASHT   32767
#define MISHT   -32768
#define MAFLT   3.4e+38
#define MIFLT   -3.4e-38
#define MADBL   1.7e+308
#define MIDBL   -1.7e-308
#define DUMMYSIZE   952

Typedefs

typedef char CHAR
typedef short SHORT
typedef long LONG
typedef unsigned char UCHAR
typedef unsigned short USHORT
typedef unsigned long ULONG

Enumerations

enum  SCANMODE {
  TopoGraphic, ConstZ, MultiVolt, Spectroscopy,
  TimeScanMode, SPA2DScan, SPA1DScan, SPAKZScan,
  ScanTyp5, ScanTyp6
}
enum  FILETYPE {
  DATFIL, BYTFIL, SHTFIL, FLTFIL,
  DBLFIL, CPXFIL, FIL6, FIL7,
  PGMFIL, EPSFFIL, TGAFIL, D2DFIL,
  SPEFIL, UIMFIL
}

Functions

void * salloc (long, unsigned short)
void sfree (void *)
int stricmp (const char *s1, const char *s2)
char * strupr (char *s1)
long FileCheck (char *, FILETYPE *, FILEHEAD *, FILE **)
int FileRead (FILE *, char *, long)
int FileWrite (char *, char *, FILEHEAD *)


Define Documentation

#define BOOL   int
 

Definition at line 84 of file batch.h.

#define DATEI   0
 

Definition at line 79 of file batch.h.

#define DUMMYSIZE   952
 

Definition at line 103 of file batch.h.

#define FALSE   0
 

Definition at line 90 of file batch.h.

#define INTAKT   2
 

Definition at line 81 of file batch.h.

#define MABYT   255
 

Definition at line 93 of file batch.h.

#define MADBL   1.7e+308
 

Definition at line 99 of file batch.h.

#define MAFLT   3.4e+38
 

Definition at line 97 of file batch.h.

#define MASHT   32767
 

Definition at line 95 of file batch.h.

#define max a,
 )     (((a) > (b)) ? (a) : (b))
 

Definition at line 46 of file batch.h.

Referenced by DataBox::copy(), DataBox::cut(), scandata::getmax(), DataBox::paste(), PeakFindScan::PFrunI0(), raw_image::quick_rgb(), rotate_run(), and raw_image::soft().

#define MIBYT   0
 

Definition at line 94 of file batch.h.

#define MIDBL   -1.7e-308
 

Definition at line 100 of file batch.h.

#define MIFLT   -3.4e-38
 

Definition at line 98 of file batch.h.

#define min a,
 )     (((a) < (b)) ? (a) : (b))
 

Definition at line 47 of file batch.h.

Referenced by DataBox::copy(), DataBox::cut(), scandata::getmin(), DataBox::paste(), raw_image::quick_rgb(), raw_image::soft(), and PrimitiveImExportFile::Write().

#define MISHT   -32768
 

Definition at line 96 of file batch.h.

#define PI   M_PI
 

Definition at line 50 of file batch.h.

#define SKALAR   1
 

Definition at line 80 of file batch.h.

#define TRUE   1
 

Definition at line 87 of file batch.h.

#define VoltAnz   256
 

Definition at line 42 of file batch.h.


Typedef Documentation

typedef char CHAR
 

Definition at line 58 of file batch.h.

typedef long LONG
 

Definition at line 60 of file batch.h.

typedef short SHORT
 

Definition at line 59 of file batch.h.

typedef unsigned char UCHAR
 

Definition at line 61 of file batch.h.

typedef unsigned long ULONG
 

Definition at line 65 of file batch.h.

typedef unsigned short USHORT
 

Definition at line 63 of file batch.h.


Enumeration Type Documentation

enum FILETYPE
 

Enumerator:
DATFIL 
BYTFIL 
SHTFIL 
FLTFIL 
DBLFIL 
CPXFIL 
FIL6 
FIL7 
PGMFIL 
EPSFFIL 
TGAFIL 
D2DFIL 
SPEFIL 
UIMFIL 

Definition at line 54 of file batch.h.

enum SCANMODE
 

Enumerator:
TopoGraphic 
ConstZ 
MultiVolt 
Spectroscopy 
TimeScanMode 
SPA2DScan 
SPA1DScan 
SPAKZScan 
ScanTyp5 
ScanTyp6 

Definition at line 52 of file batch.h.


Function Documentation

long FileCheck char *  ,
FILETYPE ,
FILEHEAD ,
FILE ** 
 

Definition at line 86 of file fileio.c.

References BYTFIL, CPXFIL, D2DFIL, DATFIL, DBLFIL, FLTFIL, getpgmhval(), PGMFIL, SEEK_SET, SHTFIL, SPEFIL, strupr(), XYCoord::x, FILEHEAD::xydim, and XYCoord::y.

Referenced by PrimitiveImExportFile::gnuRead().

int FileRead FILE *  ,
char *  ,
long 
 

Definition at line 232 of file fileio.c.

int FileWrite char *  ,
char *  ,
FILEHEAD
 

Definition at line 257 of file fileio.c.

References BYTFIL, CPXFIL, DATFIL, DBLFIL, FLTFIL, PGMFIL, SHTFIL, strupr(), XYCoord::x, FILEHEAD::xydim, and XYCoord::y.

void* salloc long  ,
unsigned  short
 

Referenced by PrimitiveImExportFile::Write().

void sfree void *   ) 
 

Definition at line 73 of file fileio.c.

int stricmp const char *  s1,
const char *  s2
 

Definition at line 24 of file fileio.c.

char* strupr char *  s1  ) 
 

Definition at line 37 of file fileio.c.

Referenced by FileCheck(), and FileWrite().


Generated on Sat Apr 1 09:04:50 2006 for GXSM by  doxygen 1.4.6