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);
46 std::vector<std::string>
elems;
53 static std::string
PathBase(std::string path);
67 static std::string
GetEnv(std::string
var);
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);
112 static std::string
FindModule(std::string path);
113 static std::string
FindModule(std::string path, std::string lib);
117 static boost::filesystem::path cwd_;
120 static std::string instdir_;
An environment utility to help locate files and find environment settings.
static const std::string rng_schema(bool flat=false)
Returns the current rng schema.
static const void SetNucDataPath()
Initializes the path to the cyclus_nuc_data.h5 file.
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 const bool allow_milps()
static std::string FindModule(std::string path)
Returns the full path to a module by searching through default install and CYCLUS_PATH directories.
static std::string GetEnv(std::string var)
Method to check the existence of and return an environment variable.
static std::vector< std::string > SplitPath(const std::string &s, char delim)
splits a string of paths by a delimeter
static std::string PathBase(std::string path)
the path basis
static const void SetNucDataPath(std::string p)
Initializes the path to the nuclear data library to p.
static const std::string EnvDelimiter()
static const std::string GetBuildPath()
The relative path to the root build directory (containing bin, lib, etc.)
static const std::string nuc_data()
static const std::vector< std::string > cyclus_path()
static void SplitPath(const std::string &s, char delim, std::vector< std::string > &elems)
splits a string of paths by a delimeter
for failed reading/writing to files, network connections, etc..
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters
std::string NUC_DATA_PATH
Path to the nuc_data.h5 file.