libopenfpga/libarchopenfpga/src/write_xml_utils.cpp
/********************************************************************
 * A most utilized function to write an XML attribute to file
 * This accepts the value as a boolean 
 *******************************************************************/
A most utilized function to write an XML attribute to file
This accepts the value as a boolean
A most utilized function to write an XML attribute to file This accepts the value as a boolean
void write_xml_attribute(std::fstream& fp, 
                         const char* attr,
                         const bool& value) {
  openfpga::valid_file_stream(fp);
  fp << " " << attr << "=\"";
  if (true == value) {
    fp << "true"; 
  } else {
    VTR_ASSERT_SAFE(false == value);
    fp << "false"; 
  }
  fp << "\""; 
}
void write_xml_attribute ( std :: fstream & fp , const char * attr , const bool & value ) { openfpga :: valid_file_stream ( fp ) ; fp << " " << attr << " \" " ; if ( true == value ) { fp << " " ; } else { VTR_ASSERT_SAFE ( false == value ) ; fp << " " ; } fp << " \" " ; }
A most utilized function to write an XML attribute to file
 This accepts the value as a boolean
A most utilized function to write an XML attribute to file This accepts the value as a boolean
/* Validate the file stream */