1 #ifndef CYCLUS_SRC_ENV_H_ 2 #define CYCLUS_SRC_ENV_H_ 7 #include "boost/filesystem.hpp" 31 std::vector<std::string> &elems) {
32 std::stringstream ss(s);
34 while (std::getline(ss, item, delim)) {
35 elems.push_back(item);
46 std::vector<std::string> elems;
80 static const std::vector<std::string>
cyclus_path();
105 if (!boost::filesystem::exists(p))
106 throw IOError(
"cyclus_nuc_data.h5 not found at " + p);
117 static boost::filesystem::path cwd_;
125 #endif // CYCLUS_SRC_ENV_H_ static const std::string GetBuildPath()
The relative path to the root build directory (containing bin, lib, etc.)
static std::vector< std::string > SplitPath(const std::string &s, char delim)
splits a string of paths by a delimeter
static const bool allow_milps()
static const std::vector< std::string > cyclus_path()
static std::string FindModule(std::string path)
Returns the full path to a module by searching through default install and CYCLUS_PATH directories...
std::string NUC_DATA_PATH
Path to the nuc_data.h5 file.
static const void SetNucDataPath(std::string p)
Initializes the path to the nuclear data library to p.
static const void SetNucDataPath()
Initializes the path to the cyclus_nuc_data.h5 file.
static std::string GetEnv(std::string var)
Method to check the existence of and return an environment variable.
for failed reading/writing to files, network connections, etc..
static std::string PathBase(std::string path)
the path basis
static const std::string rng_schema(bool flat=false)
Returns the current rng schema.
An environment utility to help locate files and find environment settings.
static const std::string nuc_data()
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
static const std::string GetInstallPath()
The relative path to the root install directory (containing bin, lib, etc.) This first checks the pat...
static const std::string PathDelimiter()
static void SplitPath(const std::string &s, char delim, std::vector< std::string > &elems)
splits a string of paths by a delimeter
static const std::string EnvDelimiter()