Go to the documentation of this file.
43 int main(
int argc,
char *argv[])
52 dict2.
add(
"value2", 2);
54 paredict.
add(
"asdf",4);
55 paredict.
add(
"subdcit",dict2);
58 Info<<
"paredict" << paredict <<
endl;
64 <<
"FOAM_CASE=" <<
getEnv(
"FOAM_CASE") <<
nl
65 <<
"FOAM_CASENAME=" <<
getEnv(
"FOAM_CASENAME") <<
nl
72 Info<<
"dict1: " << dict1 <<
nl
73 <<
"toc: " << dict1.
toc() <<
nl
74 <<
"keys: " << dict1.
keys() <<
nl
75 <<
"patterns: " << dict1.
keys(
true) <<
endl;
79 Info<<
"dict1.toc(): " << dict1.
name() <<
" " << dict1.
toc() <<
nl
80 <<
"dict2.toc(): " << dict2.
name() <<
" " << dict2.
toc()
85 Info<<
"dict1.toc(): " << dict1.
name() <<
" " << dict1.
toc()
91 Info<<
"dictionary construct from pointer" <<
nl
92 <<
"ok dict 3 name = " << dict3.
name() <<
" " << dict3.
toc() <<
nl
93 <<
"no dict 3 name = " << dict4.
name() <<
" " << dict4.
toc() <<
endl;
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
const fileName & name() const
Return the dictionary name.
label size() const
Return the number of arguments.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< keyType > keys(bool patterns=false) const
Return the list of available keys or patterns.
string getEnv(const word &)
Return environment variable of given name.
bool merge(const dictionary &)
Merge entries from the given dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
int main(int argc, char *argv[])
wordList toc() const
Return the table of contents.
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)
Xfer< dictionary > xfer()
Transfer contents to the Xfer container.
const dictionary * subDictPtr(const word &) const
Find and return a sub-dictionary pointer if present.
bool add(entry *, bool mergeEntry=false)
Add a new entry.