api2021 part I #4

Merged
tomasz.sowa merged 67 commits from api2021 into master 2021-05-27 10:37:36 +02:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit 96eedd9be9 - Show all commits

View File

@ -41,6 +41,8 @@
#include "date/date.h"
#include "utf8/utf8.h"
#include "morm.h"
namespace PT
{
@ -311,6 +313,14 @@ Log & Log::operator<<(const PT::Date & date)
Log & Log::operator<<(morm::Model & model)
{
operator<<(model.to_string());
return *this;
}
Log & Log::operator<<(Manipulators m)
{
switch(m)

View File

@ -45,6 +45,12 @@
namespace morm
{
class Model;
}
namespace PT
{
@ -125,8 +131,14 @@ public:
virtual Log & operator<<(const PT::Space & space);
virtual Log & operator<<(const PT::Date & date);
virtual Log & operator<<(morm::Model & model);
virtual Log & operator<<(Manipulators m);
virtual Log & LogString(const std::string & value, size_t max_size);
virtual Log & LogString(const std::wstring & value, size_t max_size);