group Rivet file searching utils

Rivet file searching utils

Functions

Name
std::stringgetLibPath()
Get library install path.
std::stringgetDataPath()
Get data install path.
std::stringgetRivetDataPath()
Get Rivet data install path.
std::vector< std::string >getAnalysisLibPaths()
Get Rivet analysis plugin library search paths.
voidsetAnalysisLibPaths(const std::vector< std::string > & paths)
Set the Rivet analysis plugin library search paths.
voidaddAnalysisLibPath(const std::string & extrapath)
Add a Rivet analysis plugin library search path.
std::stringfindAnalysisLibFile(const std::string & filename)
Find the first file of the given name in the analysis library search dirs.
std::vector< std::string >getAnalysisDataPaths()
Get Rivet analysis reference data search paths.
voidsetAnalysisDataPaths(const std::vector< std::string > & paths)
Set the Rivet data file search paths.
voidaddAnalysisDataPath(const std::string & extrapath)
Add a Rivet data file search path.
std::stringfindAnalysisDataFile(const std::string & filename, const std::vector< std::string > & pathprepend =std::vector< std::string >(), const std::vector< std::string > & pathappend =std::vector< std::string >())
Find the first file of the given name in the general data file search dirs.
std::vector< std::string >getAnalysisRefPaths()
Get Rivet analysis reference data search paths.
std::stringfindAnalysisRefFile(const std::string & filename, const std::vector< std::string > & pathprepend =std::vector< std::string >(), const std::vector< std::string > & pathappend =std::vector< std::string >())
Find the first file of the given name in the ref data file search dirs.
std::vector< std::string >getAnalysisInfoPaths()
Get Rivet analysis info metadata search paths.
std::stringfindAnalysisInfoFile(const std::string & filename, const std::vector< std::string > & pathprepend =std::vector< std::string >(), const std::vector< std::string > & pathappend =std::vector< std::string >())
Find the first file of the given name in the analysis info file search dirs.
std::vector< std::string >getAnalysisPlotPaths()
Get Rivet analysis plot style search paths.
std::stringfindAnalysisPlotFile(const std::string & filename, const std::vector< std::string > & pathprepend =std::vector< std::string >(), const std::vector< std::string > & pathappend =std::vector< std::string >())
Find the first file of the given name in the analysis plot file search dirs.
boolfileexists(const std::string & path)
Convenience function for determining if a filesystem path exists.

Functions Documentation

function getLibPath

std::string getLibPath()

Get library install path.

function getDataPath

std::string getDataPath()

Get data install path.

function getRivetDataPath

std::string getRivetDataPath()

Get Rivet data install path.

function getAnalysisLibPaths

std::vector< std::string > getAnalysisLibPaths()

Get Rivet analysis plugin library search paths.

function setAnalysisLibPaths

void setAnalysisLibPaths(
    const std::vector< std::string > & paths
)

Set the Rivet analysis plugin library search paths.

function addAnalysisLibPath

void addAnalysisLibPath(
    const std::string & extrapath
)

Add a Rivet analysis plugin library search path.

function findAnalysisLibFile

std::string findAnalysisLibFile(
    const std::string & filename
)

Find the first file of the given name in the analysis library search dirs.

Note: If none found, returns an empty string

function getAnalysisDataPaths

std::vector< std::string > getAnalysisDataPaths()

Get Rivet analysis reference data search paths.

function setAnalysisDataPaths

void setAnalysisDataPaths(
    const std::vector< std::string > & paths
)

Set the Rivet data file search paths.

function addAnalysisDataPath

void addAnalysisDataPath(
    const std::string & extrapath
)

Add a Rivet data file search path.

function findAnalysisDataFile

std::string findAnalysisDataFile(
    const std::string & filename,
    const std::vector< std::string > & pathprepend =std::vector< std::string >(),
    const std::vector< std::string > & pathappend =std::vector< std::string >()
)

Find the first file of the given name in the general data file search dirs.

Note: If none found, returns an empty string

function getAnalysisRefPaths

std::vector< std::string > getAnalysisRefPaths()

Get Rivet analysis reference data search paths.

function findAnalysisRefFile

std::string findAnalysisRefFile(
    const std::string & filename,
    const std::vector< std::string > & pathprepend =std::vector< std::string >(),
    const std::vector< std::string > & pathappend =std::vector< std::string >()
)

Find the first file of the given name in the ref data file search dirs.

Note: If none found, returns an empty string

function getAnalysisInfoPaths

std::vector< std::string > getAnalysisInfoPaths()

Get Rivet analysis info metadata search paths.

function findAnalysisInfoFile

std::string findAnalysisInfoFile(
    const std::string & filename,
    const std::vector< std::string > & pathprepend =std::vector< std::string >(),
    const std::vector< std::string > & pathappend =std::vector< std::string >()
)

Find the first file of the given name in the analysis info file search dirs.

Note: If none found, returns an empty string

function getAnalysisPlotPaths

std::vector< std::string > getAnalysisPlotPaths()

Get Rivet analysis plot style search paths.

function findAnalysisPlotFile

std::string findAnalysisPlotFile(
    const std::string & filename,
    const std::vector< std::string > & pathprepend =std::vector< std::string >(),
    const std::vector< std::string > & pathappend =std::vector< std::string >()
)

Find the first file of the given name in the analysis plot file search dirs.

Note: If none found, returns an empty string

function fileexists

inline bool fileexists(
    const std::string & path
)

Convenience function for determining if a filesystem path exists.


Updated on 2022-08-07 at 20:17:17 +0100