1 #ifndef __JRECONSTRUCTION__JHISTORY__ 
    2 #define __JRECONSTRUCTION__JHISTORY__ 
   26 namespace JRECONSTRUCTION {}
 
   27 namespace JPP { 
using namespace JRECONSTRUCTION; }
 
   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() >= 2
u;
 
  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) {
 
  352 namespace JRECONSTRUCTION {
 
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member. 
 
JHistory & add(const int type)
Add event to history. 
 
const JUUID & getUUID() const 
Get UUID. 
 
const JUUID & getParentUUID() const 
Get parent UUID. 
 
Auxiliary class to test history. 
 
Jpp environment information. 
 
friend std::ostream & operator<<(std::ostream &out, const JHistory &history)
Write history to output stream. 
 
Container for historical events. 
 
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
 
JEvent(const int type)
Constructor. 
 
bool operator()(const JHistory &history) const 
Test history. 
 
friend std::ostream & operator<<(std::ostream &out, const JEvent &event)
Write event to output stream. 
 
static JDateAndTime getDateAndTime
Function object to get current date and time. 
 
static const JUUID & rndm()
Generate random UUID. 
 
is_event(int type)
Constructor. 
 
virtual ~JEvent()
Virtual destructor. 
 
std::string getGITVersion(const std::string &tag)
Get GIT version for given GIT tag. 
 
JHistory()
Default constructor. 
 
Auxiliary class to test history. 
 
bool operator()(const JHistory &history) const 
Test history. 
 
JHistory(const int type)
Constructor. 
 
JHistory(const JHistory &history, const int type)
Constructor. 
 
Auxiliary class for historical event. 
 
bool getStatus(const std::vector< int > &types) const 
Get status. 
 
JEvent()
Default constructor. 
 
is_event(const JHistory &history)
Constructor. 
 
bool has(const int type) const 
Has event in history. 
 
bool hasParentUUID() const 
Has parent UUID. 
 
std::string git
GIT revision. 
 
const JHistory & getHistory() const 
Get history. 
 
virtual ~JHistory()
Virtual destructor. 
 
JHistory & getHistory()
Get history. 
 
is_not_event(int type)
Constructor.