CAmvAlarm::stacked_data

This field contains an array of AM_STACKED_INFO structures.

Each AM_STACKED_INFO structure records the generation time, current alarm state, and alarm message for an instance of the alarm.

The number of instances currently associated with the alarm is found in CAmvAlarm::curr_stacked.

Comments

stacked_data[0] is always the most recent alarm.

Syntax

AM_STACKED_INFO stacked_data[AM_MAX_STACKED+1

Data Type

typedef struct am_stacked_info {

   COR_STAMP gentime;

   AM_STATE_TYPE alarm_state;

   TCHAR alarm_msg[ALARM_MSG_LEN+1];

} AM_STACKED_INFO;

Example

This example prints the stacked instances for an alarm and the time the instances occurred.

CAmvAlarm* alarm_ptr;

int i;

for (i=0; i < alarm_ptr->curr_stacked; i++)

{

   _tprintf(_T("%ld %ld\t%s"),

            alarm_ptr->stacked_data[i].genTime.yyyymmdd,

            alarm_ptr->stacked_data[i].genTime.hhmmsstt,

            alarm_ptr->stacked_data[i].alarm_msg);

}

See Also

CAmvAlarm::curr_stacked

More information

CAmvAlarm Class member overview.