Main Page Class Hierarchy Compound List File List Compound Members File Members

# parse_trig.h

Go to the documentation of this file.

    00001
    00002 /*
    00003  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
    00004  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
    00005  *
    00006  *    $Id: parse__trig_8h-source.html 2161 2006-05-19 16:55:03Z paulf $
    00007  *
    00008  *    Revision history:
    00009  *     $Log$
    00009  *     Revision 1.1  2006/05/19 16:55:02  paulf
    00009  *     first inclusion
    00009  *
    00010  *     Revision 1.5  2001/07/01 22:04:59  davidk
    00011  *     Added prototype for t_atodbl() which converts an ascii time string to a double.
    00012  *     Function is already defined and used from parse_trig.c.
    00013  *
    00014  *     Revision 1.4  2001/04/12 03:13:13  lombard
    00015  *     Added includes to define macros used here.
    00016  *     Added multiple inclusion exclusion.
    00017  *
    00018  *     Revision 1.3  2001/03/21 22:49:41  cjbryan
    00019  *     ,
    00020  *
    00021  *     Revision 1.2  2001/03/21 02:16:19  alex
    00022  *     Alex 3/20/1: addes .subnet as per CVO request
    00023  *
    00024  *     Revision 1.1  2000/02/14 20:05:54  lucky
    00025  *     Initial revision
    00026  *
    00027  *
    00028  */
    00029
    00030 #ifndef PARSE_TRIG_H
    00031 #define PARSE_TRIG_H
    00032
    00033 /*
    00034  * parse_trig.h : Include file for anyone using parse_trig.c;
    00035  *                defines the SNIPPET structure. This is filled
    00036  *                        by the parse_snippet.c routines, one line at a time.
    00037  *
    00038  * Mon Nov  2 10:58:25 MST 1998 lucky
    00039  *   Y2K compliance:
    00040  *    SNIPPET Struct modified - replaced startYYMMDD
    00041  *    with  YYYYMMDD. Added DATE_LEN and TIME_LEN defines for
    00042  *    better future flexibility.
    00043  *
    00044  */
    00045
    00046 #include <earthworm_defs.h>
    00047 #include <trace_buf.h>
    00048
    00049 #define         DATE_LEN        10
    00050 #define         TIME_LEN        12
    00051 typedef struct
    00052 {
    00053 char    author[AUTHOR_FIELD_SIZE]; /* from earthworm.h */
    00054 char    subnet[MAX_SUBNET_LEN];    /* Alex 2/20/1 as per CVO request: The subnet which caused all this. Optional  */
    00055 char    eventId[EVENTID_SIZE];     /* from earthworm.h */
    00056 char    sta[TRACE_STA_LEN];
    00057 char    chan[TRACE_CHAN_LEN];
    00058 char    net[TRACE_NET_LEN];
    00059 char    startYYYYMMDD[DATE_LEN];        /* as parsed from trigger file */
    00060 char    startHHMMSS[TIME_LEN];          /* as parsed from trigger file */
    00061 char    pad[1];                         /* for data alignment */
    00062 double  starttime;
    00063 int             duration;
    00064 } SNIPPET;
    00065
    00066 /* Function prototypes
    00067  *********************/
    00068 int parseSnippet( char* , SNIPPET* , char** );
    00069
    00070 int t_atodbl(char* YYYYMMDD, char* HHMMSS, double* starttime) ;
    00071
    00072 #endif