hi,
you can implements a class that handling an ostream object, and than, you, simple, add to that class an overloading of the operator << (ostream &os, "your object").
Hy,
the inline functions must be in the header file (*.h).
// Inside the class pippo
{
.....
void SetStream(streambuf *pStreamBuf) {
out.ios::rdbuf(pStreamBuf);
}
......
};
Or
// Outside the class
class pippo
{
.....
void SetStream(streambuf *pStreamBuf);
......
};
inline void...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.