T
Thormod Johansen
Hi,
I am doing some embedded programming in Paradigm C++, and I would like to be
able to output debugging information using the << operator and ostreams. I
have a serial link for which I have low level code to output one character
at a time. I hope to be able to write code the following way:
sout << "Debugging info: x = " << x << '\r\n';
Where "sout" is an ostream object somehow using the serial connection.
How do one do this? I have an idea about assigning the ostream to an
streambuf object. Is it the streambuf object which is in charge of doing low
level outputting or how does it work?
Thanks in advance.
I am doing some embedded programming in Paradigm C++, and I would like to be
able to output debugging information using the << operator and ostreams. I
have a serial link for which I have low level code to output one character
at a time. I hope to be able to write code the following way:
sout << "Debugging info: x = " << x << '\r\n';
Where "sout" is an ostream object somehow using the serial connection.
How do one do this? I have an idea about assigning the ostream to an
streambuf object. Is it the streambuf object which is in charge of doing low
level outputting or how does it work?
Thanks in advance.