cartobase 6.0.6
paths.h File Reference
#include <string>
#include <list>
Include dependency graph for paths.h:

Go to the source code of this file.

Namespaces

namespace  carto
 
namespace  carto::Paths
 Paths to configuration / shared data directories.
 

Functions

const std::string & carto::Paths::home ()
 User home directory.
 
const std::string & carto::Paths::tempDir ()
 Temporary directory used for general usage.
 
const std::string & carto::Paths::memmap ()
 Temporary directory used for memory mapping with copy - this directory has better be large.
 
const std::string & carto::Paths::installRoot ()
 Root path of the BrainVisa install directory.
 
const std::string & carto::Paths::globalShared ()
 The base shared directory for all cartograph / SHFJ data.
 
const std::string & carto::Paths::shfjShared ()
 Shared directory for SHFJ-specific data.
 
const std::list< std::string > & carto::Paths::resourceSearchPath ()
 Shared resource files search path.
 
void carto::Paths::addResourceSearchPath (const std::string &path, bool atbeginning=false)
 
std::string carto::Paths::findResourceFile (const std::string &filename, const std::string &project="", const std::string &version="")
 Find a file in the shared resources directories, or in a personal directory.
 
std::list< std::string > carto::Paths::findResourceFiles (const std::string &filename, const std::string &project="", const std::string &version="")
 Same as findResourceFile() except that it looks for every occurrence of the searched file (or directory).
 
const std::string & carto::Paths::argv0 ()
 argv[0], ie executable name and path; only available when a CartoApplication has been built
 
void carto::Paths::setArgv0 (const std::string &argv0)