libopenfpga/libarchopenfpga/src/read_xml_technology_library.cpp
/********************************************************************
 * Parse XML codes of a <device_library> to an object of technology library
 *******************************************************************/
Parse XML codes of a  to an object of technology library
Parse XML codes of a to an object of technology library
static 
void read_xml_device_lib(pugi::xml_node& xml_device_lib,
                         const pugiutil::loc_data& loc_data,
                         TechnologyLibrary& tech_lib) {
  for (pugi::xml_node xml_device_model : xml_device_lib.children()) {
    if (xml_device_model.name() != std::string("device_model")) {
      bad_tag(xml_device_model, loc_data, xml_device_lib, {"device_model"});
    }
    read_xml_device_model(xml_device_model, loc_data, tech_lib);
  } 
}
static void read_xml_device_lib ( pugi :: xml_node & xml_device_lib , const pugiutil :: loc_data & loc_data , TechnologyLibrary & tech_lib ) { for ( pugi :: xml_node xml_device_model : xml_device_lib . children ( ) ) { if ( xml_device_model . name ( ) != std :: string ( " " ) ) { bad_tag ( xml_device_model , loc_data , xml_device_lib , { " " } ) ; } read_xml_device_model ( xml_device_model , loc_data , tech_lib ) ; } }
Parse XML codes of a <device_library> to an object of technology library
Parse XML codes of a <device_library > to an object of technology library
/* Iterate over the children under this node,
   * each child should be named after <device>
   */ /* Error out if the XML child has an invalid name! */