Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::LArFileHelper Class Reference

LArFileHelper class. More...

#include "LArFileHelper.h"

Static Public Member Functions

static std::string FindFileInPath (const std::string &unqualifiedFileName, const std::string &environmentVariable, const std::string &delimiter=":")
 Find the fully-qualified file name by searching through a list of delimiter-separated paths in a named environment variable. The fully-qualified file name will be provided for the first instance of the file name encountered.
 

Detailed Description

LArFileHelper class.

Definition at line 19 of file LArFileHelper.h.

Member Function Documentation

◆ FindFileInPath()

std::string lar_content::LArFileHelper::FindFileInPath ( const std::string &  unqualifiedFileName,
const std::string &  environmentVariable,
const std::string &  delimiter = ":" 
)
static

Find the fully-qualified file name by searching through a list of delimiter-separated paths in a named environment variable. The fully-qualified file name will be provided for the first instance of the file name encountered.

Parameters
unqualifiedFileNamethe unqualified file name
environmentVariablethe name of the environment variable specifying a list of delimiter-separated paths
delimiterthe specified delimiter
Returns
the fully-qualified name if found, else a StatusCode exception will be raised

Definition at line 21 of file LArFileHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

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