Elements
6.2
A C++ base framework for the Euclid Software.
|
Go to the documentation of this file.
34 inline namespace Services {
44 string silent_command = command +
" > /dev/null";
57 if (fgets(buffer.
data(), BUFSIZ, cmdpipe.get()) !=
nullptr) {
65 return boost::filesystem::is_directory(local_dir);
69 if (not local_file.has_parent_path()) {
72 const path dir = local_file.parent_path();
74 boost::filesystem::create_directories(dir);
83 const string codeen_prefix(
"WORKSPACE");
84 const string prefix_env_variable(codeen_prefix);
95 string::size_type offset(0);
96 for (
auto substr : substrings) {
97 offset = input.
find(substr, offset);
98 if (offset == string::npos) {
ELEMENTS_API bool checkCall(const std::string &command)
ELEMENTS_API bool localDirExists(path localDir)
ELEMENTS_API std::string lower(std::string text)
ELEMENTS_API std::pair< std::string, std::string > runCommandAndCaptureOutErr(std::string command)
ELEMENTS_API bool containsInThisOrder(std::string input, std::vector< std::string > substrings)
std::string get(const std::string &index, const std::string &default_value="") const
ELEMENTS_API void createLocalDirOf(path localFile)
ELEMENTS_API path localWorkspacePrefix()
Defines a class to handle the Environment.
Python dictionary-like Environment interface.
ELEMENTS_API Path::Item getPath(const T &file_name, bool raise_exception=true)
alias for the getAuxiliaryPath function
ELEMENTS_API path confFilePath(path filename)
provide functions to retrieve configuration files
ELEMENTS_API std::string environmentVariable(std::string name)
Get the value of an environment variable.
Path::Item path
importing the path item from ElementsKernel