MusSystem *MusPage::GetLast( ) { if ( m_children.empty() ) return NULL; int i = GetSystemCount() - 1; return (MusSystem*)m_children[i]; }
MusSystem *MusPage::GetNext( MusSystem *system ) { if ( !system || m_children.empty()) return NULL; int i = this->GetChildIndex( system ); if ((i == -1 ) || ( i >= GetSystemCount() - 1 )) return NULL; return (MusSystem*)m_children[i + 1]; }
int CheckValidity(char *token) { static long Old1msTime=0; strcpy(tempbuf,""); if (!strcmp ("TIME",token)) { sprintf(tempbuf,"%ld ", Get1msTimeMS()); } if (!strcmp ("NG",token)) { sprintf(tempbuf,"%d %d ", GPS_TIMEOUT, (int)GPS_TimeoutCounter); } if (!strcmp ("TCYC",token)) { sprintf(tempbuf,"%ld ",(Get1msTime()-Old1msTime)); Old1msTime=Get1msTime(); } // CRC error counter (HostMsg) if (!strcmp ("CRCE",token)) { sprintf(tempbuf,"%ld ",CRC_err_counter); } //GetSystemCount if (!strcmp ("SCT",token)) { sprintf(tempbuf,"%ld ", GetSystemCount()); } if (!strcmp ("OVIN",token)) { sprintf(tempbuf,"%d ", InOverFlowCounter); } if (!strcmp ("OVOUT",token)) { sprintf(tempbuf,"%d ", OutOverFlowCounter); } if (strlen(tempbuf)>0) { return(TRUE); } else { return(FALSE); } }