55 const word bodyType(
dict.lookup(
"type"));
57 dictionaryConstructorTable::iterator cstrIter =
58 dictionaryConstructorTablePtr_->find(bodyType);
60 if (cstrIter == dictionaryConstructorTablePtr_->end())
63 <<
"Unknown joint type "
64 << bodyType <<
nl <<
nl
65 <<
"Valid joint types are : " <<
endl
66 << dictionaryConstructorTablePtr_->sortedToc()
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Abstract base-class for all rigid-body joints.
static autoPtr< joint > New(joint *jointPtr)
Simple selector to return an autoPtr<joint> of the given joint*.
virtual void write(Ostream &) const
Write.
virtual ~joint()
Destructor.
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineRunTimeSelectionTable(rigidBody, dictionary)
defineTypeNameAndDebug(cuboid, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.