ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::TFileAccessTracer::Impl::AccessedFile Struct Reference

Helper struct storing information about the accessed files. More...

Collaboration diagram for xAOD::TFileAccessTracer::Impl::AccessedFile:

Public Member Functions

bool operator< (const AccessedFile &rhs) const
 Operator to be able to put this into an std::set.
std::string fullFilePath () const
 Function returning the full file path.

Public Attributes

std::string m_filePath
 The full path to the file.
std::string m_fileName
 The name of the file.

Detailed Description

Helper struct storing information about the accessed files.

Definition at line 31 of file TFileAccessTracer.cxx.

Member Function Documentation

◆ fullFilePath()

std::string xAOD::TFileAccessTracer::Impl::AccessedFile::fullFilePath ( ) const
inline

Function returning the full file path.

Definition at line 47 of file TFileAccessTracer.cxx.

47 {
48 if (m_filePath == "") {
49 return m_fileName;
50 } else {
51 return (m_filePath + "/" + m_fileName);
52 }
53 }
std::string m_filePath
The full path to the file.
std::string m_fileName
The name of the file.

◆ operator<()

bool xAOD::TFileAccessTracer::Impl::AccessedFile::operator< ( const AccessedFile & rhs) const
inline

Operator to be able to put this into an std::set.

Definition at line 37 of file TFileAccessTracer.cxx.

37 {
38 if (m_filePath != rhs.m_filePath) {
39 return m_filePath < rhs.m_filePath;
40 }
41 if (m_fileName != rhs.m_fileName) {
42 return m_fileName < rhs.m_fileName;
43 }
44 return false;
45 }

Member Data Documentation

◆ m_fileName

std::string xAOD::TFileAccessTracer::Impl::AccessedFile::m_fileName

The name of the file.

Definition at line 35 of file TFileAccessTracer.cxx.

◆ m_filePath

std::string xAOD::TFileAccessTracer::Impl::AccessedFile::m_filePath

The full path to the file.

Definition at line 33 of file TFileAccessTracer.cxx.


The documentation for this struct was generated from the following file: