Browse Source

- fixed signature using const

master
Andreas Romeyke 2 years ago
parent
commit
9e2db62566
4 changed files with 8 additions and 8 deletions
  1. +3
    -3
      src/include/checksum.hpp
  2. +2
    -2
      src/include/manifest.hpp
  3. +2
    -2
      src/include/payload.hpp
  4. +1
    -1
      src/include/tagmanifest.hpp

+ 3
- 3
src/include/checksum.hpp View File

@ -34,9 +34,9 @@ class Checksum {
public:
//Checksum();
bool is_algorithm_supported( checksum_algorithms alg );
string checksum_of_file(string filepath, checksum_algorithms alg);
oxum_t oxum_of_file(string filepath);
oxum_t oxum_of_filelist( list<string> filepaths);
string checksum_of_file(const string& filepath, checksum_algorithms alg);
oxum_t oxum_of_file(const string& filepath);
oxum_t oxum_of_filelist( list<string> files);
void get_logstream( stringstream & log);
void reset_logstream();
};


+ 2
- 2
src/include/manifest.hpp View File

@ -14,11 +14,11 @@ class Manifest{
stringstream log;
map<checksum_algorithms,filename_t> manifest_algorithm_files;
public:
virtual multimap<checksum_string_t,filename_t> get_checksum_file_pairs(checksum_algorithms algorithm);
virtual multimap<checksum_string_t,filename_t> get_checksum_file_pairs(checksum_algorithms alg);
list<filename_t> get_checksummed_files();
virtual bool validate();
void debug();
bool store( string basedir, list<string> & files);
bool store( const string& basedir, list<string> & files);
void get_logstream( stringstream & log);
void reset_logstream();
};


+ 2
- 2
src/include/payload.hpp View File

@ -11,14 +11,14 @@ using namespace std;
class Payload{
private:
string basedir;
void scan_dir_recursively( fs::path directory, list<fs::path> &paths );
void scan_dir_recursively( const fs::path& directory, list<fs::path> &paths );
stringstream log;
public:
Payload( string basedir );
list<string> get_all_relative_paths();
list<string> get_all_absolute_paths();
bool validate();
bool store( string basedir);
bool store( const string& basedir);
void get_logstream( stringstream & log);
void reset_logstream();
};


+ 1
- 1
src/include/tagmanifest.hpp View File

@ -13,7 +13,7 @@ class Tagmanifest : public Manifest {
public:
Tagmanifest( string basedir );
bool has_tagmanifest();
multimap<checksum_string_t,filename_t> get_checksum_file_pairs(checksum_algorithms algorithm);
multimap<checksum_string_t,filename_t> get_checksum_file_pairs(checksum_algorithms alg);
};
#endif


Loading…
Cancel
Save