ENH: ensightFile: make interface consistent with Ostream::writeKeyword

Test with #122
This commit is contained in:
mattijs 2016-06-13 14:51:10 +01:00
parent 4aafaf9bb8
commit ef9a14b288
4 changed files with 4 additions and 4 deletions

View File

@ -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_)
{

View File

@ -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();

View File

@ -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();

View File

@ -88,7 +88,7 @@ public:
// Output
//- Write keyword with trailing newline
virtual Ostream& writeKeyword(const string& key);
virtual Ostream& writeKeyword(const keyType& key);
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //