FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
void ConnectionGPS::Request
(
bool
immediate
=
false
)
inline
Definition at line
300
of file
gpsctrl.cc
.
References
HandleRequest()
, and
Time::Mjd()
.
301
{
302
double
mjd =
Time
().
Mjd
();
303
304
if
(!immediate)
305
mjd = (ceil(mjd*24*60+0.01)+0.5)/(24*60);
306
307
fKeepAlive
.expires_at(
Time
(mjd));
308
fKeepAlive
.async_wait(boost::bind(&
ConnectionGPS::HandleRequest
,
309
this
, dummy::error));
310
}
Time
Adds some functionality to boost::posix_time::ptime for our needs.
Definition:
Time.h:30
Time::Mjd
void Mjd(double mjd)
Definition:
Time.cc:145
ConnectionGPS::HandleRequest
void HandleRequest(const bs::error_code &error)
Definition:
gpsctrl.cc:241
ConnectionGPS::fKeepAlive
boost::asio::deadline_timer fKeepAlive
Definition:
gpsctrl.cc:239
Here is the call graph for this function:
ConnectionGPS
Generated on Sun Sep 18 2016 20:50:45 for FACT++ by
1.8.11