added: to templates: an interface for getting information from Space
miscspace.h, miscspace.cpp changed: plugin ticket now as a config we use a PT::Space struct (not finished yet, only 'integer', 'select' and 'progress' are done) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@794 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
22
core/log.cpp
22
core/log.cpp
@@ -233,6 +233,28 @@ Log & Log::operator<<(double s)
|
||||
}
|
||||
|
||||
|
||||
Log & Log::operator<<(const PT::Space * s)
|
||||
{
|
||||
if( current_level <= log_level )
|
||||
{
|
||||
buffer << s;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Log & Log::operator<<(const PT::Space & s)
|
||||
{
|
||||
if( current_level <= log_level )
|
||||
{
|
||||
buffer << s;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Log & Log::operator<<(LogManipulators m)
|
||||
{
|
||||
|
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2011, Tomasz Sowa
|
||||
* Copyright (c) 2008-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -43,8 +43,11 @@ public:
|
||||
Log & operator<<(wchar_t s);
|
||||
Log & operator<<(size_t s);
|
||||
Log & operator<<(double s);
|
||||
Log & operator<<(const PT::Space * space);
|
||||
Log & operator<<(const PT::Space & space);
|
||||
Log & operator<<(LogManipulators m);
|
||||
|
||||
|
||||
template<class StringType>
|
||||
void LogString(const StringType & value, size_t max_size);
|
||||
|
||||
|
@@ -382,7 +382,10 @@ size_t Plugin::Size()
|
||||
}
|
||||
|
||||
|
||||
|
||||
// !! to nie jest dobre rozwiazanie
|
||||
// obsluga jednego komunikatu moze wywolac inny komunikat
|
||||
// i zmienne sie nadpisza
|
||||
// potrzebujemy cos ala stos wywolan
|
||||
int Plugin::True()
|
||||
{
|
||||
return ret_true;
|
||||
|
Reference in New Issue
Block a user