1 #ifndef __JGIZMO__JROOTOBJECTID__ 
    2 #define __JGIZMO__JROOTOBJECTID__ 
   19 namespace JPP { 
using namespace JGIZMO; }
 
   60                   const std::string& 
name) :
 
   96       return TString(
name.c_str());
 
  180       for (
int bracket = 0; in.peek() != EOF; ) {
 
  182         const char c = (char) in.get();
 
  192         } 
else if (isspace(c)) {
 
  204       if (pos != string::npos) {
 
  206         object.file_name = buffer.substr(0, pos);
 
  207         object.name      = buffer.substr(pos + 1);
 
  211         if (pos != string::npos) {
 
  213           object.directory = 
object.name.substr(0, pos);
 
  214           object.name      = 
object.name.substr(pos + 1);
 
  217       } 
else if (!buffer.empty()) {
 
  219         throw JParseError(
"JRootObjectID error parsing " + buffer);
 
  235       return out << 
object.getFilename() << 
FILENAME_SEPARATOR << 
object.getFullObjectName();
 
JRootObjectID(const std::string &file_name, const std::string &name)
Constructor. 
 
TString getFullFilename() const 
Get full file name, including path. 
 
TString getFullObjectName() const 
Get full object name, including path. 
 
const std::string & getFilename() const 
Get file name. 
 
Auxiliary class to handle file name, ROOT directory and object name. 
 
static const char LABEL_L_BRACKET
left bracket for label 
 
static const char LABEL_R_BRACKET
right bracket for label 
 
TString getDirectory() const 
Get directory. 
 
static const char FILENAME_SEPARATOR
file name separator 
 
static const char PATHNAME_SEPARATOR
path name separator 
 
friend std::istream & operator>>(std::istream &in, JRootObjectID &object)
Read object identifier from input. 
 
TString getObjectName() const 
Get object name. 
 
friend bool operator==(const JRootObjectID &first, const JRootObjectID &second)
Equal operator for object identifiers. 
 
Exception for parsing value. 
 
bool is_valid() const 
Check validity. 
 
friend std::ostream & operator<<(std::ostream &out, const JRootObjectID &object)
Write object identifier to output. 
 
JRootObjectID()
Default constructor.