Excuse me if I am insistent but.
If you call
w_debug()<<"a word ";
w_debug()<<data1;
w_debug()<<"a word ";
w_debug()<<data1;
To copy to clipboard, switch view to plain text mode
You have :
a word
33
if I call :
w_debug()<<"a word "<<data1;
w_debug()<<"a word "<<data1;
To copy to clipboard, switch view to plain text mode
You have :
a word
33
And....what I want is :
a word 33
If I have :
W_debug W_debug:perator << (const char * data) {
log_file->write(data);
}
Each time i call << I have data out. So If I want to have more than 1 '<<' at the same line I must to write
W_debug & W_debug::operator << (const char * data) {
log_file->write(data);
return *this;
}
W_debug & W_debug::operator << (const char * data) {
log_file->write(data);
return *this;
}
To copy to clipboard, switch view to plain text mode
But in this case the line :
w_debug()<<"a word "<<data1;
w_debug()<<"a word "<<data1;
To copy to clipboard, switch view to plain text mode
Produces :
a word
33
Instead of
a word 33
So only it has occurred to me to have a stream object to feed it and when I have a "" data then I can consider that I can send trhe message to the log, to the listbox, or any place.
I hope now you can to understand my problem.
I dont know if it is because my english or what ....
Bookmarks