projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ruby script to list 'interesting' dvds by date. Also changed order of user and...
[backups/.git]
/
filedata.cpp
diff --git
a/filedata.cpp
b/filedata.cpp
index 2a9840a7756717aec032566d93f1fc92f16b73b4..2669b75253f354bbfb2b9440b0db0f70134c67b4 100644
(file)
--- a/
filedata.cpp
+++ b/
filedata.cpp
@@
-43,6
+43,10
@@
vector<string> split( const string &line, char c, int limit = -1 ) {
return out;
}
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() << ' ';
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;
}
return o;
}
+istream &operator>>( istream &i, FileData *d ) {
+ return operator>>( i, *d );
+}
+
istream &operator>>( istream &i, FileData &d ) {
string file_string;
istream &operator>>( istream &i, FileData &d ) {
string file_string;