本文整理汇总了C++中pugi::xml_node::remove_attribute方法的典型用法代码示例。如果您正苦于以下问题:C++ xml_node::remove_attribute方法的具体用法?C++ xml_node::remove_attribute怎么用?C++ xml_node::remove_attribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pugi::xml_node
的用法示例。
在下文中一共展示了xml_node::remove_attribute方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ReadExtsym
bool AttExtsym::ReadExtsym(pugi::xml_node element)
{
bool hasAttribute = false;
if (element.attribute("glyphname")) {
this->SetGlyphname(StrToStr(element.attribute("glyphname").value()));
element.remove_attribute("glyphname");
hasAttribute = true;
}
if (element.attribute("glyphnum")) {
this->SetGlyphnum(StrToWcharT(element.attribute("glyphnum").value()));
element.remove_attribute("glyphnum");
hasAttribute = true;
}
return hasAttribute;
}
示例2: ReadNotationtype
bool AttNotationtype::ReadNotationtype(pugi::xml_node element)
{
bool hasAttribute = false;
if (element.attribute("notationtype")) {
this->SetNotationtype(StrToNotationtype(element.attribute("notationtype").value()));
element.remove_attribute("notationtype");
hasAttribute = true;
}
if (element.attribute("notationsubtype")) {
this->SetNotationsubtype(StrToStr(element.attribute("notationsubtype").value()));
element.remove_attribute("notationsubtype");
hasAttribute = true;
}
return hasAttribute;
}
示例3: ReadTimebase
bool AttTimebase::ReadTimebase( pugi::xml_node element ) {
bool hasAttribute = false;
if (element.attribute("ppq")) {
this->SetPpq(StrToInt(element.attribute("ppq").value()));
element.remove_attribute("ppq");
hasAttribute = true;
}
return hasAttribute;
}
示例4: ReadMidivalue
bool AttMidivalue::ReadMidivalue( pugi::xml_node element ) {
bool hasAttribute = false;
if (element.attribute("val")) {
this->SetVal(StrToStr(element.attribute("val").value()));
element.remove_attribute("val");
hasAttribute = true;
}
return hasAttribute;
}
示例5: ReadMiditempo
bool AttMiditempo::ReadMiditempo( pugi::xml_node element ) {
bool hasAttribute = false;
if (element.attribute("midi.tempo")) {
this->SetMidiTempo(StrToStr(element.attribute("midi.tempo").value()));
element.remove_attribute("midi.tempo");
hasAttribute = true;
}
return hasAttribute;
}
示例6: ReadMidinumber
bool AttMidinumber::ReadMidinumber( pugi::xml_node element ) {
bool hasAttribute = false;
if (element.attribute("num")) {
this->SetNum(StrToInt(element.attribute("num").value()));
element.remove_attribute("num");
hasAttribute = true;
}
return hasAttribute;
}
示例7: ReadFacsimile
bool AttFacsimile::ReadFacsimile( pugi::xml_node element ) {
bool hasAttribute = false;
if (element.attribute("facs")) {
this->SetFacs(StrToStr(element.attribute("facs").value()));
element.remove_attribute("facs");
hasAttribute = true;
}
return hasAttribute;
}
示例8: ReadCrit
bool AttCrit::ReadCrit(pugi::xml_node element)
{
bool hasAttribute = false;
if (element.attribute("cause")) {
this->SetCause(StrToStr(element.attribute("cause").value()));
element.remove_attribute("cause");
hasAttribute = true;
}
return hasAttribute;
}
示例9: ReadSource
bool AttSource::ReadSource(pugi::xml_node element)
{
bool hasAttribute = false;
if (element.attribute("source")) {
this->SetSource(StrToStr(element.attribute("source").value()));
element.remove_attribute("source");
hasAttribute = true;
}
return hasAttribute;
}
示例10: set_attribute
void set_attribute(const char* name,const char* value) {
if (!value) {
m_node.remove_attribute(name);
} else {
if (!m_node.attribute(name))
m_node.append_attribute(name).set_value(value);
else
m_node.attribute(name).set_value(value);
}
}
示例11: ReadAltsym
bool AttAltsym::ReadAltsym(pugi::xml_node element)
{
bool hasAttribute = false;
if (element.attribute("altsym")) {
this->SetAltsym(StrToStr(element.attribute("altsym").value()));
element.remove_attribute("altsym");
hasAttribute = true;
}
return hasAttribute;
}
示例12: ReadChannelized
bool AttChannelized::ReadChannelized( pugi::xml_node element ) {
bool hasAttribute = false;
if (element.attribute("midi.channel")) {
this->SetMidiChannel(StrToStr(element.attribute("midi.channel").value()));
element.remove_attribute("midi.channel");
hasAttribute = true;
}
if (element.attribute("midi.duty")) {
this->SetMidiDuty(StrToStr(element.attribute("midi.duty").value()));
element.remove_attribute("midi.duty");
hasAttribute = true;
}
if (element.attribute("midi.port")) {
this->SetMidiPort(StrToStr(element.attribute("midi.port").value()));
element.remove_attribute("midi.port");
hasAttribute = true;
}
if (element.attribute("midi.track")) {
this->SetMidiTrack(StrToInt(element.attribute("midi.track").value()));
element.remove_attribute("midi.track");
hasAttribute = true;
}
return hasAttribute;
}
示例13: ReadMidiinstrument
bool AttMidiinstrument::ReadMidiinstrument( pugi::xml_node element ) {
bool hasAttribute = false;
if (element.attribute("midi.instrnum")) {
this->SetMidiInstrnum(StrToStr(element.attribute("midi.instrnum").value()));
element.remove_attribute("midi.instrnum");
hasAttribute = true;
}
if (element.attribute("midi.instrname")) {
this->SetMidiInstrname(StrToStr(element.attribute("midi.instrname").value()));
element.remove_attribute("midi.instrname");
hasAttribute = true;
}
if (element.attribute("midi.pan")) {
this->SetMidiPan(StrToStr(element.attribute("midi.pan").value()));
element.remove_attribute("midi.pan");
hasAttribute = true;
}
if (element.attribute("midi.volume")) {
this->SetMidiVolume(StrToStr(element.attribute("midi.volume").value()));
element.remove_attribute("midi.volume");
hasAttribute = true;
}
return hasAttribute;
}
示例14: remove_attribute
void remove_attribute(const char* name) {
m_node.remove_attribute(name);
}