| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RootOutputAddress Class Reference

#include <RootIOAddress.h>

Inheritance diagram for RootOutputAddress:

[legend]
Collaboration diagram for RootOutputAddress:
[legend]
List of all members.

Public Member Functions

 RootOutputAddress (const CLID &clid, const std::string &tespath)
void setStream (RootOutputStream *stream)
RootOutputStreamstream () const
const std::string & tespath () const
 Return the TES (and TFile) path.
std::string tesdir () const
 Return just the TES (and TFile) path.
std::string treename () const
 Return just the tree / TES object name.
std::string branchname () const
 Return a branch name based on the TES path.
int entry () const
void setEntry (int entry)
virtual unsigned long addRef ()
virtual unsigned long release ()
virtual IRegistryregistry () const
virtual void setRegistry (IRegistry *pRegistry)
const CLIDclID () const
void setClID (const CLID &clid)
long svcType () const
void setSvcType (long typ)
virtual const std::string * par () const
virtual const unsigned long * ipar () const

Protected Attributes

unsigned long m_refCount
long m_svcType
CLID m_clID
std::string m_par [3]
unsigned long m_ipar [2]
IRegistrym_pRegistry

Detailed Description

Definition at line 88 of file RootIOAddress.h.


Constructor & Destructor Documentation

RootOutputAddress::RootOutputAddress ( const CLID clid,
const std::string &  tespath 
)

Definition at line 11 of file RootIOAddress.cc.

00012     : RootIOAddress<RootOutputStream>(clid,tespath)
00013 {
00014 }


Member Function Documentation

void RootIOAddress< RootOutputStream >::setStream ( RootOutputStream stream  )  [inline, inherited]

Definition at line 41 of file RootIOAddress.h.

00041 { m_stream = stream; }

RootOutputStream * RootIOAddress< RootOutputStream >::stream (  )  const [inline, inherited]

Definition at line 44 of file RootIOAddress.h.

00044 { return m_stream; }

const std::string& RootIOAddress< RootOutputStream >::tespath (  )  const [inline, inherited]

Return the TES (and TFile) path.

The last element is the tree / TES object name.

Definition at line 49 of file RootIOAddress.h.

00049 { return m_par[0]; }

std::string RootIOAddress< RootOutputStream >::tesdir (  )  const [inline, inherited]

Return just the TES (and TFile) path.

As above but the TES object name is removed. If top level, then "/" is returned.

Definition at line 53 of file RootIOAddress.h.

00053                              {
00054         std::string::size_type slash = m_par[0].rfind('/');
00055         if (!slash || slash == std::string::npos) return "/";
00056         return m_par[0].substr(0,slash);
00057     }

std::string RootIOAddress< RootOutputStream >::treename (  )  const [inline, inherited]

Return just the tree / TES object name.

Definition at line 60 of file RootIOAddress.h.

00060                                {
00061         std::string::size_type slash = m_par[0].rfind('/');
00062         if (!slash || slash == std::string::npos) return m_par[0];
00063         return m_par[0].substr(slash+1);
00064     }

std::string RootIOAddress< RootOutputStream >::branchname (  )  const [inline, inherited]

Return a branch name based on the TES path.

Definition at line 67 of file RootIOAddress.h.

00067                                  {
00068         return RootIO::branchname(tespath());
00069     }

int RootIOAddress< RootOutputStream >::entry (  )  const [inline, inherited]

Definition at line 71 of file RootIOAddress.h.

00071 { return m_ipar[0]; }

void RootIOAddress< RootOutputStream >::setEntry ( int  entry  )  [inline, inherited]

Definition at line 72 of file RootIOAddress.h.

00072 { m_ipar[0] = entry; }


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:18:22 2011 for RootIOSvc by doxygen 1.4.7