1 #ifndef __JRECONSTRUCTION__JHISTORY__
2 #define __JRECONSTRUCTION__JHISTORY__
25 namespace JRECONSTRUCTION {}
26 namespace JPP {
using namespace JRECONSTRUCTION; }
78 out << setw(3) << right <<
event.id <<
' '
79 << setw(2) << right <<
event.type <<
' '
80 << setw(20) << left <<
event.svn <<
' '
81 << setw(20) << left <<
event.date;
123 if (!history.empty())
124 this->
type = history.rbegin()->type;
138 if (!history.empty()) {
139 return history.rbegin()->type == this->
type;
230 return static_cast<const JHistory&
>(*this);
241 return static_cast<JHistory&
>(*this);
253 push_back(
JEvent(type, this->size() + 1));
270 for (const_iterator i = history.begin(); i != history.end(); ++i) {
281 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.
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...
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 ASCII formatted date and time.
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.
std::string svn
SVN revision.
Auxiliary class to test history.
JEvent(const int type, const int id)
Constructor.
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.
JEvent()
Default constructor.
is_event(const JHistory &history)
Constructor.
const JHistory & getHistory() const
Get history.
virtual ~JHistory()
Virtual destructor.
JHistory & getHistory()
Get history.
int id
application identifier
is_not_event(int type)
Constructor.