本文整理汇总了C++中ConversionProperties::setTargetNamespaces方法的典型用法代码示例。如果您正苦于以下问题:C++ ConversionProperties::setTargetNamespaces方法的具体用法?C++ ConversionProperties::setTargetNamespaces怎么用?C++ ConversionProperties::setTargetNamespaces使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConversionProperties
的用法示例。
在下文中一共展示了ConversionProperties::setTargetNamespaces方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SBMLNamespaces
ConversionProperties
SBMLLevel1Version1Converter::getDefaultProperties() const
{
static ConversionProperties prop;
static bool init = false;
if (init)
{
return prop;
}
else
{
SBMLNamespaces * sbmlns = new SBMLNamespaces(1,1); // default namespaces
prop.setTargetNamespaces(sbmlns); // this gets cloned
prop.addOption("convertToL1V1", true,
"convert the document to SBML Level 1 Version 1");
prop.addOption("changePow", false,
"change pow expressions to the (^) hat notation");
prop.addOption("inlineCompartmentSizes", false,
"if true, occurrances of compartment ids in expressions will be replaced with their initial size");
delete sbmlns;
init = true;
return prop;
}
}
示例2: SBMLNamespaces
ConversionProperties
SBMLLevelVersionConverter::getDefaultProperties() const
{
static ConversionProperties prop;
static bool init = false;
if (init)
{
return prop;
}
else
{
SBMLNamespaces * sbmlns = new SBMLNamespaces(); // default namespaces
prop.setTargetNamespaces(sbmlns); // this gets cloned
prop.addOption("strict", true,
"Whether validity should be strictly preserved");
prop.addOption("setLevelAndVersion", true,
"Convert the model to a given Level and Version of SBML");
prop.addOption("addDefaultUnits", true,
"Whether default units should be added when converting to L3");
delete sbmlns;
init = true;
return prop;
}
}
示例3: SBMLNamespaces
ConversionProperties
SBMLLevelVersionConverter::getDefaultProperties() const
{
static ConversionProperties prop;
prop.setTargetNamespaces(new SBMLNamespaces()); // default namespaces
prop.addOption("strict", true,
"Whether validity should be strictly preserved");
prop.addOption("setLevelAndVersion", true,
"Convert the model to a given Level and Version of SBML");
return prop;
}