#include <RootIOAddress.h>
Inheritance diagram for RootInputAddress:
Public Member Functions | |
| RootInputAddress (const CLID &clid, const std::string &tespath) | |
| int | fileNumber () |
| void | setFileNumber (int fn) |
| bool | readIsDone () |
| void | readDone (bool tf=true) |
| void | setStream (RootInputStream *stream) |
| RootInputStream * | stream () 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 IRegistry * | registry () const |
| virtual void | setRegistry (IRegistry *pRegistry) |
| const CLID & | clID () 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] |
| IRegistry * | m_pRegistry |
Private Attributes | |
| bool | m_read_done |
Definition at line 76 of file RootIOAddress.h.
| RootInputAddress::RootInputAddress | ( | const CLID & | clid, | |
| const std::string & | tespath | |||
| ) |
Definition at line 4 of file RootIOAddress.cc.
00005 : RootIOAddress<RootInputStream>(clid,tespath) 00006 { 00007 m_ipar[1] = -1; 00008 m_read_done = false; 00009 }
| int RootInputAddress::fileNumber | ( | ) | [inline] |
| void RootInputAddress::setFileNumber | ( | int | fn | ) | [inline] |
| bool RootInputAddress::readIsDone | ( | ) | [inline] |
| void RootInputAddress::readDone | ( | bool | tf = true |
) | [inline] |
| void RootIOAddress< RootInputStream >::setStream | ( | RootInputStream * | stream | ) | [inline, inherited] |
| RootInputStream * RootIOAddress< RootInputStream >::stream | ( | ) | const [inline, inherited] |
| const std::string& RootIOAddress< RootInputStream >::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< RootInputStream >::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< RootInputStream >::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< RootInputStream >::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< RootInputStream >::entry | ( | ) | const [inline, inherited] |
| void RootIOAddress< RootInputStream >::setEntry | ( | int | entry | ) | [inline, inherited] |
bool RootInputAddress::m_read_done [private] |
Definition at line 78 of file RootIOAddress.h.
1.4.7