mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-02-01 07:10:49 +03:00
nightly update 20200808
This commit is contained in:
@@ -3,13 +3,12 @@
|
||||
|
||||
ClassLogFile LogFile("/sdcard/log.txt");
|
||||
|
||||
void ClassLogFile::WriteToFile(std::string info, bool _time)
|
||||
void ClassLogFile::WriteToDedicatedFile(std::string _fn, std::string info, bool _time)
|
||||
{
|
||||
FILE* pFile;
|
||||
std::string zwtime;
|
||||
|
||||
|
||||
pFile = fopen(logfile.c_str(), "a+");
|
||||
pFile = fopen(_fn.c_str(), "a+");
|
||||
|
||||
if (_time)
|
||||
{
|
||||
@@ -31,11 +30,12 @@ void ClassLogFile::WriteToFile(std::string info, bool _time)
|
||||
fclose(pFile);
|
||||
}
|
||||
|
||||
void ClassLogFile::WriteToFile(std::string info, bool _time)
|
||||
{
|
||||
WriteToDedicatedFile(logfile, info, _time);
|
||||
}
|
||||
|
||||
ClassLogFile::ClassLogFile(std::string _logfile)
|
||||
{
|
||||
logfile = _logfile;
|
||||
}
|
||||
|
||||
ClassLogFile::~ClassLogFile()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -5,13 +5,12 @@
|
||||
class ClassLogFile
|
||||
{
|
||||
private:
|
||||
/* data */
|
||||
std::string logfile;
|
||||
public:
|
||||
ClassLogFile(std::string _logfile);
|
||||
~ClassLogFile();
|
||||
|
||||
void WriteToFile(std::string info, bool _time = true);
|
||||
void WriteToDedicatedFile(std::string _fn, std::string info, bool _time = true);
|
||||
};
|
||||
|
||||
extern ClassLogFile LogFile;
|
||||
Reference in New Issue
Block a user