FACT++  1.0
void Print ( const vector< Source > &  obs,
double  startup_offset 
)

Definition at line 506 of file makeschedule.cc.

References begin, Tools::Form(), and Time::GetAsStr().

Referenced by main().

507 {
508  cout << Time(obs[0].begin-startup_offset).GetAsStr() << " STARTUP\n";
509  for (const auto& src: obs)
510  {
511  string tm = Time(src.begin).GetAsStr();
512  if (src.preobs.size()>0)
513  {
514  for (const auto& pre: src.preobs)
515  {
516  cout << tm << " " << pre << "\n";
517  tm = " ";
518  }
519  }
520 
521  cout << tm << " " << src.name << " [";
522  cout << src.duration()*24*60 << "'";
523  if (src.name!="SLEEP")
524  cout << Tools::Form("; %.1f/%.1f", src.zd(src.begin), src.zd(src.end));
525  cout << "]";
526 
527  if (src.duration()*24*60<40)
528  cout << " (!)";
529 
530  cout << "\n";
531  }
532  cout << Time(obs.back().end).GetAsStr() << " SHUTDOWN" << endl;
533 }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
double begin
std::string Form(const char *fmt,...)
Definition: tools.cc:45
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const
Definition: Time.cc:240

+ Here is the call graph for this function:

+ Here is the caller graph for this function: