ENH: add dictionary searcher methods
- csearch(), search(), csearchScoped(), searchScoped() methods can be used to find an entry and also retain the enclosing dictionary context. - To avoid ambiguity between a dot (.) as a scoping character and legal part of a keyword, entries can now be accessed directly using slash-scoping semantics similar to file-names: * cfindScopedDictPtr, findScopedDictPtr - To get or create a sub-dictionary entry: * makeScopedDictPtr, which behaves similarly to mkdirp in that it will create any intermediate dictionaries as required.
Showing
- src/OpenFOAM/Make/files 1 addition, 0 deletionssrc/OpenFOAM/Make/files
- src/OpenFOAM/db/dictionary/dictionary.C 118 additions, 463 deletionssrc/OpenFOAM/db/dictionary/dictionary.C
- src/OpenFOAM/db/dictionary/dictionary.H 564 additions, 269 deletionssrc/OpenFOAM/db/dictionary/dictionary.H
- src/OpenFOAM/db/dictionary/dictionaryIO.C 0 additions, 24 deletionssrc/OpenFOAM/db/dictionary/dictionaryIO.C
- src/OpenFOAM/db/dictionary/dictionarySearch.C 719 additions, 0 deletionssrc/OpenFOAM/db/dictionary/dictionarySearch.C
- src/OpenFOAM/db/dictionary/dictionaryTemplates.C 16 additions, 16 deletionssrc/OpenFOAM/db/dictionary/dictionaryTemplates.C
- src/OpenFOAM/db/dictionary/entry/entryIO.C 7 additions, 17 deletionssrc/OpenFOAM/db/dictionary/entry/entryIO.C
Please register or sign in to comment