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()
Abstract base-class for all rigid-body joints.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void write(Ostream &) const
Write.
virtual ~joint()
Destructor.
A class for handling words, derived from string.
defineTypeNameAndDebug(cuboid, 0)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(rigidBody, dictionary)
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.
static autoPtr< joint > New(joint *jointPtr)
Simple selector to return an autoPtr<joint> of the given joint*.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.