#include "sicccobject.H" Sicccobject::Sicccobject(const Sicccobject& obj) { filename = obj.filename; filetype = obj.filetype; path = obj.path; size = obj.size; upload_date = obj.upload_date; } Sicccobject& Sicccobject::operator = (const Sicccobject& obj) { if (this == &obj) return *this; this->filename = obj.filename; this->filetype = obj.filetype; this->path = obj.path; this->size = obj.size; this->upload_date = obj.upload_date; return *this; } std::ostream& operator << (std::ostream& out, const Sicccobject& obj) { std::time_t time = std::chrono::system_clock::to_time_t(obj.get_uploadtime()); out << "[Filename] " << obj.get_filename() << std::endl << "[Filetype] " << obj.get_filetype() << std::endl << "[Path] " << obj.get_path() << std::endl << "[Size] " << obj.get_size() << std::endl << "[Uploaded] " << std::ctime(&time) << std::endl; return out; }