C++ Library to handle BagIt structures. BagIt is a standard format to create transfer packages for digital preservation purposes. See https://en.wikipedia.org/wiki/BagIt for details http://andreas-romeyke.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
630 B

#ifndef LIBCBAG_MANIFEST
#define LIBCBAG_MANIFEST
#include <string>
#include <map>
#include <list>
#include "checksum.hpp"
using namespace std;
typedef string filename_t;
typedef string checksum_string_t;
class Manifest{
protected:
string basedir;
map<checksum_algorithms,filename_t> manifest_algorithm_files;
public:
virtual multimap<checksum_string_t,filename_t> get_checksum_file_pairs(checksum_algorithms algorithm);
list<filename_t> get_checksummed_files();
virtual bool validate( list<string> & log );
void debug();
};
#endif
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab