libopenfpga/libarchopenfpga/src/read_xml_technology_library.cpp
static 
e_tech_lib_model_type string_to_device_model_type(const std::string& type_string) {
  for (size_t itype = 0; itype < NUM_TECH_LIB_MODEL_TYPES; ++itype) {
    if (std::string(TECH_LIB_MODEL_TYPE_STRING[itype]) == type_string) {
      return static_cast<e_tech_lib_model_type>(itype);
    }
  }

  return NUM_TECH_LIB_MODEL_TYPES;
}
/********************************************************************
 * Convert string to the enumerate of device model type
 *******************************************************************/
Convert string to the enumerate of device model type
Convert string to the enumerate of device model type
static 
e_tech_lib_model_type string_to_device_model_type(const std::string& type_string) {
  for (size_t itype = 0; itype < NUM_TECH_LIB_MODEL_TYPES; ++itype) {
    if (std::string(TECH_LIB_MODEL_TYPE_STRING[itype]) == type_string) {
      return static_cast<e_tech_lib_model_type>(itype);
    }
  }
  return NUM_TECH_LIB_MODEL_TYPES;
}
static e_tech_lib_model_type string_to_device_model_type ( const std :: string & type_string ) { for ( size_t itype = 0 ; itype < NUM_TECH_LIB_MODEL_TYPES ; ++ itype ) { if ( std :: string ( TECH_LIB_MODEL_TYPE_STRING [ itype ] ) == type_string ) { return static_cast < e_tech_lib_model_type > ( itype ) ; } } return NUM_TECH_LIB_MODEL_TYPES ; }
Convert string to the enumerate of device model type
Convert string to the enumerate of device model type