Function1::TableFileReader: Updated write

This commit is contained in:
Henry Weller
2020-11-23 15:55:11 +00:00
parent 92c9b112f0
commit 528a04244f
3 changed files with 11 additions and 3 deletions

View File

@ -243,7 +243,7 @@ void Foam::TableReaders::Csv<Type>::write
const List<Tuple2<scalar, Type>>& table
) const
{
TableFileReader<Type>::write(os);
TableFileReader<Type>::write(os, table);
writeEntry(os, "nHeaderLine", nHeaderLine_);
writeEntry(os, "refColumn", refColumn_);

View File

@ -85,7 +85,11 @@ Foam::TableFileReader<Type>::~TableFileReader()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void Foam::TableFileReader<Type>::write(Ostream& os) const
void Foam::TableFileReader<Type>::write
(
Ostream& os,
const List<Tuple2<scalar, Type>>& table
) const
{
writeEntry(os, "format", this->type());
writeEntry(os, "file", fName_);

View File

@ -84,7 +84,11 @@ public:
// Member Functions
//- Write additional information
virtual void write(Ostream& os) const;
virtual void write
(
Ostream& os,
const List<Tuple2<scalar, Type>>& table
) const;
};