15 std::string
const fileURI{
"file://"};
24 std::string& fileFQname)
26 if (uri.substr(0, 7) != fileURI) {
33 std::string inFileName;
34 if (stripURI(uri, inFileName) != 0) {
39 ifstream infile{inFileName.c_str()};
44 fileFQname = inFileName;
61 std::string& inFileName)
const 63 if (uri.substr(0, 7) != fileURI) {
67 inFileName = uri.substr(7);
74 std::copy(std::istream_iterator<char>{in},
75 std::istream_iterator<char>{},
76 std::ostream_iterator<char>{out});
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
int doTranslateToLocalFilename(std::string const &uri, std::string &fileFQname) override
int copyFile(std::ifstream &in, std::ofstream &out) const
int stripURI(std::string const &uri, std::string &inFileName) const
TrivialFileTransfer(Parameters const &pset)