Browse Source

- added implementation of log access methods

master
Andreas Romeyke 3 years ago
parent
commit
7170f78ca0
7 changed files with 57 additions and 1 deletions
  1. +7
    -0
      src/lib/bag.cpp
  2. +8
    -0
      src/lib/bagmetadata.cpp
  3. +8
    -0
      src/lib/checksum.cpp
  4. +8
    -0
      src/lib/fetchfile.cpp
  5. +7
    -0
      src/lib/manifest.cpp
  6. +10
    -0
      src/lib/othertags.cpp
  7. +9
    -1
      src/lib/payload.cpp

+ 7
- 0
src/lib/bag.cpp View File

@ -261,5 +261,12 @@ bool Bag::validate() {
return is_valid;
}
void Bag::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}
void Bag::reset_logstream() {
this->log.str(std::string());
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

+ 8
- 0
src/lib/bagmetadata.cpp View File

@ -141,4 +141,12 @@ bool Bagmetadata::store( string basedir ) {
}
return true;
}
void Bagmetadata::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}
void Bagmetadata::reset_logstream() {
this->log.str(std::string());
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

+ 8
- 0
src/lib/checksum.cpp View File

@ -93,4 +93,12 @@ oxum_t Checksum::oxum_of_filelist( list<string> files) {
}
return oxum;
}
void Checksum::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}
void Checksum::reset_logstream() {
this->log.str(std::string());
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

+ 8
- 0
src/lib/fetchfile.cpp View File

@ -38,4 +38,12 @@ bool Fetchfile::validate() {
bool Fetchfile::store( string basedir ) {
return false;
}
void Fetchfile::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}
void Fetchfile::reset_logstream() {
this->log.str(std::string());
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

+ 7
- 0
src/lib/manifest.cpp View File

@ -93,6 +93,13 @@ bool Manifest::store( string basedir ) {
return false;
}
void Manifest::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}
void Manifest::reset_logstream() {
this->log.str(std::string());
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

+ 10
- 0
src/lib/othertags.cpp View File

@ -6,3 +6,13 @@ Othertags::Othertags( string basedir ) {
bool Othertags::store( string basedir ) {
return false;
}
void Othertags::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}
void Othertags::reset_logstream() {
this->log.str(std::string());
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

+ 9
- 1
src/lib/payload.cpp View File

@ -80,4 +80,12 @@ bool Payload::store( string basedir ) {
return false;
}
// vim: set tabstop=4
void Payload::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}
void Payload::reset_logstream() {
this->log.str(std::string());
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

Loading…
Cancel
Save