33 namespace fileOperations
64 wordConstructorTable::iterator cstrIter =
65 wordConstructorTablePtr_->find(
type);
67 if (cstrIter == wordConstructorTablePtr_->end())
70 <<
"Unknown fileOperationInitialise type "
72 <<
"Valid fileOperationInitialise types are" <<
endl
73 << wordConstructorTablePtr_->sortedToc()
Macros for easy insertion into run-time selection tables.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual ~fileOperationInitialise()
Destructor.
static autoPtr< fileOperationInitialise > New(const word &type, int &argc, char **&argv)
Select type.
fileOperationInitialise(int &argc, char **&argv)
Construct components.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
defineTypeNameAndDebug(collatedFileOperation, 0)
defineRunTimeSelectionTable(fileOperationInitialise, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.