cppDataPipeline 0.3.0
C++ Implementation of the FAIR Data Pipeline API
Loading...
Searching...
No Matches
metadata.hxx
1
10#ifndef __FDP_METADATA_HXX__
11#define __FDP_METADATA_HXX__
12
13#include <ctime>
14#include <ghc/filesystem.hpp>
15#include <fstream>
16#include <iomanip>
17#include <iostream>
18#include <sstream>
19#include <random>
20#include <chrono>
21#include <regex>
22
23#include "digestpp/digestpp.hpp"
24
25#ifdef _WIN32
26 #include <io.h>
27 #define access _access_s
28#else
29 #include <unistd.h>
30#endif
31
32namespace FairDataPipeline {
38std::string calculate_hash_from_file(const ghc::filesystem::path &);
39
46std::string calculate_hash_from_string(const std::string &input);
47
53std::string generate_random_hash();
54
62std::string current_time_stamp(bool file_name = false);
63
70std::string remove_local_from_root(const std::string &root);
71
78std::string remove_backslash_from_path(const std::string &path);
79
87bool file_exists( const std::string &Filename );
88
95std::string read_token(const ghc::filesystem::path &token_path);
96
97}; // namespace FairDataPipeline
98
99#endif