Add cairo interface.
This commit is contained in:
parent
a03eb9599f
commit
9bcc0ae88e
63 changed files with 1247 additions and 450 deletions
|
@ -8,19 +8,17 @@
|
|||
|
||||
class FileLogger
|
||||
{
|
||||
std::string mWorkDirectory;
|
||||
std::string mWorkDirectory;
|
||||
std::string mFileName;
|
||||
std::ofstream mFileStream;
|
||||
|
||||
std::string mFileName;
|
||||
FileLogger()
|
||||
:mWorkDirectory(),
|
||||
mFileName("MT_Log.txt"),
|
||||
mFileStream()
|
||||
{
|
||||
|
||||
std::ofstream mFileStream;
|
||||
|
||||
FileLogger()
|
||||
:mWorkDirectory(),
|
||||
mFileName("MT_Log.txt"),
|
||||
mFileStream()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
|
@ -30,22 +28,22 @@ public:
|
|||
return instance;
|
||||
}
|
||||
|
||||
FileLogger(FileLogger const&) = delete;
|
||||
FileLogger(FileLogger const&) = delete;
|
||||
void operator=(FileLogger const&) = delete;
|
||||
|
||||
~FileLogger();
|
||||
~FileLogger();
|
||||
|
||||
void SetWorkDirectory(const std::string& workDir);
|
||||
void SetWorkDirectory(const std::string& workDir);
|
||||
|
||||
void SetFileName(const std::string& fileName);
|
||||
void SetFileName(const std::string& fileName);
|
||||
|
||||
void Open();
|
||||
void Open();
|
||||
|
||||
void Close();
|
||||
void Close();
|
||||
|
||||
void LogLine(const std::string& line);
|
||||
void LogLine(const std::string& line);
|
||||
|
||||
void LogLine(const std::string& logType, const std::string& line, const std::string& fileName = "", const std::string& functionName = "", int lineNumber=-1);
|
||||
void LogLine(const std::string& logType, const std::string& line, const std::string& fileName = "", const std::string& functionName = "", int lineNumber=-1);
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue