mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: ensightFile: make interface consistent with Ostream::writeKeyword
Test with #122
This commit is contained in:
@ -278,7 +278,7 @@ Foam::Ostream& Foam::ensightFile::writeUndef()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::Ostream& Foam::ensightFile::writeKeyword(const string& key)
|
Foam::Ostream& Foam::ensightFile::writeKeyword(const keyType& key)
|
||||||
{
|
{
|
||||||
if (allowUndef_)
|
if (allowUndef_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -147,7 +147,7 @@ public:
|
|||||||
virtual Ostream& write(const char* buf, std::streamsize count);
|
virtual Ostream& write(const char* buf, std::streamsize count);
|
||||||
|
|
||||||
//- Write element keyword with trailing newline, optionally with undef
|
//- Write element keyword with trailing newline, optionally with undef
|
||||||
virtual Ostream& writeKeyword(const string& key);
|
virtual Ostream& writeKeyword(const keyType&);
|
||||||
|
|
||||||
//- Write "C Binary" for binary files (eg, geometry/measured)
|
//- Write "C Binary" for binary files (eg, geometry/measured)
|
||||||
Ostream& writeBinaryHeader();
|
Ostream& writeBinaryHeader();
|
||||||
|
|||||||
@ -72,7 +72,7 @@ Foam::ensightGeoFile::~ensightGeoFile()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const string& key)
|
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const keyType& key)
|
||||||
{
|
{
|
||||||
write(key); newline();
|
write(key); newline();
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,7 @@ public:
|
|||||||
// Output
|
// Output
|
||||||
|
|
||||||
//- Write keyword with trailing newline
|
//- Write keyword with trailing newline
|
||||||
virtual Ostream& writeKeyword(const string& key);
|
virtual Ostream& writeKeyword(const keyType& key);
|
||||||
};
|
};
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user