libopenfpga/libarchopenfpga/src/read_xml_circuit_library.cpp
/********************************************************************
 * Parse XML codes of device technology of a circuit model to circuit library
 *******************************************************************/
Parse XML codes of device technology of a circuit model to circuit library
Parse XML codes of device technology of a circuit model to circuit library
static 
void read_xml_model_device_technology(pugi::xml_node& xml_model,
                                      const pugiutil::loc_data& loc_data,
                                      CircuitLibrary& circuit_lib, const CircuitModelId& model) {
  auto xml_device_tech = get_single_child(xml_model, "device_technology", loc_data, pugiutil::ReqOpt::OPTIONAL);
  if (!xml_device_tech) {
    return;
  }
  const char* device_model_name_attr = get_attribute(xml_device_tech, "device_model_name", loc_data, pugiutil::ReqOpt::OPTIONAL).value();
  if (nullptr != device_model_name_attr) {
    circuit_lib.set_device_model_name(model, std::string(device_model_name_attr));  
  }
}
static void read_xml_model_device_technology ( pugi :: xml_node & xml_model , const pugiutil :: loc_data & loc_data , CircuitLibrary & circuit_lib , const CircuitModelId & model ) { auto xml_device_tech = get_single_child ( xml_model , " " , loc_data , pugiutil :: ReqOpt :: OPTIONAL ) ; if ( ! xml_device_tech ) { return ; } const char * device_model_name_attr = get_attribute ( xml_device_tech , " " , loc_data , pugiutil :: ReqOpt :: OPTIONAL ) . value ( ) ; if ( nullptr != device_model_name_attr ) { circuit_lib . set_device_model_name ( model , std :: string ( device_model_name_attr ) ) ; } }
Parse XML codes of device technology of a circuit model to circuit library
Parse XML codes of device technology of a circuit model to circuit library
/* Parse device model name */