24#ifndef ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCUTILS_H_
25#define ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCUTILS_H_
35inline namespace Services {
86 const auto& begin = list.
begin();
87 const auto& end = list.
end();
88 return std::find(begin, end, value) != end;
defines the macros to be used for explicit export of the symbols
provide functions to retrieve resources pointed by environment variables
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
ELEMENTS_API std::string environmentVariable(std::string name)
Get the value of an environment variable.
ELEMENTS_API std::string getWorkdirVariable()
Get the datasync workdir variable.
ELEMENTS_API const std::string WORKDIR_VAR_VAR
Name of the variable containing the name of the workspace. It that variable is not set or empty,...
ELEMENTS_API const std::string DEFAULT_WORKDIR_VAR
Name of the default variable that contains the path to the work dir.
ELEMENTS_API path confFilePath(path filename)
ELEMENTS_API path localWorkspacePrefix()
ELEMENTS_API std::pair< std::string, std::string > runCommandAndCaptureOutErr(std::string command)
ELEMENTS_API std::string lower(std::string text)
Path::Item path
importing the path item from ElementsKernel
ELEMENTS_API bool checkCall(const std::string &command)
ELEMENTS_API void createLocalDirOf(path localFile)
ELEMENTS_API bool containsInThisOrder(std::string input, std::vector< std::string > substrings)
ELEMENTS_API bool valueIsListed(const T &value, const std::vector< T > &list)
ELEMENTS_API bool localDirExists(path localDir)