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

# earthworm_defs.h File Reference

Go to the source code of this file.

## Defines
#define | WAVE_SERVER_PORT 16022
#define | ERR_LAPPED 10000
#define | ERR_SEQGAP 10001
#define | ERR_OVERFLOW 10002
#define | ERR_UNTRACKED 10003
#define | EW_SUCCESS 1
#define | EW_FAILURE 0
#define | EW_WARNING 2
#define | TRUE 1
#define | FALSE 0
#define | TM_YEAR_CORR 1900 /** Y2K correction for tm_year field **/
#define | MAX_PHS_PER_EQ 250
#define | MAX_BYTES_PER_EQ (450+225*(MAX_PHS_PER_EQ))
#define | MAX_TRIG_BYTES MAX_BYTES_PER_EQ
#define | DB_MAX_PHS_PER_EQ 1000
#define | DB_MAX_BYTES_PER_EQ (450+225*(DB_MAX_PHS_PER_EQ))
#define | DB_MAX_TRIG_BYTES DB_MAX_BYTES_PER_EQ
#define | AUTHOR_FIELD_SIZE 50
#define | EVENTID_SIZE 50
#define | MAX_SUBNET_LEN 10
#define | MAX_DIR_LEN 150
#define | MAX_EMAIL_MSG_SIZE 32000
#define | MAX_MSG_PREFIX_SIZE 256
#define | MAX_MOD_STR 32
#define | MAX_INST_STR 32
#define | MAX_RING_STR 32
#define | MAX_TYPE_STR 32
#define | MAG_NULL -1
#define | MAGTYPE_UNDEFINED 0
#define | MAGTYPE_LOCAL_PEAK2PEAK 1
#define | MAGTYPE_MOMENT 2
#define | MAGTYPE_BODYWAVE 3
#define | MAGTYPE_SURFACEWAVE 4
#define | MAGTYPE_SCALAR_MOMENT 5
#define | MAGTYPE_DURATION 6
#define | MAGTYPE_LOCAL_ZERO2PEAK 7
#define | MAGTYPE_MBLG 8
#define | MAGTYPE_COUNT 9
#define | N_MAG_NAMES MAGTYPE_COUNT
#define | AMPTYPE_NONE 0
#define | AMPTYPE_ML 1
#define | AMPTYPE_MB 2
#define | AMPTYPE_MBLG 3
#define | AMPTYPE_MWP 4
#define | AMPTYPE_MS 5
#define | AMPTYPE_COUNT (AMPLITUDE_TYPE)6
## Typedefs
typedef short | AMPLITUDE_TYPE
## Variables
char * | MagNames [MAGTYPE_COUNT]
const char * | AMPLITUDE_NAMES [AMPTYPE_COUNT]

## Define Documentation

#define AMPTYPE_COUNT (AMPLITUDE_TYPE)6

| Definition at line 156 of file earthworm_defs.h. Referenced by GetGlobalAmpTypeName(), and StringToAmp().

#define AMPTYPE_MB 2

| Definition at line 151 of file earthworm_defs.h.

#define AMPTYPE_MBLG 3

| Definition at line 152 of file earthworm_defs.h.

#define AMPTYPE_ML 1

| Definition at line 150 of file earthworm_defs.h.

#define AMPTYPE_MS 5

| Definition at line 154 of file earthworm_defs.h.

#define AMPTYPE_MWP 4

| Definition at line 153 of file earthworm_defs.h.

#define AMPTYPE_NONE 0

| Definition at line 149 of file earthworm_defs.h. Referenced by GetGlobalAmpTypeName(), InitGlobalAmp(), and InitGlobalAmpLine().

#define AUTHOR_FIELD_SIZE 50

| Definition at line 74 of file earthworm_defs.h. Referenced by parseSnippet(), and rd_strongmotionII().

#define DB_MAX_BYTES_PER_EQ (450+225*(DB_MAX_PHS_PER_EQ))

| Definition at line 70 of file earthworm_defs.h.

#define DB_MAX_PHS_PER_EQ 1000

| Definition at line 69 of file earthworm_defs.h. Referenced by SACPABase_end_scn().

#define DB_MAX_TRIG_BYTES DB_MAX_BYTES_PER_EQ

| Definition at line 71 of file earthworm_defs.h.

#define ERR_LAPPED 10000

| Definition at line 29 of file earthworm_defs.h.

#define ERR_OVERFLOW 10002

| Definition at line 31 of file earthworm_defs.h.

#define ERR_SEQGAP 10001

| Definition at line 30 of file earthworm_defs.h.

#define ERR_UNTRACKED 10003

| Definition at line 33 of file earthworm_defs.h.

#define EVENTID_SIZE 50

| Definition at line 75 of file earthworm_defs.h. Referenced by parseSnippet(), rd_strongmotionII(), SACPABase_next_ev(), SACPABase_next_ev_review(), and SUDSPA_next_ev().

#define EW_FAILURE 0

| Definition at line 39 of file earthworm_defs.h. Referenced by AHPA_init(), AHPA_next(), AHPA_next_ev(), AppendDateStr(), ArcMsg2EWEvent(), BuildDateStr(), BuildHyp(), BuildPhs(), BuildTerm(), ConvertNSNMsg(), CreateDir(), CreateSACSupportFiles(), EWEvent2ArcMsg(), get_prog_name(), GetNEICStaList(), GetNextLine(), GlEvt2EWEvent(), GSEPA_end_ev(), GSEPA_init(), GSEPA_next(), GSEPA_next_ev(), InitEWChan(), InitEWEvent(), k2evt2ew(), MatchNeic2SCN(), PA_close(), PA_end_ev(), PA_init(), PA_next(), PA_next_ev(), ParseEllipse(), ParseMagnitude(), ParseNSNMsg(), ParsePhase(), ParsePhaseMagnitude(), read_frame(), read_glevt_phasecard(), read_glevt_sumcard(), read_head(), read_tag(), RecursiveCreateDir(), Sac2EWEvent(), SacHeaderInit(), SACPABase_end_ev(), SACPABase_end_scn(), SACPABase_end_scn_gm(), SACPABase_init(), SACPABase_next_ev(), SACPABase_next_ev_review(), SACPABase_write_amppicks(), SACPABase_write_parametric(), SACPABase_write_trace(), SEIPA_end_ev(), SEIPA_init(), SEIPA_next(), SEIPA_next_ev(), StructMakeLocal(), SUDSPA_init(), SUDSPA_next(), SUDSPA_next_ev(), SwapDo(), TANKPA_init(), TANKPA_next(), TANKPA_next_ev(), write_glevt_phasecard(), and write_glevt_sumcard().

#define EW_SUCCESS 1

| Definition at line 38 of file earthworm_defs.h. Referenced by AHPA_init(), AHPA_next_ev(), AppendDateStr(), ArcMsg2EWEvent(), BuildDateStr(), BuildPhs(), BuildTerm(), ConvertNSNMsg(), CreateDir(), CreateSACSupportFiles(), EWEvent2ArcMsg(), get_prog_name(), GetNEICStaList(), GetNextLine(), GlEvt2EWEvent(), GSEPA_close(), GSEPA_end_ev(), GSEPA_init(), GSEPA_next(), GSEPA_next_ev(), InitEWChan(), InitEWEvent(), k2evt2ew(), logit_init(), MatchNeic2SCN(), open_seisan_file(), PA_close(), PA_end_ev(), PA_init(), PA_next(), PA_next_ev(), ParseEllipse(), ParseMagnitude(), ParseNSNMsg(), ParsePhase(), ParsePhaseMagnitude(), ProduceSAC_NextStationForEvent(), read_frame(), read_glevt_phasecard(), read_glevt_sumcard(), read_head(), read_tag(), RecursiveCreateDir(), Sac2EWEvent(), SacHeaderInit(), SACPA_close(), SACPA_end_ev(), SACPA_init(), SACPA_next(), SACPA_next_ev(), SACPABase_close(), SACPABase_end_ev(), SACPABase_init(), SACPABase_next_ev(), SACPABase_next_ev_review(), SACPABase_write_amppicks(), SEIPA_close(), SEIPA_end_ev(), SEIPA_init(), SEIPA_next(), SEIPA_next_ev(), StructMakeLocal(), SUDSPA_init(), SUDSPA_next(), SwapDo(), TANKPA_close(), TANKPA_end_ev(), TANKPA_init(), TANKPA_next(), TANKPA_next_ev(), WriteSAC_Event_BAD(), and WriteSAC_NextStationForEvent().

#define EW_WARNING 2

| Definition at line 40 of file earthworm_defs.h.

#define FALSE 0

| Definition at line 43 of file earthworm_defs.h. Referenced by add_seisan_channel(), ArcMsg2EWEvent(), close_gse_file(), close_seisan_file(), ConvertNSNMsg(), end_seisan_channel(), FreezeTime(), GetNextLine(), init_wait_timer(), InitEWEvent(), CMFCDialogAppBase::InitInstance(), open_gse_file(), open_seisan_file(), PostSemaphore(), ReleaseTime(), SACPABase_close(), SACPABase_end_scn(), SACPABase_end_scn_gm(), SEIPA_init(), start_seisan_channel(), start_wait_timer(), write_gse_channel_data(), write_gse_channel_header(), and write_gse_channel_trailer().

