Definition at line 2899 of file drivectrl.cc.
References Source::angles, Source::dec, Source::mag, Source::name, Source::offset, print(), Source::ra, and DatabaseName::uri().
2904 T::Message(
"Connected to '"+db.uri()+
"'");
2906 const mysqlpp::StoreQueryResult res =
2907 db.query(
"SELECT fSourceName, fRightAscension, fDeclination, fWobbleOffset, fWobbleAngle0, fWobbleAngle1, fMagnitude FROM Source").store();
2910 for (vector<mysqlpp::Row>::const_iterator v=res.begin(); v<res.end(); v++)
2912 const string name = (*v)[0].c_str();
2921 src.
mag = (*v)[6] ? double((*v)[6]) : 0;
2928 msg <<
" " << name << setprecision(8) <<
": Ra=" << src.
ra <<
"h Dec=" << src.
dec <<
"deg";
2929 msg <<
" Wobble=[" << src.
offset <<
"," << src.
angles[0] <<
"," << src.
angles[1] <<
"] Mag=" << src.
mag;
2933 T::Warn(
"MySQL support not compiled into the program.");
array< double, 2 > angles
bool AddSource(const string &name, const Source &src)