Added IOobject::readOption to IOOutputFilter

- allows post-processing functions with an optional dictionary
   (eg, the developer can hard-wire some defaults)
This commit is contained in:
Mark Olesen
2008-07-21 16:40:05 +02:00
parent 4d96b876e4
commit 85c164340e
4 changed files with 42 additions and 38 deletions

View File

@ -34,6 +34,7 @@ Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
(
const objectRegistry& obr,
const fileName& dictName,
const IOobject::readOption rOpt,
const bool readFromFiles
)
:
@ -44,7 +45,7 @@ Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
dictName,
obr.time().system(),
obr,
IOobject::MUST_READ,
rOpt,
IOobject::NO_WRITE
)
),

View File

@ -70,11 +70,13 @@ public:
// Constructors
//- Construct for given objectRegistry and dictionary
// allow the possibility to load fields from files
// Allow dictionary to be optional
// Allow the possibility to load fields from files
IOOutputFilter
(
const objectRegistry&,
const fileName& dictName = OutputFilter::typeName() + "Dict",
const IOobject::readOption rOpt = IOobject::MUST_READ,
const bool loadFromFile = false
);