This field contains an array of AM_COMMENT_INFO structures.
Each AM_COMMENT_INFO structure records a comment entered for an alarm by a user along with the time the comment was generated.
The number of comments currently associated with the alarm is found in CAmvAlarm::curr_comment.
Syntax
AM_COMMENT_INFO stacked_com[AM_MAX_ALARM_COMMENTS];
Data Type
typedef struct am_comment_info {
COR_STAMP gentime;
TCHAR alarm_comment[AM_COMMENT_LEN+1];
} AM_COMMENT_INFO;
Example
This example prints the comments for an alarm and the time the comments were created.
CAmvAlarm* alarm_ptr;
int i;
for (i=0; i < alarm_ptr->curr_comment; i++)
{
_tprintf(_T("%ld %ld\t%s"),
alarm_ptr->stacked_com[i].genTime.yyyymmdd,
alarm_ptr->stacked_com[i].genTime.hhmmsstt,
alarm_ptr->stacked_com[i].alarm_comment);
}
See Also
CAmvAlarm Class member overview. |