OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

argList Class Reference

Collaboration diagram for argList:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 60 of file argList.H.


Public Member Functions

 argList (int &argc, char **&argv, bool checkArgs=true, bool checkOpts=true)
 Construct from argc and argv.
virtual ~argList ()
const stringList & args () const
 Return arguments.
stringList::subList params () const
 Return parameters - ie, arguments without args[0] (executable).
const HashTable< string > & options () const
 Return options.
const word & executable () const
 Name of executable.
const fileName & rootPath () const
 Return root path.
const fileName & globalCaseName () const
 Return case name.
const fileName & caseName () const
 Return case name.
fileName path () const
 Return path.
bool parRun () const
 Is this a parallel run.
void printUsage () const
 Print usage.
bool check (bool checkArgs=true, bool checkOpts=true) const
 Check argument list.
bool checkRootCase () const
 Check root path and case path.

Static Public Member Functions

static void noParallel ()
 Remove the parallel options.

Static Public Attributes

static SLList< string > validArgs
static HashTable< string > validOptions
static HashTable< string > validParOptions

Classes

class  initValidTables

Constructor & Destructor Documentation

argList ( int &  argc,
char **&  argv,
bool  checkArgs = true,
bool  checkOpts = true 
)

Construct from argc and argv.

checking the arguments and options as requested

virtual ~argList (  )  [virtual]


Member Function Documentation

const stringList& args (  )  const [inline]

Return arguments.

Definition at line 128 of file argList.H.

References UList::size().

Here is the call graph for this function:

stringList::subList params (  )  const [inline]

Return parameters - ie, arguments without args[0] (executable).

Definition at line 134 of file argList.H.

const HashTable<string>& options (  )  const [inline]

Return options.

Definition at line 140 of file argList.H.

const word& executable (  )  const [inline]

Name of executable.

Definition at line 146 of file argList.H.

const fileName& rootPath (  )  const [inline]

Return root path.

Definition at line 152 of file argList.H.

const fileName& globalCaseName (  )  const [inline]

Return case name.

Definition at line 158 of file argList.H.

const fileName& caseName (  )  const [inline]

Return case name.

or parallel processor case name for parallel run

Definition at line 167 of file argList.H.

fileName path (  )  const [inline]

Return path.

Definition at line 173 of file argList.H.

bool parRun (  )  const [inline]

Is this a parallel run.

Definition at line 179 of file argList.H.

static void noParallel (  )  [static]

Remove the parallel options.

void printUsage (  )  const

Print usage.

bool check ( bool  checkArgs = true,
bool  checkOpts = true 
) const

Check argument list.

bool checkRootCase (  )  const

Check root path and case path.


Member Data Documentation

SLList<string> validArgs [static]

Definition at line 91 of file argList.H.

Definition at line 92 of file argList.H.

Definition at line 93 of file argList.H.


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd