7 #ifndef _INFOSINK_INCLUDED_
8 #define _INFOSINK_INCLUDED_
16 return modff(f, &intPart);
46 sink.append(stream.str());
64 sink.append(str.c_str());
76 stream << std::showpoint << std::fixed <<
f;
78 stream.unsetf(std::ios::fixed);
79 stream.unsetf(std::ios::scientific);
83 sink.append(stream.str());
88 const char*
str = b ?
"true" :
"false";
94 int size() {
return static_cast<int>(
sink.size()); }
115 #endif // _INFOSINK_INCLUDED_
GLsizei GLenum GLboolean sink
void message(TPrefixType p, const TSourceLoc &loc, const char *m)
TInfoSinkBase & operator<<(const T &t)
TInfoSinkBase & operator<<(bool b)
TInfoSinkBase & operator<<(float f)
TInfoSinkBase & operator<<(const char *str)
float fractionalPart(float f)
TInfoSinkBase & operator<<(const TPersistString &str)
const TPersistString & str() const
std::basic_string< char, std::char_traits< char >, TStringAllocator > TString
TInfoSinkBase & operator<<(const TString &str)
#define TPersistStringStream
GLdouble GLdouble GLdouble b
TInfoSinkBase & operator<<(char c)
const char * c_str() const
void location(int file, int line)
void prefix(TPrefixType p)