ENH: ensightFile: make interface consistent with Ostream::writeKeyword
Test with #122
This commit is contained in:
parent
4aafaf9bb8
commit
ef9a14b288
@ -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_)
|
||||
{
|
||||
|
@ -147,7 +147,7 @@ public:
|
||||
virtual Ostream& write(const char* buf, std::streamsize count);
|
||||
|
||||
//- 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)
|
||||
Ostream& writeBinaryHeader();
|
||||
|
@ -72,7 +72,7 @@ Foam::ensightGeoFile::~ensightGeoFile()
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const string& key)
|
||||
Foam::Ostream& Foam::ensightGeoFile::writeKeyword(const keyType& key)
|
||||
{
|
||||
write(key); newline();
|
||||
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
// Output
|
||||
|
||||
//- Write keyword with trailing newline
|
||||
virtual Ostream& writeKeyword(const string& key);
|
||||
virtual Ostream& writeKeyword(const keyType& key);
|
||||
};
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
Loading…
Reference in New Issue
Block a user