Пример #1
0
//_______________________________________________________________________________
void xmlreader::newProcessingInstruction (const char* pi)
{
	Sxmlelement elt = factory::instance().create("pi");
	elt->setValue(pi);
	fStack.top()->push(elt);
}
Пример #2
0
//_______________________________________________________________________________
void xmlreader::newComment (const char* comment)
{
	Sxmlelement elt = factory::instance().create("comment");
	elt->setValue(comment);
	fStack.top()->push(elt);
}
Пример #3
0
Sxmlelement musicxmlfactory::element(int type, float value) const
{
	Sxmlelement elt = factory::instance().create(type);
	if (value) elt->setValue (value);
	return elt;
}
Пример #4
0
//------------------------------------------------------------------------
static Sxmlelement newElementI(int type, int value)
{
	Sxmlelement elt = factory::instance().create(type);
	elt->setValue (value);
	return elt;
}
Пример #5
0
	//------------------------------------------------------------------------
	Sxmlelement newElement(int type, const string& value)
	{
		Sxmlelement elt = factory::instance().create(type);
		elt->setValue (value);
		return elt;
	}