PerRecordTags Class Reference

#include <PerRecordTags.h>

List of all members.

Public Member Functions

 PerRecordTags ()
 PerRecordTags (std::string streamname, std::string treename, std::string filename, Int_t treeindexlo, Int_t treeindexhi, const VldContext &vldcontext)
virtual ~PerRecordTags ()
void SetStreamName (std::string streamname)
void SetTreeName (std::string treename)
void SetFileName (std::string filename)
void SetIndexLo (Int_t indexlo)
void SetIndexHi (Int_t indexhi)
void SetVldContext (const VldContext &vld)
bool IsBegin () const
bool IsComplete () const
bool IsEnd () const
bool IsValid () const
std::string GetStreamName () const
std::string GetTreeName () const
std::string GetFileName () const
Int_t GetIndexLo () const
Int_t GetIndexHi () const
const VldContextGetVldContext () const
std::ostream & Print (std::ostream &s) const

Private Attributes

std::string fStreamName
std::string fTreeName
std::string fFileName
Int_t fIndexLo
Int_t fIndexHi
VldContext fVldContext

Friends

bool operator< (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator== (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator!= (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator<= (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator> (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator>= (const PerRecordTags &lhs, const PerRecordTags &rhs)

Detailed Description

Definition at line 25 of file PerRecordTags.h.


Constructor & Destructor Documentation

PerRecordTags::PerRecordTags (  ) 

Definition at line 30 of file PerRecordTags.cxx.

00030                             :
00031   fStreamName(""),fTreeName(""),fFileName(""),
00032   fIndexLo(-2),fIndexHi(-2),fVldContext() {
00033   //
00034   //  Purpose:  Normal constructor.
00035   //
00036   //  Arguments: self-describing. IndexLo&Hi default is -2 because -1 may
00037   //             be used for beginning-of-stream marker
00038   //
00039   //  Return:    n/a.
00040   //
00041   //  Contact:   S. Kasahara
00042   // 
00043 
00044 }

PerRecordTags::PerRecordTags ( std::string  streamname,
std::string  treename,
std::string  filename,
Int_t  treeindexlo,
Int_t  treeindexhi,
const VldContext vldcontext 
)

Definition at line 46 of file PerRecordTags.cxx.

00048                                                    :
00049   fStreamName(streamname),fTreeName(treename),fFileName(filename),
00050   fIndexLo(indexlo),fIndexHi(indexhi),fVldContext(vld) {
00051   //
00052   //  Purpose:  Normal constructor.
00053   //
00054   //  Arguments: self-describing
00055   //
00056   //  Return:    n/a.
00057   //
00058   //  Contact:   S. Kasahara
00059   // 
00060 
00061 }

PerRecordTags::~PerRecordTags (  )  [virtual]

Definition at line 63 of file PerRecordTags.cxx.

00063                               {
00064   //
00065   //  Purpose:  PerRecordTags destructor.  
00066   //
00067   //  Contact:   S. Kasahara
00068   // 
00069 
00070 }


Member Function Documentation

std::string PerRecordTags::GetFileName (  )  const [inline]

Definition at line 51 of file PerRecordTags.h.

References fFileName.

Referenced by PerInputStreamManager::LoadRecordWithTag().

00051 { return fFileName; }

Int_t PerRecordTags::GetIndexHi (  )  const [inline]
Int_t PerRecordTags::GetIndexLo (  )  const [inline]
std::string PerRecordTags::GetStreamName (  )  const [inline]

Definition at line 49 of file PerRecordTags.h.

References fStreamName.

00049 { return fStreamName; }

std::string PerRecordTags::GetTreeName (  )  const [inline]

Definition at line 50 of file PerRecordTags.h.

References fTreeName.

Referenced by PerInputStreamManager::LoadRecordWithTag().

00050 { return fTreeName; }

const VldContext& PerRecordTags::GetVldContext (  )  const [inline]
bool PerRecordTags::IsBegin (  )  const [inline]
bool PerRecordTags::IsComplete (  )  const [inline]

Definition at line 46 of file PerRecordTags.h.

References fIndexHi, and fIndexLo.

Referenced by PerInputStream::AdvanceTagsList(), PerInputStream::NextTags(), and PerInputStream::RewindTagsList().

00046 {return(fIndexHi>=-1 && fIndexLo>=-1) ? true : false; }

bool PerRecordTags::IsEnd (  )  const [inline]
bool PerRecordTags::IsValid (  )  const [inline]

Definition at line 48 of file PerRecordTags.h.

References fVldContext, and VldContext::IsValid().

00048 { return fVldContext.IsValid(); }

std::ostream & PerRecordTags::Print ( std::ostream &  s  )  const

Definition at line 72 of file PerRecordTags.cxx.

References fFileName, fIndexHi, fIndexLo, fStreamName, fTreeName, and fVldContext.

00072                                                      {
00073   //
00074   //  Purpose:  Print status of tags on ostream.
00075   //
00076   //  Arguments: ms ostream to display on.
00077   //
00078   //  Return:  ostream reference.
00079   //
00080   //  Contact:   S. Kasahara
00081   //
00082 
00083   ms << " PerRecordTags::Print" << endl;
00084   ms << "   StreamName " << fStreamName << ", TreeName " << fTreeName << endl;
00085   ms << "   FileName " << fFileName << endl;
00086   ms << "   Tree Indices " << fIndexLo << " to " << fIndexHi << endl;
00087   ms << "   VldContext " << fVldContext << endl;
00088 
00089   return ms;
00090 
00091 }

void PerRecordTags::SetFileName ( std::string  filename  )  [inline]

Definition at line 39 of file PerRecordTags.h.

References fFileName.

00039 { fFileName = filename; }

void PerRecordTags::SetIndexHi ( Int_t  indexhi  )  [inline]

Definition at line 41 of file PerRecordTags.h.

References fIndexHi.

Referenced by PerInputStream::AdvanceTagsList().

00041 { fIndexHi = indexhi; }

void PerRecordTags::SetIndexLo ( Int_t  indexlo  )  [inline]

Definition at line 40 of file PerRecordTags.h.

References fIndexLo.

Referenced by PerInputStream::RewindTagsList().

00040 { fIndexLo = indexlo; } 

void PerRecordTags::SetStreamName ( std::string  streamname  )  [inline]

Definition at line 37 of file PerRecordTags.h.

References fStreamName.

00037 { fStreamName = streamname; }

void PerRecordTags::SetTreeName ( std::string  treename  )  [inline]

Definition at line 38 of file PerRecordTags.h.

References fTreeName.

00038 { fTreeName = treename; }

void PerRecordTags::SetVldContext ( const VldContext vld  )  [inline]

Definition at line 42 of file PerRecordTags.h.

References fVldContext.

Referenced by PerInputStream::PerInputStream().

00042 { fVldContext = vld; } 


Friends And Related Function Documentation

bool operator!= ( const PerRecordTags lhs,
const PerRecordTags rhs 
) [friend]
bool operator< ( const PerRecordTags lhs,
const PerRecordTags rhs 
) [friend]
bool operator<= ( const PerRecordTags lhs,
const PerRecordTags rhs 
) [friend]
bool operator== ( const PerRecordTags lhs,
const PerRecordTags rhs 
) [friend]
bool operator> ( const PerRecordTags lhs,
const PerRecordTags rhs 
) [friend]
bool operator>= ( const PerRecordTags lhs,
const PerRecordTags rhs 
) [friend]

Member Data Documentation

std::string PerRecordTags::fFileName [private]

Definition at line 70 of file PerRecordTags.h.

Referenced by GetFileName(), Print(), and SetFileName().

Int_t PerRecordTags::fIndexHi [private]

Definition at line 72 of file PerRecordTags.h.

Referenced by GetIndexHi(), IsComplete(), Print(), and SetIndexHi().

Int_t PerRecordTags::fIndexLo [private]

Definition at line 71 of file PerRecordTags.h.

Referenced by GetIndexLo(), IsComplete(), Print(), and SetIndexLo().

std::string PerRecordTags::fStreamName [private]

Definition at line 68 of file PerRecordTags.h.

Referenced by GetStreamName(), Print(), and SetStreamName().

std::string PerRecordTags::fTreeName [private]

Definition at line 69 of file PerRecordTags.h.

Referenced by GetTreeName(), Print(), and SetTreeName().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1