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() {}

◆ 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)) {}

Member Function Documentation

◆ isOnGoing()

bool cond::RunInfo_t::isOnGoing ( )
inline

Definition at line 143 of file Types.h.

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  }

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

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
start
Definition: start.py:1
submitPVValidationJobs.now
now
Definition: submitPVValidationJobs.py:639
cond::RunInfo_t::run
Time_t run
Definition: Types.h:149
cond::RunInfo_t::end
boost::posix_time::ptime end
Definition: Types.h:151
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
cond::RunInfo_t::start
boost::posix_time::ptime start
Definition: Types.h:150