mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BACKPORT: accept argList::get() methods as per 1912
This commit is contained in:
@ -427,6 +427,21 @@ public:
|
||||
inline bool readListIfPresent(const word& optName, List<T>& list) const;
|
||||
|
||||
|
||||
//- Alternative name for option opt(const word& optName)
|
||||
template<class T=string>
|
||||
T get(const word& optName) const
|
||||
{
|
||||
return this->opt<T>(optName);
|
||||
}
|
||||
|
||||
//- Alternative name for option opt(const word& optName, ...)
|
||||
template<class T>
|
||||
T get(const word& optName, const T& deflt) const
|
||||
{
|
||||
return this->opt<T>(optName, deflt);
|
||||
}
|
||||
|
||||
|
||||
// Edit
|
||||
|
||||
//- Append a (mandatory) argument to validArgs
|
||||
|
||||
Reference in New Issue
Block a user