Go to the documentation of this file.    1 #ifndef __JGIZMO__JROOTOBJECTID__ 
    2 #define __JGIZMO__JROOTOBJECTID__ 
   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();
 
 
const std::string & getFilename() const
Get file name.
 
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.
 
static const char LABEL_L_BRACKET
left bracket for label
 
TString getObjectName() const
Get object name.
 
static const char LABEL_R_BRACKET
right bracket for label
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
bool is_valid() const
Check validity.
 
static const char PATHNAME_SEPARATOR
path name separator
 
static const char FILENAME_SEPARATOR
file name separator
 
Auxiliary class to handle file name, ROOT directory and object name.
 
friend std::istream & operator>>(std::istream &in, JRootObjectID &object)
Read object identifier from input.
 
TString getDirectory() const
Get directory.
 
Exception for parsing value.
 
Auxiliary applications for use of ROOT and more.
 
friend bool operator==(const JRootObjectID &first, const JRootObjectID &second)
Equal operator for object identifiers.
 
JRootObjectID()
Default constructor.
 
friend std::ostream & operator<<(std::ostream &out, const JRootObjectID &object)
Write object identifier to output.