source: sans/XOP_Dev/EventLoader/EventLoadWave.h @ 878

Last change on this file since 878 was 878, checked in by srkline, 10 years ago

adding the event loader code to the XOP dev repository

File size: 1.8 KB
RevLine 
[878]1// EventLoadWave.h -- quates for SimpleLoadWave XOP
2
3// Custom error codes.
4enum {
5        IMPROPER_FILE_TYPE= 1 + FIRST_XOP_ERR,  /* "Not the type of file this XOP loads." */
6        NO_DATA_FOUND,                                                  /* "Could not find at least one row of wave data in the file." */
7        EXPECTED_TD_FILE,                                               /* "Expected name of loadable file." */
8        EXPECTED_BASENAME,                                              /* "Expected base name for new waves." */
9        OLD_IGOR                                                                /* "SimpleLoadWave requires Igor Pro 5.00 or later." */
10};
11#define XOP_FIRST_ERR IMPROPER_FILE_TYPE
12#define XOP_LAST_ERR EXPECTED_BASENAME
13
14
15/// Event-mode specific definitons
16
17#define AIMTYPE_XY  0 // XY Event
18#define AIMTYPE_XYM 2 // XY Minor event
19#define AIMTYPE_MIR 1 // Minor rollover event
20#define AIMTYPE_MAR 3 // Major rollover event
21
22#define USECSPERTICK 0.1 // microseconds
23#define TICKSPERUSEC 10
24#define MAXBINS 2000
25#define XBINS   128
26#define YBINS   128
27
28
29
30
31// Structure used in loading file.
32typedef struct ColumnInfo {
33        char waveName[MAX_OBJ_NAME+1];                  /* name of wave for this column */
34        int waveAlreadyExisted;                                 /* truth that wave existed before XOP executed */
35        waveHndl waveHandle;                                    /* handle to this wave */
36        void* waveData;                                                 /* pointer to wave data once it has been locked */
37        /* put other column information here */
38}ColumnInfo, *ColumnInfoPtr;
39
40
41///////////
42
43
44// Misc Equates
45#define EVENT_COUNTS_ONLY (FILE_LOADER_LAST_FLAG<<1)    /* flag bit for /W command line option */
46#define EVENT_REMOVE_BAD_EVENTS (FILE_LOADER_LAST_FLAG<<2)      //flag bit for /R command line option
47
48// Prototypes
49
50// In EventLoadWave.c
51int LoadWave(int calledFromFunction, int flags, const char* baseName, const char* symbolicPathName, const char* fileParam);
52HOST_IMPORT int main(IORecHandle ioRecHandle);
53
54// In EventLoadWaveOperation.c
55int RegisterEventLoadWave(void);
Note: See TracBrowser for help on using the repository browser.