mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
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:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user