コード例 #1
0
ファイル: f8precomp.cpp プロジェクト: mattyv/fix8
//-----------------------------------------------------------------------------------------
void output_attributes(const XmlElement& xf, ostream& outf)
{
	for (XmlElement::XmlAttrs::const_iterator itr(xf.abegin()); itr != xf.aend(); ++itr)
		outf << ' ' << itr->first << "='" << itr->second << '\'';
	if (xf.GetLine())
		outf << " line=\'" << xf.GetLine() << '\'';
}
コード例 #2
0
ファイル: f8precomp.cpp プロジェクト: Fantasticer/fix8
//-----------------------------------------------------------------------------------------
void output_attributes(const XmlElement& xf, ostream& outf, bool required)
{
	for (XmlElement::XmlAttrs::const_iterator itr(xf.abegin()); itr != xf.aend(); ++itr)
		outf << ' ' << itr->first << "='"
			<< (itr->first == "required" && itr->second == "Y" && !required ? "N" : itr->second) << '\'';
	if (xf.GetLine())
		outf << " line=\'" << xf.GetLine() << '\'';
}
コード例 #3
0
ファイル: f8c.hpp プロジェクト: xyuan/fix8
//-----------------------------------------------------------------------------------------
inline int recover_line(const XmlElement& xf) { return xf.FindAttr("line", xf.GetLine()); }