Chaste Commit::29c3c4ab2bee00ddd311a035a1e522c03cbe928a
ChasteBuildRoot.hpp File Reference
#include <string>
+ Include dependency graph for ChasteBuildRoot.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * ChasteBuildRootDir ()
 
const char * ChasteSourceRootDir ()
 
const char * ChasteInstallRootDir ()
 
std::string ChasteComponentBuildDir (const std::string &rComponent)
 
std::string ChasteBuildDirName ()
 
std::string DefaultChasteTestOutput ()
 
std::string ChasteBuildType ()
 

Detailed Description

A collection of functions providing information about the filesystem layout of this Chaste source tree.

Definition in file ChasteBuildRoot.hpp.

Function Documentation

◆ ChasteBuildDirName()

std::string ChasteBuildDirName ( )
Returns
the name of the folder within the 'build' dir of a component that contains the compiled files.

Referenced by CellMLToSharedLibraryConverter::ConvertCellmlToSo().

◆ ChasteBuildRootDir()

const char * ChasteBuildRootDir ( )
Returns
the path to the root directory of the Chaste build tree. Will always give you the absolute path with a trailing slash.

Referenced by FileFinder::SetPath().

◆ ChasteBuildType()

std::string ChasteBuildType ( )
Returns
the build type string used in building Chaste.

Referenced by CellMLToSharedLibraryConverter::ConvertCellmlToSo().

◆ ChasteComponentBuildDir()

std::string ChasteComponentBuildDir ( const std::string &  rComponent)
Returns
the folder in which compiled files are placed for the given Chaste component. Will always give you the absolute path with a trailing slash.
Parameters
rComponente.g. global, heart, pde, ...

◆ ChasteInstallRootDir()

const char * ChasteInstallRootDir ( )
Returns
the install prefix (CMAKE_INSTALL_PREFIX) this Chaste was configured with. Will always give you the absolute path with a trailing slash. Used to locate an installed copy of the provenance/ directory when this Chaste is used out of tree, via ChasteConfig.cmake, rather than from its own source or build tree.

◆ ChasteSourceRootDir()

const char * ChasteSourceRootDir ( )
Returns
the path to the root directory of the Chaste source tree. Will always give you the absolute path with a trailing slash.

Referenced by PetscSetupUtils::CommonSetup(), Exception::SetMessage(), and FileFinder::SetPath().

◆ DefaultChasteTestOutput()

std::string DefaultChasteTestOutput ( )
Returns
the default location of the test output. This can be overridden by setting env var CHASTE_TEST_OUTPUT.

Referenced by OutputFileHandler::GetChasteTestOutputDirectory().