本文整理汇总了C++中XMLOutputStream类的典型用法代码示例。如果您正苦于以下问题:C++ XMLOutputStream类的具体用法?C++ XMLOutputStream怎么用?C++ XMLOutputStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了XMLOutputStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getPrefix
/*
* Write values of XMLAttributes to the output stream.
*/
void
GeneProductRef::writeAttributes (XMLOutputStream& stream) const
{
FbcAssociation::writeAttributes(stream);
if (isSetId() == true)
stream.writeAttribute("id", getPrefix(), mId);
if (isSetGeneProduct() == true)
stream.writeAttribute("geneProduct", getPrefix(), mGeneProduct);
if (isSetName() == true)
stream.writeAttribute("name", getPrefix(), mName);
}
示例2: getPrefix
/*
* Write values of XMLAttributes to the output stream.
*/
void
CoordinateComponent::writeAttributes (XMLOutputStream& stream) const
{
SBase::writeAttributes(stream);
if (isSetId() == true)
stream.writeAttribute("id", getPrefix(), mId);
if (isSetType() == true)
stream.writeAttribute("type", getPrefix(), CoordinateKind_toString(mType));
if (isSetUnit() == true)
stream.writeAttribute("unit", getPrefix(), mUnit);
}
示例3: getPrefix
/*
* Write values of XMLAttributes to the output stream.
*/
void
CSGScale::writeAttributes (XMLOutputStream& stream) const
{
CSGTransformation::writeAttributes(stream);
if (isSetScaleX() == true)
stream.writeAttribute("scaleX", getPrefix(), mScaleX);
if (isSetScaleY() == true)
stream.writeAttribute("scaleY", getPrefix(), mScaleY);
if (isSetScaleZ() == true)
stream.writeAttribute("scaleZ", getPrefix(), mScaleZ);
}
示例4: getPrefix
/*
* Write values of XMLAttributes to the output stream.
*/
void
AdjacentDomains::writeAttributes (XMLOutputStream& stream) const
{
SBase::writeAttributes(stream);
if (isSetId() == true)
stream.writeAttribute("id", getPrefix(), mId);
if (isSetDomain1() == true)
stream.writeAttribute("domain1", getPrefix(), mDomain1);
if (isSetDomain2() == true)
stream.writeAttribute("domain2", getPrefix(), mDomain2);
}
示例5: getPrefix
/*
* Write values of XMLAttributes to the output stream.
*/
void
CompartmentMapping::writeAttributes (XMLOutputStream& stream) const
{
SBase::writeAttributes(stream);
if (isSetId() == true)
stream.writeAttribute("id", getPrefix(), mId);
if (isSetDomainType() == true)
stream.writeAttribute("domainType", getPrefix(), mDomainType);
if (isSetUnitSize() == true)
stream.writeAttribute("unitSize", getPrefix(), mUnitSize);
}
示例6: getName
/*
* Writes this XMLAttributes set to stream.
*/
void
XMLAttributes::write (XMLOutputStream& stream) const
{
for (int n = 0; n < getLength(); ++n)
{
if ( getPrefix(n).empty() )
{
stream.writeAttribute( getName(n), getValue(n) );
}
else
{
stream.writeAttribute( mNames[(size_t)n], getValue(n) );
}
}
}
示例7: getId
void
ASTBase::writeAttributes (XMLOutputStream& stream) const
{
if (isSetId())
stream.writeAttribute("id", getId());
if (isSetClass())
stream.writeAttribute("class", getClass());
if (isSetStyle())
stream.writeAttribute("style", getStyle());
for (unsigned int i = 0; i < getNumPlugins(); i++)
{
getPlugin(i)->writeAttributes(stream, getExtendedType());
}
}
示例8: getPrefix
/*
* Write values of XMLAttributes to the output stream.
*/
void
OutwardBindingSite::writeAttributes (XMLOutputStream& stream) const
{
SBase::writeAttributes(stream);
if (isSetBindingStatus() == true)
stream.writeAttribute("bindingStatus", getPrefix(),
BindingStatus_toString(mBindingStatus));
if (isSetComponent() == true)
stream.writeAttribute("component", getPrefix(), mComponent);
SBase::writeExtensionAttributes(stream);
}
示例9: getPrefix
/*
* Write values of XMLAttributes to the output stream.
*/
void
InteriorPoint::writeAttributes (XMLOutputStream& stream) const
{
SBase::writeAttributes(stream);
if (isSetCoord1() == true)
stream.writeAttribute("coord1", getPrefix(), mCoord1);
if (isSetCoord2() == true)
stream.writeAttribute("coord2", getPrefix(), mCoord2);
if (isSetCoord3() == true)
stream.writeAttribute("coord3", getPrefix(), mCoord3);
}
示例10: writeENotation
void
ASTCnExponentialNode::write(XMLOutputStream& stream) const
{
stream.startElement("cn");
stream.setAutoIndent(false);
ASTCnBase::write(stream);
writeENotation ( getMantissa(), getExponent(), stream);
stream.endElement("cn");
stream.setAutoIndent(true);
}
示例11: getCharacters
/*
* Writes this XMLToken to stream.
*/
void
XMLToken::write (XMLOutputStream& stream) const
{
if ( isEOF () ) return;
if ( isText() )
{
stream << getCharacters();
return;
}
if ( isStart() ) stream.startElement( mTriple );
if ( isStart() ) stream << mNamespaces << mAttributes;
if ( isEnd() ) stream.endElement( mTriple );
}
示例12: triple
/*
* Writes the XML namespace declarations to stream.
*/
void
XMLNamespaces::write (XMLOutputStream& stream) const
{
for (int n = 0; n < getLength(); ++n)
{
if ( getPrefix(n).empty() )
{
stream.writeAttribute( "xmlns", getURI(n) );
}
else
{
const XMLTriple triple(getPrefix(n), "", "xmlns");
stream.writeAttribute( triple, getURI(n) );
}
}
}
示例13: getNameFromType
void
ASTBase::writeStartElement (XMLOutputStream& stream) const
{
std::string name = getNameFromType(getExtendedType());
stream.startElement(name);
writeAttributes(stream);
}
示例14: ASTQualifierNode
void
ASTLambdaFunctionNode::write(XMLOutputStream& stream) const
{
ASTBase::writeStartElement(stream);
/* HACK TO REPLICATE OLD AST */
/* all but the last child will be wrapped as bvars
* even if they are technically not
*/
unsigned int numChildren = ASTFunctionBase::getNumChildren();
for (unsigned int i = 0; i < numChildren; i++)
{
if (i < numChildren-1 && ASTFunctionBase::getChild(i)->getType() != AST_QUALIFIER_BVAR)
{
ASTQualifierNode * bvar = new ASTQualifierNode(AST_QUALIFIER_BVAR);
bvar->addChild(ASTFunctionBase::getChild(i)->deepCopy());
bvar->write(stream);
delete bvar;
}
else
{
ASTFunctionBase::getChild(i)->write(stream);
}
}
stream.endElement("lambda");
}
示例15: getPrefix
void
MultiASTPlugin::writeAttributes(XMLOutputStream& stream, int type) const
{
if (type != AST_NAME)
{
return;
}
else
{
if (isSetSpeciesReference())
stream.writeAttribute("speciesReference", getPrefix(), getSpeciesReference());
if (isSetRepresentationType())
stream.writeAttribute("representationType", getPrefix(), getRepresentationType());
}
}