Jpp
15.0.1-rc.2-highQE
the software that should make you happy
|
Auxiliary class to handle file name, ROOT directory and object name. More...
#include <JRootObjectID.hh>
Public Member Functions | |
JRootObjectID () | |
Default constructor. More... | |
JRootObjectID (const std::string &file_name, const std::string &name) | |
Constructor. More... | |
JRootObjectID (const std::string &file_name, const std::string &dir, const std::string &name) | |
Constructor. More... | |
JRootObjectID (const std::string &full_name) | |
Constructor. More... | |
const std::string & | getFilename () const |
Get file name. More... | |
TString | getDirectory () const |
Get directory. More... | |
TString | getObjectName () const |
Get object name. More... | |
TString | getFullFilename () const |
Get full file name, including path. More... | |
TString | getFullObjectName () const |
Get full object name, including path. More... | |
bool | is_valid () const |
Check validity. More... | |
void | clear () |
Clear. More... | |
Static Public Attributes | |
static const char | LABEL_L_BRACKET = '[' |
left bracket for label More... | |
static const char | LABEL_R_BRACKET = ']' |
right bracket for label More... | |
static const char | FILENAME_SEPARATOR = ':' |
file name separator More... | |
static const char | PATHNAME_SEPARATOR = '/' |
path name separator More... | |
Protected Attributes | |
std::string | file_name |
std::string | directory |
std::string | name |
Friends | |
bool | operator== (const JRootObjectID &first, const JRootObjectID &second) |
Equal operator for object identifiers. More... | |
std::istream & | operator>> (std::istream &in, JRootObjectID &object) |
Read object identifier from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JRootObjectID &object) |
Write object identifier to output. More... | |
Auxiliary class to handle file name, ROOT directory and object name.
The general syntax is as follows:
<file name>:[<directory/>]<object name>
where <directory>
is optional and <object name>
may be a regular expression (TRegexp).
Definition at line 36 of file JRootObjectID.hh.
|
inline |
|
inline |
Constructor.
file_name | file name |
name | object name |
Definition at line 59 of file JRootObjectID.hh.
|
inline |
Constructor.
file_name | file name |
dir | directory name |
name | object name |
Definition at line 74 of file JRootObjectID.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get full file name, including path.
Definition at line 132 of file JRootObjectID.hh.
|
inline |
Get full object name, including path.
Definition at line 146 of file JRootObjectID.hh.
|
inline |
Check validity.
Definition at line 160 of file JRootObjectID.hh.
|
inline |
|
friend |
Equal operator for object identifiers.
first | first object identifier |
second | second object identifier |
Definition at line 184 of file JRootObjectID.hh.
|
friend |
Read object identifier from input.
in | input stream |
object | object identifier |
Definition at line 199 of file JRootObjectID.hh.
|
friend |
Write object identifier to output.
out | output stream |
object | object identifier |
Definition at line 260 of file JRootObjectID.hh.
|
static |
left bracket for label
Definition at line 40 of file JRootObjectID.hh.
|
static |
right bracket for label
Definition at line 41 of file JRootObjectID.hh.
|
static |
file name separator
Definition at line 42 of file JRootObjectID.hh.
|
static |
path name separator
Definition at line 43 of file JRootObjectID.hh.
|
protected |
Definition at line 266 of file JRootObjectID.hh.
|
protected |
Definition at line 267 of file JRootObjectID.hh.
|
protected |
Definition at line 268 of file JRootObjectID.hh.