diff --git a/src/OpenFOAM/global/argList/argList.H b/src/OpenFOAM/global/argList/argList.H index d8ac46bc29..f2fb4968fb 100644 --- a/src/OpenFOAM/global/argList/argList.H +++ b/src/OpenFOAM/global/argList/argList.H @@ -102,7 +102,7 @@ SourceFiles #include "fileName.H" #include "parRun.H" #include "OSspecific.H" -#include "StringStream.H" +#include "ITstream.H" #include // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -317,7 +317,7 @@ public: label count(std::initializer_list optionNames) const; //- Return an input stream from the named option - inline IStringStream lookup(const word& optName) const; + inline ITstream lookup(const word& optName) const; //- Read a value from the named option // The default template parameter is string (ie, no conversion). @@ -369,7 +369,7 @@ public: //- Return an input stream from the named option // \deprecated in favour of lookup() - JAN-2018 - inline IStringStream optionLookup(const word& optName) const; + inline ITstream optionLookup(const word& optName) const; //- Read a value from the named option // \deprecated in favour of opt() - JAN-2018 diff --git a/src/OpenFOAM/global/argList/argListI.H b/src/OpenFOAM/global/argList/argListI.H index a286899847..f3ae13d26f 100644 --- a/src/OpenFOAM/global/argList/argListI.H +++ b/src/OpenFOAM/global/argList/argListI.H @@ -105,9 +105,9 @@ inline bool Foam::argList::found(const word& optName) const } -inline Foam::IStringStream Foam::argList::lookup(const word& optName) const +inline Foam::ITstream Foam::argList::lookup(const word& optName) const { - return IStringStream(options_[optName]); + return ITstream(optName, options_[optName]); } @@ -329,8 +329,7 @@ inline bool Foam::argList::optionFound(const word& optName) const } -inline Foam::IStringStream -Foam::argList::optionLookup(const word& optName) const +inline Foam::ITstream Foam::argList::optionLookup(const word& optName) const { return lookup(optName); }