|
|
@ -1,10 +1,18 @@ |
|
|
|
#ifndef LIBCBAG_MANIFEST
|
|
|
|
#define LIBCBAG_MANIFEST
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
using namespace std; |
|
|
|
class manifest{ |
|
|
|
|
|
|
|
enum checksum_algorithms {md5=1, sha1}; |
|
|
|
|
|
|
|
|
|
|
|
class Manifest{ |
|
|
|
private: |
|
|
|
map<checksum_algorithms,string> manifest_algorithm_files; |
|
|
|
public: |
|
|
|
manifest(); |
|
|
|
Manifest( string basedir ); |
|
|
|
map<string,string> get_checksum_file_pairs(checksum_algorithms algorithm); |
|
|
|
}; |
|
|
|
|
|
|
|
#endif
|
|
|
|