46 #include "module-charm/mbcharm.h"
48 #endif // STATIC_MODULES
50 typedef std::map<std::string, UserDefinedElemRead *, ltstrcase>
UDEMapType;
54 bool IsWord(
const std::string& s)
const {
66 const char *s = HP.
IsWord(::UDEWordSet);
68 silent_cerr(
"ParseUserDefinedElem(" << uLabel <<
"): "
69 "unknown user-defined element type "
74 UDEMapType::iterator i =
::UDEMap.find(std::string(s));
76 silent_cerr(
"ParseUserDefinedElem(" << uLabel <<
"): "
77 "unknown user-defined element type \"" << s <<
"\" "
82 return i->second->Read(uLabel, pDO, pDM, HP);
88 const DofOwner* pDO,
unsigned int uLabel)
90 UDEMapType::iterator i =
UDEMap.find(
"loadable");
93 return i->second->Read(uLabel, pDO, pDM, HP);
99 pedantic_cout(
"registering user-defined element \"" << s <<
"\""
101 return UDEMap.insert(UDEMapType::value_type(s, rude)).second;
117 #ifdef STATIC_MODULES
130 #endif // STATIC_MODULES
137 silent_cerr(
"DestroyUDE() called once too many" << std::endl);
145 for (UDEMapType::iterator i =
UDEMap.begin(); i !=
UDEMap.end(); ++i) {
157 needsAirProperties(
false)
#define MBDYN_EXCEPT_ARGS
#define DEBUGCOUTFNAME(fname)
bool inline_friction_set(void)
virtual const char * IsWord(const HighParser::WordSet &ws)
std::map< std::string, UserDefinedElemRead *, ltstrcase > UDEMapType
bool IsWord(const std::string &s) const
virtual ~UserDefinedElem(void)
bool asynchronous_machine_set(void)
Elem * ReadLoadable(DataManager *pDM, MBDynParser &HP, const DofOwner *pDO, unsigned int uLabel)
bool NeedsAirProperties(void) const
#define ASSERT(expression)
static UDEWordSetType UDEWordSet
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
UserDefinedElem(unsigned uLabel, const DofOwner *pDO)
bool mbdyn_cyclocopter_set(void)
virtual AerodynamicElem::Type GetAerodynamicElemType(void) const
virtual HighParser::ErrOut GetLineData(void) const
UserDefinedElem * ParseUserDefinedElem(unsigned uLabel, DofOwner *pDO, DataManager *const pDM, MBDynParser &HP)
virtual Elem::Type GetElemType(void) const