Generator uses now pt::Log as a logger

- added method SetLogger(pt::Log & logger)
- removed SetCommentary(...) methods
- added logs when a model is not found

PatternParser uses only pt::Log
- removed SetCommentary(...) methods
This commit is contained in:
2021-06-19 20:18:30 +02:00
parent d76bb9349b
commit 9c4fe51790
3 changed files with 126 additions and 180 deletions
-11
View File
@@ -79,16 +79,8 @@ public:
void AllowInclude(bool allow);
void DeleteWhiteTextItems(bool del);
void SetIncludeMax(int include_max);
void SetBlocks(Blocks & blocks);
void SetCommentary(const char * com_start, const char * com_stop);
void SetCommentary(const std::string & com_start, const std::string & com_stop);
void SetCommentary(const wchar_t * com_start, const wchar_t * com_stop);
void SetCommentary(const std::wstring & com_start, const std::wstring & com_stop);
void SetProgramMode(bool program_mode);
void SetLogger(pt::Log * log);
private:
@@ -117,8 +109,6 @@ private:
std::wstring directory, directory2;
std::wstring commentary_start, commentary_stop;
int include_level, include_level_max;
@@ -140,7 +130,6 @@ private:
pt::Log * log;
void CreateMsg(std::wstring & out, const wchar_t * type, const wchar_t * arg = 0);
void ReadFile(const std::wstring & name, std::wstring & result);
void ReadFile(const wchar_t * name, std::wstring & result);