ewdb_internal_GetStaMagsForCodaDur()

Prototype: |
int ewdb_internal_GetStaMagsForCodaDur( | EWDBid idMagnitude, EWDB_StationMagStruct * pStaMags, int * pNumStaMagsFound, int * pNumStaMagsRetrieved, int BufferLen);
Source File: | src/oracle/schema-working/src/parametric/ewdb_internal_GetStaMagsForCodaDur.c
Description: | The function retrieves a list of "Peak Amplitude" based station magnitudes that support a single summary amplitude magnitude (ML, Mb, etc.) for an Event. See EWDB_StationMagStruct for a description of the information retrieved for each associated stamag. Because this function deals with only amplitude based measurements, it will never fill in the StaMagUnion.CodaDur information
RETURN CODE INFO
Return Type: | int
Return Value | Description
EWDB_RETURN_FAILURE | Fatal error. See logfile for details.
EWDB_RETURN_SUCCESS | Success
EWDB_RETURN_WARNING | Partial Success. The call executed successfully, but the caller's buffer was not large enough to accommodate all of the StaMags found.
PARAMETER INFO
Parameter | Type | Description
idMagnitude | EWDBid | DB ID of the summary magnitude for which the caller wants to retrieve associated station magnitudes. (The caller wants to retrieve station magnitudes for this summary magnitude.)
pStaMags | EWDB_StationMagStruct * |
pNumStaMagsFound | int * | Pointer to an integer where the function will write the number of station magnitudes found.
pNumStaMagsRetrieved | int * | Pointer to an integer where the function will write the number of station magnitudes placed in the callers buffer(pStaMags).
BufferLen | int | Size of the pStaMags buffer as a multiple of EWDB_StationMagStruct. (example: 15 structs)
Group: | EWDB_API_LIB
Language: | C
Location: | ./src/oracle/schema-working/src/include/internal/ewdb_internal_functions.h