Files
openfoam/applications/test
Mark Olesen 724b034cc7 argList enhancement: added convenience methods for accessing options
Oriented somewhat on dictionary methods.

Return the argument string associated with the named option:
    Info<< "-foo: " << args.option("foo") << nl;

Return true if the named option is found
    if (args.optionFound("foo")) ...

Return an IStringStream to the named option
    old:      value = readScalar(IStringStream(args.options()["foo"])());
    newer:    value = readScalar(args.optionLookup("foo")());
    also:     List<scalar> lst(args.optionLookup("foo")());

Read a value from the named option
    newest:   value = args.optionRead<scalar>("foo");

Read a value from the named option if present.
    old:  if (args.options().found("foo"))
          {
              value = readScalar(IStringStream(args.options()["foo"])());
          }
    new:  args.optionReadIfPresent("foo", value);

Read a List of values from the named option
    patches = args.optionReadList<word>("patches");

Didn't bother adding optionReadListIfPresent<T>(const word&), since it
probably wouldn't be common anyhow.
2009-05-19 18:19:49 +02:00
..
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2009-04-27 10:08:29 +02:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2009-01-27 21:55:03 +01:00
2009-04-27 10:08:29 +02:00
2009-03-12 19:25:21 +00:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2009-02-27 16:41:51 +01:00
2009-05-18 10:26:11 +02:00
2008-12-31 19:01:56 +01:00
2009-02-06 20:43:09 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2009-01-05 12:30:19 +01:00
2008-12-31 19:01:56 +01:00
2009-03-05 12:06:57 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-08-19 13:49:00 +01:00
2009-04-27 10:08:29 +02:00
2009-03-06 15:18:00 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2008-12-31 19:01:56 +01:00
2009-04-27 10:08:29 +02:00
2009-01-05 12:30:19 +01:00