X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=filedata.cpp;h=2669b75253f354bbfb2b9440b0db0f70134c67b4;hb=cbfcd06cb32cc5c35bfb8ddb499cb952024068a4;hp=2a9840a7756717aec032566d93f1fc92f16b73b4;hpb=7ddfd60aef5e67058e1e6cb70debd3da01317825;p=backups%2F.git diff --git a/filedata.cpp b/filedata.cpp index 2a9840a..2669b75 100644 --- a/filedata.cpp +++ b/filedata.cpp @@ -43,6 +43,10 @@ vector split( const string &line, char c, int limit = -1 ) { return out; } +ostream &operator<<( const FileData *d, ostream &o ) { + return operator<<( *d, o ); +} + ostream &operator<<( const FileData &d, ostream &o ) { o << d.getFileType() << ' '; o << d.getPermissions() << ' '; @@ -56,6 +60,10 @@ ostream &operator<<( const FileData &d, ostream &o ) { return o; } +istream &operator>>( istream &i, FileData *d ) { + return operator>>( i, *d ); +} + istream &operator>>( istream &i, FileData &d ) { string file_string;