|
|
@ -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(); |
|
|
|
}; |
|
|
|