1 #ifndef __JRECONSTRUCTION__JHISTORY__
2 #define __JRECONSTRUCTION__JHISTORY__
79 out << setw(3) << right <<
event.type <<
' '
80 << setw(36) << left <<
event.uuid <<
' '
81 << setw(20) << left <<
event.git <<
' '
82 << setw(20) << left <<
event.date << right;
124 if (!history.empty())
125 this->
type = history.rbegin()->type;
139 if (!history.empty()) {
140 return history.rbegin()->type == this->
type;
231 return static_cast<const JHistory&
>(*this);
242 return static_cast<JHistory&
>(*this);
254 for (const_iterator i = this->begin(); i != this->end(); ++i) {
255 if (i->type ==
type) {
272 if (this->size() == types.size()) {
274 for (
size_t i = 0; i != this->size(); ++i) {
275 if ((*
this)[i].type != types[i]) {
308 return this->size() >= 2u;
317 return this->at(this->size() - 1).
uuid;
326 return this->at(this->size() - 2).
uuid;
341 for (const_iterator i = history.begin(); i != history.end(); ++i) {
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
Jpp environment information.
std::string getGITVersion(const std::string &tag)
Get GIT version for given GIT tag.
Auxiliary classes and methods for linear and iterative data regression.
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static JDateAndTime getDateAndTime
Function object to get current date and time.
Auxiliary class for historical event.
virtual ~JEvent()
Virtual destructor.
friend std::ostream & operator<<(std::ostream &out, const JEvent &event)
Write event to output stream.
JEvent(const int type)
Constructor.
JEvent()
Default constructor.
std::string git
GIT revision.
Auxiliary class to test history.
bool operator()(const JHistory &history) const
Test history.
is_event(int type)
Constructor.
is_event(const JHistory &history)
Constructor.
Auxiliary class to test history.
bool operator()(const JHistory &history) const
Test history.
is_not_event(int type)
Constructor.
Container for historical events.
const JUUID & getUUID() const
Get UUID.
bool getStatus(const std::vector< int > &types) const
Get status.
bool hasParentUUID() const
Has parent UUID.
JHistory()
Default constructor.
JHistory & add(const int type)
Add event to history.
JHistory(const JHistory &history, const int type)
Constructor.
JHistory & getHistory()
Get history.
const JUUID & getParentUUID() const
Get parent UUID.
friend std::ostream & operator<<(std::ostream &out, const JHistory &history)
Write history to output stream.
JHistory(const int type)
Constructor.
virtual ~JHistory()
Virtual destructor.
const JHistory & getHistory() const
Get history.
bool has(const int type) const
Has event in history.
static const JUUID & rndm()
Generate random UUID.