source: trunk/include/parse_trig.h @ 5054

Revision 1520, 2.2 KB checked in by lombard, 14 years ago (diff)

Added location code to snippet structure.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2/*
3 *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
4 *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
5 *
6 *    $Id$
7 *
8 *    Revision history:
9 *     $Log$
10 *     Revision 1.6  2004/05/26 18:42:57  lombard
11 *     Added location code to snippet structure.
12 *
13 *     Revision 1.5  2001/07/01 22:04:59  davidk
14 *     Added prototype for t_atodbl() which converts an ascii time string to a double.
15 *     Function is already defined and used from parse_trig.c.
16 *
17 *     Revision 1.4  2001/04/12 03:13:13  lombard
18 *     Added includes to define macros used here.
19 *     Added multiple inclusion exclusion.
20 *
21 *     Revision 1.3  2001/03/21 22:49:41  cjbryan
22 *     ,
23 *
24 *     Revision 1.2  2001/03/21 02:16:19  alex
25 *     Alex 3/20/1: addes .subnet as per CVO request
26 *
27 *     Revision 1.1  2000/02/14 20:05:54  lucky
28 *     Initial revision
29 *
30 *
31 */
32
33#ifndef PARSE_TRIG_H
34#define PARSE_TRIG_H
35
36/*
37 * parse_trig.h : Include file for anyone using parse_trig.c;
38 *                defines the SNIPPET structure. This is filled
39 *                        by the parse_snippet.c routines, one line at a time.
40 *
41 * Mon Nov  2 10:58:25 MST 1998 lucky
42 *   Y2K compliance:
43 *    SNIPPET Struct modified - replaced startYYMMDD
44 *    with  YYYYMMDD. Added DATE_LEN and TIME_LEN defines for 
45 *    better future flexibility.
46 *
47 */
48
49#include <earthworm_defs.h>
50#include <trace_buf.h>
51
52#define         DATE_LEN        10
53#define         TIME_LEN        12
54typedef struct
55{
56    char    author[AUTHOR_FIELD_SIZE]; /* from earthworm.h */
57    char    subnet[MAX_SUBNET_LEN];    /* Alex 2/20/1 as per CVO request: The subnet which caused all this. Optional  */
58    char    eventId[EVENTID_SIZE];     /* from earthworm.h */
59    char    sta[TRACE2_STA_LEN];
60    char    chan[TRACE2_CHAN_LEN];
61    char    net[TRACE2_NET_LEN];
62    char    loc[TRACE2_LOC_LEN];
63    char    startYYYYMMDD[DATE_LEN];    /* as parsed from trigger file */
64    char    startHHMMSS[TIME_LEN];              /* as parsed from trigger file */
65    char    pad[1];                     /* for data alignment */
66    double  starttime;
67    int     duration;
68} SNIPPET;
69
70/* Function prototypes
71 *********************/
72int parseSnippet( char* , SNIPPET* , char** );
73
74int t_atodbl(char* YYYYMMDD, char* HHMMSS, double* starttime) ;
75
76#endif
Note: See TracBrowser for help on using the repository browser.