functionEntries: Simplified implementation and reduced code duplication

This commit is contained in:
Henry Weller
2019-08-20 01:39:18 +01:00
parent e7f8987b28
commit 4d8981bef7
10 changed files with 146 additions and 138 deletions

View File

@ -70,6 +70,23 @@ class functionEntry
//- Read line as string token
static string readLine(const word& key, Istream& is);
protected:
//- Insert the given string in a sub-dict context
static bool insert
(
dictionary& parentDict,
const string&
);
//- Insert the given string in a primitiveEntry context
static bool insert
(
const dictionary& parentDict,
primitiveEntry& thisEntry,
const string&
);
public: