OpenFPGA/libs/libarchopenfpga/src/write_xml_utils.h

30 lines
1.0 KiB
C
Raw Normal View History

#ifndef WRITE_XML_UTILS_H
#define WRITE_XML_UTILS_H
/********************************************************************
* Include header files that are required by function declaration
*******************************************************************/
#include <fstream>
#include "circuit_library.h"
#include "openfpga_port.h"
/********************************************************************
* Function declaration
*******************************************************************/
void write_xml_attribute(std::fstream& fp, const char* attr, const char* value);
void write_xml_attribute(std::fstream& fp, const char* attr, const bool& value);
void write_xml_attribute(std::fstream& fp, const char* attr, const int& value);
void write_xml_attribute(std::fstream& fp, const char* attr,
2020-01-17 21:02:56 -06:00
const float& value);
void write_xml_attribute(std::fstream& fp, const char* attr,
2020-06-12 01:07:04 -05:00
const size_t& value);
std::string generate_xml_port_name(const openfpga::BasicPort& pb_port);
#endif