libopenfpga/libarchopenfpga/src/write_xml_circuit_library.cpp
/********************************************************************
 * A writer to output the device technology of a circuit model to XML format
 *******************************************************************/
A writer to output the device technology of a circuit model to XML format
A writer to output the device technology of a circuit model to XML format
static 
void write_xml_device_technology(std::fstream& fp,
                                 const char* fname,
                                 const CircuitLibrary& circuit_lib,
                                 const CircuitModelId& model) {
  openfpga::check_file_stream(fname, fp);
  if (!circuit_lib.device_model_name(model).empty()) {
    fp << "\t\t\t" << "<device_technology";
    write_xml_attribute(fp, "device_model_name", circuit_lib.device_model_name(model).c_str());
    fp << "/>" << "\n";
  }
}
static void write_xml_device_technology ( std :: fstream & fp , const char * fname , const CircuitLibrary & circuit_lib , const CircuitModelId & model ) { openfpga :: check_file_stream ( fname , fp ) ; if ( ! circuit_lib . device_model_name ( model ) . empty ( ) ) { fp << " \t \t \t " << " " ; write_xml_attribute ( fp , " " , circuit_lib . device_model_name ( model ) . c_str ( ) ) ; fp << " " << " \n " ; } }
A writer to output the device technology of a circuit model to XML format
A writer to output the device technology of a circuit model to XML format
/* Validate the file stream */ /* Finish all the attributes, we can return here */