macro renamed: PT_HAS_MORM -> PT_HAS_MORM_LIBRARY

TextStream::to_string(...) is now TextStream::to_str(...)
added: std::string TextStream::to_str() const;
added: std::wstring TextStream::to_wstr() const;
This commit is contained in:
2021-06-20 16:46:08 +02:00
parent 819c49e638
commit ac407b2362
6 changed files with 51 additions and 17 deletions

View File

@@ -41,7 +41,7 @@
#include "date/date.h"
#include "utf8/utf8.h"
#ifdef PT_HAS_MORM
#ifdef PT_HAS_MORM_LIBRARY
#include "morm.h"
#endif
@@ -313,7 +313,7 @@ Log & Log::operator<<(const Date & date)
}
#ifdef PT_HAS_MORM
#ifdef PT_HAS_MORM_LIBRARY
Log & Log::operator<<(morm::Model & model)
{
operator<<(model.to_string());

View File

@@ -131,7 +131,7 @@ public:
virtual Log & operator<<(const Space & space);
virtual Log & operator<<(const Date & date);
#ifdef PT_HAS_MORM
#ifdef PT_HAS_MORM_LIBRARY
virtual Log & operator<<(morm::Model & model);
#endif