REROOT_EventHistory Class Reference

#include <REROOT_EventHistory.h>

List of all members.

Public Member Functions

 REROOT_EventHistory (EVENTHISTORY_DEF *)
 REROOT_EventHistory ()
 ~REROOT_EventHistory ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
const Char_t * TableName () const
Int_t EntryNumber () const
const Char_t * Routine () const
const Char_t * VersionString () const
const Char_t * DateFilled () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Char_t m_TableName [33]
Int_t m_EntryNumber
Char_t m_Routine [33]
Char_t m_VersionString [9]
Char_t m_DateFilled [17]

Detailed Description

Definition at line 16 of file REROOT_EventHistory.h.


Constructor & Destructor Documentation

REROOT_EventHistory::REROOT_EventHistory ( EVENTHISTORY_DEF nr  ) 

Definition at line 59 of file REROOT_EventHistory.cxx.

References init().

00060 {
00061   m_ID         = nr->ID - 1;                                  // C index
00062   m_EntryNumber = nr->EntryNumber - 1;                        // C index
00063 
00064 // Fill String objects for char vectors from EventHistory struct.
00065   Int_t i;    // Keep this declaration here for scope outside for-loops.
00066   for (i=0; i<32; i++) {
00067         if (nr->TableName[i]=='\0' || nr->TableName[i]==' ') break;
00068         m_TableName[i] = nr->TableName[i];
00069   }
00070   m_TableName[i] = '\0';
00071   for (i=0; i<32; i++) {
00072         if (nr->Routine[i]=='\0' || nr->Routine[i]==' ') break;
00073         m_Routine[i] = nr->Routine[i];
00074   }
00075   m_Routine[i] = '\0';
00076   for (i=0; i<8; i++) {
00077         if (nr->VersionString[i]=='\0' ||
00078             nr->VersionString[i]==' ') break;
00079         m_VersionString[i] = nr->VersionString[i];
00080   }
00081   m_VersionString[i] = '\0';
00082   for (i=0; i<16; i++) {
00083      //rwh: don't stop on blank; normally field is "1999.11.08 13:42"
00084         if (nr->DateFilled[i]=='\0') break;
00085         m_DateFilled[i] = nr->DateFilled[i];
00086   }
00087   m_DateFilled[i] = '\0';
00088 
00089   init();
00090 }

REROOT_EventHistory::REROOT_EventHistory (  ) 

Definition at line 92 of file REROOT_EventHistory.cxx.

00093 {
00094 }

REROOT_EventHistory::~REROOT_EventHistory (  ) 

Definition at line 100 of file REROOT_EventHistory.cxx.

00101 {
00102 }


Member Function Documentation

virtual void REROOT_EventHistory::accept ( REROOT_Visitor v  )  [inline, virtual]

Definition at line 33 of file REROOT_EventHistory.h.

References REROOT_Visitor::visit().

00033 { v.visit(this); }

void REROOT_EventHistory::clear (  ) 

Definition at line 104 of file REROOT_EventHistory.cxx.

00105 {
00106 }

const Char_t* REROOT_EventHistory::DateFilled (  )  const [inline]

Definition at line 44 of file REROOT_EventHistory.h.

References m_DateFilled.

Referenced by RerootExodus::GetLastEventHistoryTimeStamp().

00044 {return m_DateFilled;  }//ateFilled[17]

Int_t REROOT_EventHistory::EntryNumber (  )  const [inline]

Definition at line 41 of file REROOT_EventHistory.h.

References m_EntryNumber.

00041 {return m_EntryNumber;  }// EntryNumber

Int_t REROOT_EventHistory::ID (  )  const [inline]

Definition at line 39 of file REROOT_EventHistory.h.

References m_ID.

00039 {return m_ID;  }                  // ID

void REROOT_EventHistory::init ( void   )  [private]

Definition at line 96 of file REROOT_EventHistory.cxx.

00097 {
00098 }

void REROOT_EventHistory::printEvent ( std::ostream &  pstream  )  const

Definition at line 108 of file REROOT_EventHistory.cxx.

00109 {
00110   pstream << "==================== EventHistory ====================\n";
00111 }

const Char_t* REROOT_EventHistory::Routine (  )  const [inline]

Definition at line 42 of file REROOT_EventHistory.h.

References m_Routine.

Referenced by RerootExodus::GetGminosCodeName(), and RerootExodus::GetGminosHostName().

00042 {return m_Routine;  }    // Routine[33]

const Char_t* REROOT_EventHistory::TableName (  )  const [inline]

Definition at line 40 of file REROOT_EventHistory.h.

References m_TableName.

00040 {return m_TableName;  } //TableName[33]

const Char_t* REROOT_EventHistory::VersionString (  )  const [inline]

Definition at line 43 of file REROOT_EventHistory.h.

References m_VersionString.

Referenced by RerootExodus::GetGminosCodeName(), and RerootExodus::GetGminosHostName().

00043 {return m_VersionString;  }//ring[9]


Member Data Documentation

Char_t REROOT_EventHistory::m_DateFilled[17] [private]

Definition at line 24 of file REROOT_EventHistory.h.

Referenced by DateFilled().

Definition at line 21 of file REROOT_EventHistory.h.

Referenced by EntryNumber().

Int_t REROOT_EventHistory::m_ID [private]

Definition at line 19 of file REROOT_EventHistory.h.

Referenced by ID().

Char_t REROOT_EventHistory::m_Routine[33] [private]

Definition at line 22 of file REROOT_EventHistory.h.

Referenced by Routine().

Char_t REROOT_EventHistory::m_TableName[33] [private]

Definition at line 20 of file REROOT_EventHistory.h.

Referenced by TableName().

Definition at line 23 of file REROOT_EventHistory.h.

Referenced by VersionString().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1