mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: for Istream/Ostream check() use FUNCTION_NAME in messages
This commit is contained in:
@ -492,7 +492,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const AABBTree<Type>& tree)
|
||||
<< tree.addressing_;
|
||||
}
|
||||
|
||||
os.check("Ostream& operator<<(Ostream&, const AABBTree<Type>&)");
|
||||
os.check(FUNCTION_NAME);
|
||||
return os;
|
||||
}
|
||||
|
||||
@ -519,7 +519,7 @@ Foam::Istream& Foam::operator>>(Istream& is, AABBTree<Type>& tree)
|
||||
>> tree.addressing_;
|
||||
}
|
||||
|
||||
is.check("Istream& operator>>(Istream&, AABBTree<Type>&)");
|
||||
is.check(FUNCTION_NAME);
|
||||
return is;
|
||||
}
|
||||
|
||||
|
||||
@ -378,7 +378,7 @@ bool Foam::operator!=(const coordinateSystem& a, const coordinateSystem& b)
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const coordinateSystem& cs)
|
||||
{
|
||||
cs.write(os);
|
||||
os.check("Ostream& operator<<(Ostream&, const coordinateSystem&");
|
||||
os.check(FUNCTION_NAME);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
@ -144,13 +144,7 @@ Foam::Ostream& Foam::fileFormats::edgeMeshFormat::write
|
||||
|
||||
IOobject::writeDivider(os);
|
||||
|
||||
// Check state of Ostream
|
||||
os.check
|
||||
(
|
||||
"edgeMeshFormat::write"
|
||||
"(Ostream&, const pointField&, const edgeList&)"
|
||||
);
|
||||
|
||||
os.check(FUNCTION_NAME);
|
||||
return os;
|
||||
}
|
||||
|
||||
@ -208,8 +202,7 @@ void Foam::fileFormats::edgeMeshFormat::write
|
||||
|
||||
write(os, mesh.points(), mesh.edges());
|
||||
|
||||
// Check state of Ostream
|
||||
os.check("edgeMeshFormat::write(Ostream&)");
|
||||
os.check(FUNCTION_NAME);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -128,9 +128,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const edgeMesh& em)
|
||||
{
|
||||
fileFormats::edgeMeshFormat::write(os, em.points_, em.edges_);
|
||||
|
||||
// Check state of Ostream
|
||||
os.check("Ostream& operator<<(Ostream&, const edgeMesh&)");
|
||||
|
||||
os.check(FUNCTION_NAME);
|
||||
return os;
|
||||
}
|
||||
|
||||
@ -141,9 +139,7 @@ Foam::Istream& Foam::operator>>(Istream& is, edgeMesh& em)
|
||||
|
||||
em.pointEdgesPtr_.clear();
|
||||
|
||||
// Check state of Istream
|
||||
is.check("Istream& operator>>(Istream&, edgeMesh&)");
|
||||
|
||||
is.check(FUNCTION_NAME);
|
||||
return is;
|
||||
}
|
||||
|
||||
|
||||
@ -2446,9 +2446,7 @@ Foam::Istream& Foam::operator>>
|
||||
|
||||
vt = static_cast<Foam::extendedEdgeMesh::sideVolumeType>(type);
|
||||
|
||||
// Check state of Istream
|
||||
is.check("operator>>(Istream&, sideVolumeType&)");
|
||||
|
||||
is.check(FUNCTION_NAME);
|
||||
return is;
|
||||
}
|
||||
|
||||
@ -2497,9 +2495,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const extendedEdgeMesh& em)
|
||||
<< em.regionEdges_
|
||||
<< endl;
|
||||
|
||||
// Check state of Ostream
|
||||
os.check("Ostream& operator<<(Ostream&, const extendedEdgeMesh&)");
|
||||
|
||||
os.check(FUNCTION_NAME);
|
||||
return os;
|
||||
}
|
||||
|
||||
@ -2523,9 +2519,7 @@ Foam::Istream& Foam::operator>>(Istream& is, extendedEdgeMesh& em)
|
||||
>> em.featurePointEdges_
|
||||
>> em.regionEdges_;
|
||||
|
||||
// Check state of Istream
|
||||
is.check("Istream& operator>>(Istream&, extendedEdgeMesh&)");
|
||||
|
||||
is.check(FUNCTION_NAME);
|
||||
return is;
|
||||
}
|
||||
|
||||
|
||||
@ -250,9 +250,7 @@ bool Foam::extendedFeatureEdgeMesh::writeData(Ostream& os) const
|
||||
//
|
||||
// vt = static_cast<Foam::extendedFeatureEdgeMesh::sideVolumeType>(type);
|
||||
//
|
||||
// // Check state of Istream
|
||||
// is.check("operator>>(Istream&, sideVolumeType&)");
|
||||
//
|
||||
// is.check(FUNCTION_NAME);
|
||||
// return is;
|
||||
//}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user