Logo Search packages:      
Sourcecode: icomlib version File versions  Download package

const char * PCP::PCPGetFilterStr (  ) 

Get the current session's filter setting (const char* version).

Checks PCPRadio struct for member PCPFilter for the current filter setting. It then decodes the pcrcmd_t version into standard string values.

Returns:
the character string of the current filter setting
See also:
PCPGetFilter PCPSetFilter

Definition at line 1096 of file pcp.cpp.

References PRadInf::PCPFilter, PCPRadio, and PCPTemp.

{
    memset(PCPTemp, '\0', sizeof(PCPTemp));

    if (strcmp(PCRFLTR230, PCPRadio->PCPFilter)==0) {
      strcpy(PCPTemp, "230");
      return PCPTemp;
    } else if (strcmp(PCRFLTR50, PCPRadio->PCPFilter)==0) {
      strcpy(PCPTemp, "50");
      return PCPTemp;
    } else if (strcmp(PCRFLTR15, PCPRadio->PCPFilter)==0) {
      strcpy(PCPTemp, "15");
      return PCPTemp;
    } else if (strcmp(PCRFLTR6, PCPRadio->PCPFilter)==0) {
      strcpy(PCPTemp, "6");
      return PCPTemp;
    } else if (strcmp(PCRFLTR3, PCPRadio->PCPFilter)==0) {
      strcpy(PCPTemp, "3");
      return PCPTemp;
    } 

    return PCPRadio->PCPFilter;
}


Generated by  Doxygen 1.6.0   Back to index