Definition at line 2911 of file FactGui.h.
References Time::GetAsStr(), DimInfo::getData(), DimInfo::getFormat(), DimInfo::getName(), DimInfo::getSize(), Converter::GetString(), DimInfo::getTimestamp(), DimInfo::getTimestampMillisecs(), handleDimService(), and str.
2916 const Converter conv(dummy, fmt,
false);
2921 out <<
"<font size'-1' color='navy'>[";
2922 out << tm.
GetAsStr(
"%H:%M:%S.%f").substr(0,12);
2923 out <<
"]</font> <B>" << info.
getName() <<
"</B> - ";
2928 out <<
"Compilation of format string '" << fmt <<
"' failed!";
2934 const string dat = info.
getSize()==0 ?
"<empty>" : conv.GetString(info.
getData(), info.
getSize());
2938 catch (
const runtime_error &e)
2940 out <<
"Conversion to string failed!<pre>" << e.what() <<
"</pre>";
2947 int bg = hash<string>()(
string(info.
getName()));
2950 bg = ~(bg&0x1f1f1f)&0xffffff;
2956 bgcol << hex << setfill(
'0') << setw(6) << bg;
2958 const string col = iserr==0 ?
"black" : (iserr==1 ?
"#FF6600" :
"black");
2959 const string str =
"<table width='100%' bgcolor=#"+bgcol.str()+
"><tr><td><font color='"+col+
"'>"+out.str()+
"</font></td></tr></table>";
2961 QApplication::postEvent(
this,
void handleDimService(const string &txt)
Adds some functionality to boost::posix_time::ptime for our needs.
int getTimestampMillisecs()
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const
A compiler for the DIM data format string.