src/readFMR.cpp
// Convert string type description to code specified in fmr.h
Convert string type description to code specified in fmr.h
Convert string type description to code specified in fmr . h
static int stdstr_to_type(std::string &stdstr) {
  const char *str = stdstr.c_str();
  if (strcmp(str, "ANSI_2004") == 0)
    return (FMR_STD_ANSI);
  if (strcmp(str, "ISO_2005") == 0)
    return (FMR_STD_ISO);
  if (strcmp(str, "ISONC_2005") == 0)
    return (FMR_STD_ISO_NORMAL_CARD);
  if (strcmp(str, "ISOCC_2005") == 0)
    return (FMR_STD_ISO_COMPACT_CARD);
  if (strcmp(str, "ANSI_2007") == 0)
    return (FMR_STD_ANSI07);
  return (-1);
}
static int stdstr_to_type ( std :: string & stdstr ) { const char * str = stdstr . c_str ( ) ; if ( strcmp ( str , " " ) == 0 ) return ( FMR_STD_ANSI ) ; if ( strcmp ( str , " " ) == 0 ) return ( FMR_STD_ISO ) ; if ( strcmp ( str , " " ) == 0 ) return ( FMR_STD_ISO_NORMAL_CARD ) ; if ( strcmp ( str , " " ) == 0 ) return ( FMR_STD_ISO_COMPACT_CARD ) ; if ( strcmp ( str , " " ) == 0 ) return ( FMR_STD_ANSI07 ) ; return ( -1 ) ; }
Convert string type description to code specified in fmr.h
Convert string type description to code specified in fmr . h