git-svn-id: svn://db.shs.com.ru/pip@505 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-05-29 10:56:07 +00:00
parent 3e086b1388
commit 75ea531673
4 changed files with 22 additions and 7 deletions

View File

@@ -132,11 +132,11 @@ void makeClassStream(PIFile & f, const PICodeParser::Entity * e) {
f << "\nPIByteArray & operator <<(PIByteArray & s, const " << e->name << " & v) {\n";
f << "\ts";
piForeachC (PIString & m, ml)
f << " << " << m << "\n\t";
f << " << v." << m << "\n\t";
f << ";\n}\nPIByteArray & operator >>(PIByteArray & s, " << e->name << " & v) {\n";
f << "\ts";
piForeachC (PIString & m, ml)
f << " >> " << m << "\n\t";
f << " >> v." << m << "\n\t";
f << ";\n}\n";
}