#define MAG_NULL -1

| Definition at line 94 of file earthworm_defs.h. Referenced by GlEvt2EWEvent().

#define MAGTYPE_BODYWAVE 3

| Definition at line 117 of file earthworm_defs.h.

#define MAGTYPE_COUNT 9

| Definition at line 124 of file earthworm_defs.h.

#define MAGTYPE_DURATION 6

| Definition at line 120 of file earthworm_defs.h. Referenced by ArcMsg2EWEvent(), ParseMagnitude(), ParsePhaseMagnitude(), ProduceSAC_NextStationForEvent(), and Sac2EWEvent().

#define MAGTYPE_LOCAL_PEAK2PEAK 1

| Definition at line 115 of file earthworm_defs.h.

#define MAGTYPE_LOCAL_ZERO2PEAK 7

| Definition at line 121 of file earthworm_defs.h. Referenced by ParseMagnitude(), and ParsePhaseMagnitude().

#define MAGTYPE_MBLG 8

| Definition at line 122 of file earthworm_defs.h.

#define MAGTYPE_MOMENT 2

| Definition at line 116 of file earthworm_defs.h.

#define MAGTYPE_SCALAR_MOMENT 5

| Definition at line 119 of file earthworm_defs.h.

#define MAGTYPE_SURFACEWAVE 4

| Definition at line 118 of file earthworm_defs.h.

#define MAGTYPE_UNDEFINED 0

| Definition at line 114 of file earthworm_defs.h. Referenced by MagServerResult::MagServerResult().

#define MAX_BYTES_PER_EQ (450+225*(MAX_PHS_PER_EQ))

| Definition at line 62 of file earthworm_defs.h.

#define MAX_DIR_LEN 150

| Definition at line 79 of file earthworm_defs.h. Referenced by close_seisan_file(), and RecursiveCreateDir().

#define MAX_EMAIL_MSG_SIZE 32000

| Definition at line 81 of file earthworm_defs.h.

#define MAX_INST_STR 32

| Definition at line 86 of file earthworm_defs.h.

#define MAX_MOD_STR 32

| Definition at line 85 of file earthworm_defs.h.

#define MAX_MSG_PREFIX_SIZE 256

| Definition at line 82 of file earthworm_defs.h.

#define MAX_PHS_PER_EQ 250

| Definition at line 59 of file earthworm_defs.h.

#define MAX_RING_STR 32

| Definition at line 87 of file earthworm_defs.h.

#define MAX_SUBNET_LEN 10

| Definition at line 77 of file earthworm_defs.h. Referenced by parseSnippet().

#define MAX_TRIG_BYTES MAX_BYTES_PER_EQ

| Definition at line 66 of file earthworm_defs.h.

#define MAX_TYPE_STR 32

| Definition at line 88 of file earthworm_defs.h.

#define N_MAG_NAMES MAGTYPE_COUNT

| Definition at line 141 of file earthworm_defs.h.

#define TM_YEAR_CORR 1900 /** Y2K correction for tm_year field **/

| Definition at line 47 of file earthworm_defs.h.

#define TRUE 1

| Definition at line 42 of file earthworm_defs.h. Referenced by add_seisan_channel(), ArcMsg2EWEvent(), close_gse_file(), close_seisan_file(), ConvertNSNMsg(), end_seisan_channel(), FreezeTime(), GetNextLine(), GlEvt2EWEvent(), open_gse_file(), open_seisan_file(), ReleaseTime(), SACPABase_init(), SACPABase_next_scn(), SEIPA_init(), start_seisan_channel(), write_gse_channel_data(), write_gse_channel_header(), and write_gse_channel_trailer().

#define WAVE_SERVER_PORT 16022

| Definition at line 23 of file earthworm_defs.h.

## Typedef Documentation

typedef short AMPLITUDE_TYPE

| Definition at line 147 of file earthworm_defs.h.

## Variable Documentation

const char* AMPLITUDE_NAMES[AMPTYPE_COUNT]`[static]`

| Initial value:
    {
        "?"
      , "ML"
      , "mb"
      , "mblg"
      , "Mwp"
      , "MS"
    }
Definition at line 159 of file earthworm_defs.h.

char* MagNames[MAGTYPE_COUNT]`[static]`

| Initial value:
    {
       "??"
     , "ML"
     , "Mw"
     , "Mb"
     , "Ms"
     , "Mwp"
     , "Md"
     , "ML"
     , "mblg"
    }
Definition at line 126 of file earthworm_defs.h.