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

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

Collaboration diagram for xAOD::TFileAccessTracer::AccessedFile:

Public Member Functions

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

Public Attributes

::TString filePath
 The full path to the file.
::TString fileName
 The name of the file.

Detailed Description

Helper class storing information about the accessed files.

Definition at line 72 of file TFileAccessTracer.h.

Member Function Documentation

◆ fullFilePath()

TString xAOD::TFileAccessTracer::AccessedFile::fullFilePath ( ) const

Function returning the full file path.

Since in the end it was decided to send the file names as a single string to the monitoring service, this function joins the path name + file name back up again.

A bit inefficient, but it keeps the possibility open for collecting the path and file names separately in the future.

Returns
The full file path+name

Definition at line 315 of file TFileAccessTracer.cxx.

315 {
316
317 if( filePath == "" ) {
318 return fileName;
319 } else {
320 return ( filePath + "/" + fileName );
321 }
322 }
::TString filePath
The full path to the file.
::TString fileName
The name of the file.

◆ operator<()

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

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

Very simple, but probably a bit slow operator, that allows us to put such AccessedFile objects into an std::set.

May need to introduce something more performant later on.

Parameters
rhsThe object to compare the current one to
Returns
true or false according to a simple, strict ordering rule

Definition at line 295 of file TFileAccessTracer.cxx.

296 {
297
298 if( filePath != rhs.filePath ) {
299 return filePath < rhs.filePath;
300 }
301 if( fileName != rhs.fileName ) {
302 return fileName < rhs.fileName;
303 }
304
305 return false;
306 }

Member Data Documentation

◆ fileName

::TString xAOD::TFileAccessTracer::AccessedFile::fileName

The name of the file.

Definition at line 77 of file TFileAccessTracer.h.

◆ filePath

::TString xAOD::TFileAccessTracer::AccessedFile::filePath

The full path to the file.

Definition at line 75 of file TFileAccessTracer.h.


The documentation for this class was generated from the following files: