浙江大学的悟空嵌入式系统模拟器
源代码在线查看: compare.h
#ifndef COMPARE_H_INCLUDED
#define COMPARE_H_INCLUDED
#include
#include
#include
namespace ARM{
class Compare
{
public:
static Compare & instance(void);
~Compare();
//fs = new std::ofstream(filename.c_str(), std::ios::app);
bool open_file(std::string file);
bool write_to_file(std::string content);
bool append_to_file(std::string content);
bool append_to_file(unsigned int val);
bool append_enter();
bool compare(std::string f1, std::string f2, int line_sum);
void clear(std::string file);
private:
std::ofstream * out;
};
}
#endif