Browse Source

- added some missed methods

master
Andreas Romeyke 2 years ago
parent
commit
3e0e4b1459
5 changed files with 59 additions and 4 deletions
  1. +51
    -3
      src/include/bagmetadata.hpp
  2. +3
    -0
      src/include/fetchfile.hpp
  3. +0
    -1
      src/include/manifest.hpp
  4. +2
    -0
      src/include/othertags.hpp
  5. +3
    -0
      src/include/payload.hpp

+ 51
- 3
src/include/bagmetadata.hpp View File

@ -31,12 +31,60 @@ class Bagmetadata{
public:
Bagmetadata( string basedir );
bool has_bagmetadata();
string get_SourceOrganization();
string get_OrganizationAddress();
string get_ContactName();
string get_ContactPhone();
string get_ContactEmail();
string get_ExternalDescription();
string get_BaggingDate();
string get_ExternalIdentifier();
string get_BagSize();
oxum_t get_PayloadOxum();
string get_BagGroupIdentifier();
string get_BagCount();
string get_InternalSenderIdentifier();
string get_InternalSenderDescription();
bool has_SourceOrganization();
bool has_OrganizationAddress();
bool has_ContactName();
bool has_ContactPhone();
bool has_ContactEmail();
bool has_ExternalDescription();
bool has_BaggingDate();
bool has_ExternalIdentifier();
bool has_BagSize();
bool has_PayloadOxum();
bool has_BagGroupIdentifier();
bool has_BagCount();
bool has_InternalSenderIdentifier();
bool has_InternalSenderDescription();
void set_SourceOrganization( string );
void set_OrganizationAddress( string );
void set_ContactName( string );
void set_ContactPhone( string );
void set_ContactEmail( string );
void set_ExternalDescription( string );
void set_BaggingDate( string );
void set_ExternalIdentifier( string );
void set_BagSize( string );
void set_PayloadOxum( oxum_t );
void set_BagGroupIdentifier( string );
void set_BagCount( string );
void set_InternalSenderIdentifier( string );
void set_InternalSenderDescription( string );
map<string,string> get_metadata();
void set_metadata(map<string,string> &);
bool has_metadata();
bool validate();
bool has_oxum();
oxum_t get_oxum();
bool store( string basedir);
void get_logstream( stringstream & log);
void reset_logstream();
};


+ 3
- 0
src/include/fetchfile.hpp View File

@ -21,8 +21,11 @@ class Fetchfile{
Fetchfile( string basedir );
bool has_fetchfile();
list<fetch_t> get_entries();
bool set_entries( list<fetch_t> &);
bool fetch(fetch_t);
bool fetch_all_entries();
bool add_fetch_entry( fetch_t);
bool remove_fetch_entry (fetch_t);
bool validate();
bool store( string basedir);
void get_logstream( stringstream & log);


+ 0
- 1
src/include/manifest.hpp View File

@ -20,7 +20,6 @@ class Manifest{
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( const string& basedir, list<string> & files);
void get_logstream( stringstream & log);
void reset_logstream();


+ 2
- 0
src/include/othertags.hpp View File

@ -9,6 +9,8 @@ class Othertags{
public:
Othertags( string basedir);
bool store( string basedir);
bool set_other_tag_files( list<string> &);
list<string> get_other_tag_files();
void get_logstream( stringstream & log);
void reset_logstream();
};


+ 3
- 0
src/include/payload.hpp View File

@ -17,6 +17,9 @@ class Payload{
Payload( string basedir );
list<string> get_all_relative_paths();
list<string> get_all_absolute_paths();
bool has_file( string filename );
bool add_file( string sourcefile, string target_file );
bool remove_file( string file );
bool validate();
bool store( const string& basedir);
void get_logstream( stringstream & log);


Loading…
Cancel
Save