code brush

This commit is contained in:
2022-05-11 10:48:36 +03:00
parent a23eb341e2
commit 8c6b3613b6

View File

@@ -271,10 +271,11 @@ protected:
};
template<typename P> inline PIBinaryStream<P> & operator <<(PIBinaryStream<P> & s, const PIPropertyStorage::Property & v) {s << v.name << v.value << v.comment << v.flags; return s;}
template<typename P> inline PIBinaryStream<P> & operator >>(PIBinaryStream<P> & s, PIPropertyStorage::Property & v) {s >> v.name >> v.value >> v.comment >> v.flags; return s;}
BINARY_STREAM_STORE (PIPropertyStorage::Property) {s << v.name << v.value << v.comment << v.flags; return s;}
BINARY_STREAM_RESTORE(PIPropertyStorage::Property) {s >> v.name >> v.value >> v.comment >> v.flags; return s;}
BINARY_STREAM_STORE (PIPropertyStorage) {s << v.properties(); return s;}
BINARY_STREAM_RESTORE(PIPropertyStorage) {s >> v.properties(); return s;}
template<typename P> inline PIBinaryStream<P> & operator <<(PIBinaryStream<P> & s, const PIPropertyStorage & v) {s << v.properties(); return s;}
template<typename P> inline PIBinaryStream<P> & operator >>(PIBinaryStream<P> & s, PIPropertyStorage & v) {s >> v.properties(); return s;}
#endif // PIPROPERTYSTORAGE_H