19 #ifndef ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCUTILS_H_
20 #define ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCUTILS_H_
26 #include <boost/filesystem.hpp>
30 namespace ElementsServices {
58 const auto& begin = list.
begin();
59 const auto& end = list.
end();
60 return std::find(begin, end, value) != end;
70 #endif // ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCUTILS_H_
ELEMENTS_API void createLocalDirOf(path localFile)
ELEMENTS_API bool valueIsListed(const T &value, const std::vector< T > &list)
ELEMENTS_API bool localDirExists(path localDir)
ELEMENTS_API bool containsInThisOrder(std::string input, std::vector< std::string > substrings)
ELEMENTS_API std::string environmentVariable(std::string name)
Get the value of an environment variable.
defines the macros to be used for explicit export of the symbols
ELEMENTS_API std::pair< std::string, std::string > runCommandAndCaptureOutErr(std::string command)
boost::filesystem::path path
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
ELEMENTS_API std::string lower(std::string text)
ELEMENTS_API bool checkCall(std::string command)
ELEMENTS_API path localWorkspacePrefix()
ELEMENTS_API path confFilePath(path filename)