38 :
MathParser::PlugIn(mp), pSE(0), iIndex(0), pDM(pDM)
53 if (argc < 1 || argv[0] == 0) {
54 silent_cerr(
"PrivPlugIn::Read(): "
55 "illegal number of parameters " << argc
61 if (argc < 2 || argv[1] == 0) {
62 silent_cerr(
"PrivPlugIn::Read(" << argv[0] <<
"): "
63 <<
"illegal number of parameters " << argc
72 silent_cerr(*
this <<
"allows no private data" << std::endl);
84 silent_cerr(
"PrivPlugIn::Read(" << argv[0] <<
"): "
85 <<
"illegal number of parameters " << argc
116 std::istringstream in(std::string(s) +
";");
126 bool bRefresh(
false);
127 if (strncasecmp(s,
"string=",
STRLENOF(
"string=")) == 0) {
132 }
else if (strncasecmp(s,
"name=",
STRLENOF(
"name=")) == 0) {
137 silent_cerr(
"PrivPlugIn: "
138 "\"name=" <<
sIndexName <<
"\" is deprecated; "
139 "use \"string=" <<
sIndexName <<
"\" instead" << std::endl);
141 }
else if (strncasecmp(s,
"index=",
STRLENOF(
"index=")) == 0) {
146 silent_cerr(
"PrivPlugIn: "
147 "index name without qualifier is deprecated; "
148 "use \"string=" <<
sIndexName <<
"\" instead" << std::endl);
164 silent_cerr(
"illegal index " <<
iIndex <<
" for "
165 << *
this << std::endl);
195 for (i = 0; s[i]; i++) {
197 memmove(&s[i], &s[i + 1], strlen(&s[i]));
206 silent_cerr(
"unknown node type '" << ss <<
"'" << std::endl);
212 silent_cerr(
"NodePrivPlugIn: "
214 "not defined" << std::endl);
256 for (i = 0; s[i]; i++) {
258 memmove(&s[i], &s[i + 1], strlen(&s[i]));
267 silent_cerr(
"unknown element type \"" << ss <<
"\"" << std::endl);
273 silent_cerr(
"ElemPrivPlugIn: "
275 "not defined" << std::endl);
std::ostream & operator<<(std::ostream &out, const PrivPlugIn &p)
virtual void ReadSE(unsigned int uLabel, const char *s)
virtual void ReadSE(unsigned int uLabel, const char *s)=0
MathParser::PlugIn * node_priv_plugin(MathParser &mp, void *arg)
PrivPlugIn(MathParser &mp, DataManager *pDM)
virtual std::ostream & Err(std::ostream &out) const
Elem::Type str2elemtype(const char *const s)
NodePrivPlugIn(MathParser &mp, DataManager *pDM)
const char * psReadNodesNodes[]
#define MBDYN_EXCEPT_ARGS
virtual ~NodePrivPlugIn(void)
virtual unsigned int iGetPrivDataIdx(const char *s) const
void ReadIndex(unsigned int iMaxIndex, const char *s)
#define SAFEDELETEARR(pnt)
int Read(int argc, char *argv[])
Node::Type str2nodetype(const char *const s)
virtual Elem::Type GetElemType(void) const =0
unsigned int ReadLabel(const char *s)
const char * sName(void) const
virtual ~ElemPrivPlugIn(void)
Elem * pFindElem(Elem::Type Typ, unsigned int uElem, unsigned int iDeriv) const
ElemPrivPlugIn(MathParser &mp, DataManager *pDM)
virtual void ReadSE(unsigned int uLabel, const char *s)
TypedValue::Type GetType(void) const
#define ASSERT(expression)
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
virtual doublereal dGetPrivData(unsigned int i) const
virtual unsigned int iGetNumPrivData(void) const
const char * psNodeNames[]
TypedValue GetVal(void) const
MathParser::PlugIn * elem_priv_plugin(MathParser &mp, void *arg)
virtual Node::Type GetNodeType(void) const =0
const char * psElemNames[]
#define SAFESTRDUP(pnt, src)
virtual std::ostream & Err(std::ostream &out) const
const char * psReadElemsElems[]
virtual ~PrivPlugIn(void)
const char * sName(void) const
virtual std::ostream & Err(std::ostream &out) const =0
unsigned int GetLabel(void) const
Node * pFindNode(Node::Type Typ, unsigned int uNode) const