dictionary: Standardised and centralised the argument list parser

to simplify maintenance
This commit is contained in:
Henry Weller
2020-09-19 15:52:09 +01:00
parent ad33cc2cc8
commit 560db98b34
5 changed files with 108 additions and 156 deletions

View File

@ -222,7 +222,7 @@ public:
);
//- Read the specified functionObject configuration dictionary
// parsing the optional arguments included in the string 'funcCall',
// parsing the optional arguments included in the string 'funcArgs',
// inserting 'field' or 'fields' entries as required and merging the
// resulting functionObject dictionary into 'functionsDict'.
// Any fields required to execute the functionObject are added to
@ -242,7 +242,7 @@ public:
// fields (p U);
static bool readFunctionObject
(
const string& funcCall,
const string& funcArgs,
dictionary& functionsDict,
const string& context,
HashSet<word>& requiredFields,