20 #ifndef _MBSIM_SYMBOLIC_FUNCTION_H_
21 #define _MBSIM_SYMBOLIC_FUNCTION_H_
23 #include <mbsim/functions/function.h>
24 #include <fmatvec/symbolic_function.h>
30 template<
typename Ret,
typename Arg>
44 void initializeUsingXML(xercesc::DOMElement *element)
override {
47 std::stringstream func(MBXMLUtils::E(element)->getText<std::string>());
49 func.read(buf, 2); buf[2]=0;
50 if(buf!=std::string(
"f("))
52 MBXMLUtils::E(element)->getText<std::string>(), element);
55 this->setIndependentVariable(argS);
56 func.read(buf, 2); buf[2]=0;
57 if(buf!=std::string(
")="))
59 MBXMLUtils::E(element)->getText<std::string>(), element);
62 this->setDependentFunction(retS);
82 template<
typename Ret,
typename Arg1,
typename Arg2>
97 void initializeUsingXML(xercesc::DOMElement *element)
override {
100 std::stringstream func(MBXMLUtils::E(element)->getText<std::string>());
102 func.read(buf, 2); buf[2]=0;
103 if(buf!=std::string(
"f("))
105 MBXMLUtils::E(element)->getText<std::string>(), element);
108 this->setIndependentVariable1(arg1S);
112 MBXMLUtils::E(element)->getText<std::string>(), element);
115 this->setIndependentVariable2(arg2S);
116 func.read(buf, 2); buf[2]=0;
117 if(buf!=std::string(
")="))
119 MBXMLUtils::E(element)->getText<std::string>(), element);
122 this->setDependentFunction(retS);
void init(Element::InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: symbolic_function.h:36
Definition: symbolic_function.h:28
InitStage
The stages of the initialization.
Definition: element.h:62
Definition: contact_kinematics.h:32
void init(Element::InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: symbolic_function.h:89