24 #ifndef ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCUTILS_H_
25 #define ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCUTILS_H_
31 #include <boost/filesystem.hpp>
65 const auto& begin = list.
begin();
66 const auto& end = list.
end();
67 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::Path::Item path
ELEMENTS_API std::string lower(std::string text)
ELEMENTS_API path confFilePath(path filename)
ELEMENTS_API bool localDirExists(path localDir)
ELEMENTS_API bool valueIsListed(const T &value, const std::vector< T > &list)
ELEMENTS_API bool containsInThisOrder(std::string input, std::vector< std::string > substrings)
ELEMENTS_API void createLocalDirOf(path localFile)
ELEMENTS_API bool checkCall(std::string command)
ELEMENTS_API path localWorkspacePrefix()
ELEMENTS_API std::pair< std::string, std::string > runCommandAndCaptureOutErr(std::string command)
boost::filesystem::path Item