CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
cond::RunInfo_t Struct Reference

#include <Types.h>

Public Member Functions

bool isOnGoing ()
 
 RunInfo_t ()
 
 RunInfo_t (const std::tuple< long long unsigned int, boost::posix_time::ptime, boost::posix_time::ptime > &data)
 

Public Attributes

boost::posix_time::ptime end
 
Time_t run
 
boost::posix_time::ptime start
 

Detailed Description

Definition at line 139 of file Types.h.

Constructor & Destructor Documentation

◆ RunInfo_t() [1/2]

cond::RunInfo_t::RunInfo_t ( )
inline

Definition at line 140 of file Types.h.

140 : run(0), start(), end() {}
boost::posix_time::ptime end
Definition: Types.h:151
boost::posix_time::ptime start
Definition: Types.h:150
Time_t run
Definition: Types.h:149

◆ RunInfo_t() [2/2]

cond::RunInfo_t::RunInfo_t ( const std::tuple< long long unsigned int, boost::posix_time::ptime, boost::posix_time::ptime > &  data)
inline

Definition at line 141 of file Types.h.

142  : run(std::get<0>(data)), start(std::get<1>(data)), end(std::get<2>(data)) {}
boost::posix_time::ptime end
Definition: Types.h:151
boost::posix_time::ptime start
Definition: Types.h:150
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
Time_t run
Definition: Types.h:149

Member Function Documentation

◆ isOnGoing()

bool cond::RunInfo_t::isOnGoing ( )
inline

Definition at line 143 of file Types.h.

References end, submitPVValidationJobs::now, run, and start.

143  {
144  if (run == 0)
145  return false;
146  auto now = boost::posix_time::second_clock::universal_time();
147  return (start < now) && (end == start);
148  }
Definition: start.py:1
boost::posix_time::ptime end
Definition: Types.h:151
boost::posix_time::ptime start
Definition: Types.h:150
Time_t run
Definition: Types.h:149

Member Data Documentation

◆ end

boost::posix_time::ptime cond::RunInfo_t::end

◆ run

Time_t cond::RunInfo_t::run

◆ start

boost::posix_time::ptime cond::RunInfo_t::start