foamDictionary: Added support for manipulating lists of dictionaries

- provides support for manipulating polyMesh/boundary

  - changed behaviour of disableFunctionEntries option to preserve
    #include

  - dictionary: added reading of lists of dictionaries.
    + each list element may be accessed using the 'entryDDD' keyword
      according to their list index.

Patch contributed by Mattijs Janssens
This commit is contained in:
Henry Weller
2016-11-25 20:33:03 +00:00
parent 81de1dc9ac
commit 1d1f71f7cd
9 changed files with 498 additions and 32 deletions

View File

@ -48,13 +48,13 @@ SourceFiles
#include "word.H"
#include "memberFunctionSelectionTables.H"
#include "primitiveEntry.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
class primitiveEntry;
class dictionary;
/*---------------------------------------------------------------------------*\
@ -62,9 +62,14 @@ class dictionary;
\*---------------------------------------------------------------------------*/
class functionEntry
:
public primitiveEntry
{
// Private Member Functions
//- Read line as string token
static token readLine(const word& key, Istream& is);
//- Disallow default bitwise copy construct
functionEntry(const functionEntry&);
@ -74,6 +79,12 @@ class functionEntry
public:
// Constructors
//- Construct from keyword, parent dictionary and Istream
functionEntry(const word&, const dictionary&, Istream&);
// Member Function Selectors
declareMemberFunctionSelectionTable
@ -119,6 +130,9 @@ public:
primitiveEntry&,
Istream&
);
//- Write
virtual void write(Ostream&) const;
};