From 90be0ef2224699ad168d21c4763e98eb06b004db Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 16 Oct 2012 11:51:01 +0100 Subject: [PATCH] ENH: Added access function to 'names' --- .../functionObjects/functionObjectFile/functionObjectFile.C | 6 ++++++ .../functionObjects/functionObjectFile/functionObjectFile.H | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.C b/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.C index 2aba4d2b48..19fb67d4e3 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.C +++ b/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.C @@ -208,6 +208,12 @@ Foam::functionObjectFile::~functionObjectFile() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +const Foam::wordHashSet& Foam::functionObjectFile::names() const +{ + return names_; +} + + Foam::OFstream& Foam::functionObjectFile::file() { if (!Pstream::master()) diff --git a/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H b/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H index 544f949cb4..8710b92b7a 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H +++ b/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H @@ -138,6 +138,9 @@ public: // Member Functions + //- Return const access to the names + const wordHashSet& names() const; + //- Return access to the file (if only 1) OFstream& file();