libopenfpga/libarchopenfpga/src/read_xml_circuit_library.cpp
/********************************************************************
 * Convert string to the enumerate of multiplexer structure
 *******************************************************************/
Convert string to the enumerate of multiplexer structure
Convert string to the enumerate of multiplexer structure
static 
e_circuit_model_structure string_to_mux_structure_type(const std::string& type_string) {
  for (size_t itype = 0; itype < NUM_CIRCUIT_MODEL_STRUCTURE_TYPES; ++itype) {
    if (std::string(CIRCUIT_MODEL_STRUCTURE_TYPE_STRING[itype]) == type_string) {
      return static_cast<e_circuit_model_structure>(itype);
    }
  }
  return NUM_CIRCUIT_MODEL_STRUCTURE_TYPES;
}
static e_circuit_model_structure string_to_mux_structure_type ( const std :: string & type_string ) { for ( size_t itype = 0 ; itype < NUM_CIRCUIT_MODEL_STRUCTURE_TYPES ; ++ itype ) { if ( std :: string ( CIRCUIT_MODEL_STRUCTURE_TYPE_STRING [ itype ] ) == type_string ) { return static_cast < e_circuit_model_structure > ( itype ) ; } } return NUM_CIRCUIT_MODEL_STRUCTURE_TYPES ; }
Convert string to the enumerate of multiplexer structure
Convert string to the enumerate of multiplexer structure