Jpp  pmt_effective_area_update_2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
JFIT::JEvent Struct Reference

Auxiliary class for historical event. More...

#include <JHistory.hh>

Public Member Functions

 JEvent ()
 Default constructor. More...
 
 JEvent (const int type, const int id)
 Constructor. More...
 
virtual ~JEvent ()
 Virtual destructor. More...
 
 ClassDef (JEvent, 1)
 

Public Attributes

int type
 application type More...
 
int id
 application identifier More...
 
std::string svn
 SVN revision. More...
 
std::string date
 date More...
 

Friends

std::ostream & operator<< (std::ostream &out, const JEvent &event)
 Write event to output stream. More...
 

Detailed Description

Auxiliary class for historical event.

Definition at line 33 of file JHistory.hh.

Constructor & Destructor Documentation

JFIT::JEvent::JEvent ( )
inline

Default constructor.

Definition at line 37 of file JHistory.hh.

37  :
38  type(-1),
39  id (-1)
40  {}
int type
application type
Definition: JHistory.hh:88
int id
application identifier
Definition: JHistory.hh:89
JFIT::JEvent::JEvent ( const int  type,
const int  id 
)
inline

Constructor.

Parameters
typeapplication type
idapplication identifier

Definition at line 48 of file JHistory.hh.

50  {
51  using namespace JPP;
52 
53  this->type = type;
54  this->id = id;
55  this->svn = getGITVersion();
56  this->date = getDateAndTime();
57  }
static JDateAndTime getDateAndTime
Function object to get ASCII formatted date and time.
std::string getGITVersion(const std::string &tag)
Get GIT version for given GIT tag.
int type
application type
Definition: JHistory.hh:88
std::string svn
SVN revision.
Definition: JHistory.hh:90
std::string date
date
Definition: JHistory.hh:91
int id
application identifier
Definition: JHistory.hh:89
virtual JFIT::JEvent::~JEvent ( )
inlinevirtual

Virtual destructor.

Definition at line 63 of file JHistory.hh.

64  {}

Member Function Documentation

JFIT::JEvent::ClassDef ( JEvent  ,
 
)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JEvent event 
)
friend

Write event to output stream.

Parameters
outoutput stream
eventevent
Returns
output stream

Definition at line 74 of file JHistory.hh.

75  {
76  using namespace std;
77 
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;
82 
83  return out;
84  }

Member Data Documentation

int JFIT::JEvent::type

application type

Definition at line 88 of file JHistory.hh.

int JFIT::JEvent::id

application identifier

Definition at line 89 of file JHistory.hh.

std::string JFIT::JEvent::svn

SVN revision.

Definition at line 90 of file JHistory.hh.

std::string JFIT::JEvent::date

date

Definition at line 91 of file JHistory.hh.


The documentation for this struct was generated from the following file: