27 #define SPC(level) std::string(level, ' ')
33 static std::string
fixName(
const std::string & name)
37 if (name.find_first_of(
" ()*+-") == std::string::npos)
40 Fixed =
"\"" + name +
"\"";
47 if (!obj)
return "no object";
61 if (comp)
return "<msub><mi>V</mi><mi>" +
fixName(comp->getObjectName())
80 if (comp)
return "<msub><mi>V</mi><mi>" +
fixName(comp->getObjectName())
static std::string getMMLName(const CCopasiObject *obj)
virtual std::string getObjectDisplayName(bool regular=true, bool richtext=false) const
Header file of class CModelEntity and CModelValue.
const std::string & getObjectName() const
static std::string fixName(const std::string &name)
const std::string & getObjectType() const
static std::string encode(const std::string &str, const EncodingType &type=standard)
CCopasiContainer * getObjectParent() const