Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:33

0001 #pragma once
0002 
0003 #include <iostream>
0004 #include <string>
0005 #include <sstream>
0006 #include <cstdio>
0007 
0008 #include <nopayloadclient/exception.hpp>
0009 #include <nopayloadclient/iov.hpp>
0010 
0011 
0012 namespace nopayloadclient {
0013 
0014 using nlohmann::json;
0015 using std::string;
0016 
0017 class Payload {
0018 public:
0019     Payload() {};
0020     Payload(const string& local_url_, const string& type_);
0021     string local_url;
0022     string type;
0023     string bare_file_name;
0024     string check_sum;
0025     string remote_dir;
0026     string remote_url;
0027     string full_remote_url;
0028     //IOV iov {0, 0};
0029     friend std::ostream& operator<<(std::ostream& os, const Payload& pl);
0030 private:
0031     string getCheckSum();
0032     string getDirsFromChecksum();
0033     string getRemoteDir();
0034     string getRemoteUrl();
0035     string getBareFileName();
0036 };
0037 
0038 }