Elements 6.3.1
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
DataSyncUtils.h File Reference
#include <string>
#include <utility>
#include <vector>
#include "ElementsKernel/Export.h"
#include "ElementsKernel/Path.h"
Include dependency graph for DataSyncUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Elements
 
namespace  Elements::Services
 
namespace  Elements::Services::DataSync
 

Typedefs

using Elements::Services::DataSync::path = Path::Item
 importing the path item from ElementsKernel
 

Functions

ELEMENTS_API path Elements::Services::DataSync::confFilePath (path filename)
 
ELEMENTS_API bool Elements::Services::DataSync::checkCall (const std::string &command)
 
ELEMENTS_API std::pair< std::string, std::stringElements::Services::DataSync::runCommandAndCaptureOutErr (std::string command)
 
ELEMENTS_API bool Elements::Services::DataSync::localDirExists (path localDir)
 
ELEMENTS_API void Elements::Services::DataSync::createLocalDirOf (path localFile)
 
ELEMENTS_API std::string Elements::Services::DataSync::environmentVariable (std::string name)
 Get the value of an environment variable.
 
ELEMENTS_API std::string Elements::Services::DataSync::getWorkdirVariable ()
 Get the datasync workdir variable.
 
ELEMENTS_API path Elements::Services::DataSync::localWorkspacePrefix ()
 
ELEMENTS_API std::string Elements::Services::DataSync::lower (std::string text)
 
template<typename T >
ELEMENTS_API bool Elements::Services::DataSync::valueIsListed (const T &value, const std::vector< T > &list)
 
ELEMENTS_API bool Elements::Services::DataSync::containsInThisOrder (std::string input, std::vector< std::string > substrings)
 

Variables

ELEMENTS_API const std::string Elements::Services::DataSync::DEFAULT_WORKDIR_VAR {"WORKSPACE"}
 Name of the default variable that contains the path to the work dir.
 
ELEMENTS_API const std::string Elements::Services::DataSync::WORKDIR_VAR_VAR {"DATASYNC_WORKDIR_VAR"}
 Name of the variable containing the name of the workspace. It that variable is not set or empty, the content of DEFAULT_WORKDIR_VAR is used as the work dir path.