Instead of "Z_Records_multipleNSD"
os << *(rs.u.nonSurrogateDiagnostic);
break;
case Z_Records_multipleNSD:
- os << "Z_Records_multipleNSD";
- //os << *(rs.u.multipleNonSurDiagnostics);
+ os << *(rs.u.multipleNonSurDiagnostics);
break;
default:
os << "Z_Records" ;
return os;
}
+std::ostream& std::operator<<(std::ostream& os, Z_DiagRecs& dr)
+{
+ if (dr.num_diagRecs >= 1)
+ {
+ os << *dr.diagRecs[0];
+ }
+ else
+ {
+ os << "multipleNSD";
+ }
+ return os;
+}
+
+
std::ostream& std::operator<<(std::ostream& os, Z_DiagRec& dr)
{
switch (dr.which)
std::ostream& operator<<(std::ostream& os, Z_HTTP_Response& httpres);
std::ostream& operator<<(std::ostream& os, Z_Records & rs);
std::ostream& operator<<(std::ostream& os, Z_DiagRec& dr);
+ std::ostream& operator<<(std::ostream& os, Z_DiagRecs& dr);
std::ostream& operator<<(std::ostream& os, Z_DefaultDiagFormat& ddf);
}