当前位置: 首页>>代码示例>>C++>>正文


C++ xml_node::remove_attribute方法代码示例

本文整理汇总了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;
}
开发者ID:DDMAL,项目名称:verovio,代码行数:15,代码来源:atts_externalsymbols.cpp

示例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;
}
开发者ID:DDMAL,项目名称:verovio,代码行数:15,代码来源:atts_mei.cpp

示例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;
}
开发者ID:avorio,项目名称:verovio,代码行数:9,代码来源:atts_midi.cpp

示例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;
}
开发者ID:avorio,项目名称:verovio,代码行数:9,代码来源:atts_midi.cpp

示例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;
}
开发者ID:avorio,项目名称:verovio,代码行数:9,代码来源:atts_midi.cpp

示例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;
}
开发者ID:avorio,项目名称:verovio,代码行数:9,代码来源:atts_midi.cpp

示例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;
}
开发者ID:avorio,项目名称:verovio,代码行数:9,代码来源:atts_facsimile.cpp

示例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;
}
开发者ID:rettinghaus,项目名称:verovio,代码行数:10,代码来源:atts_critapp.cpp

示例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;
}
开发者ID:DDMAL,项目名称:verovio,代码行数:10,代码来源:atts_critapp.cpp

示例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);
     }
 }
开发者ID:andryblack,项目名称:sandbox,代码行数:10,代码来源:xml_lua.cpp

示例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;
}
开发者ID:DDMAL,项目名称:verovio,代码行数:10,代码来源:atts_usersymbols.cpp

示例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;
}
开发者ID:avorio,项目名称:verovio,代码行数:24,代码来源:atts_midi.cpp

示例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;
}
开发者ID:avorio,项目名称:verovio,代码行数:24,代码来源:atts_midi.cpp

示例14: remove_attribute

 void remove_attribute(const char* name) {
     m_node.remove_attribute(name);
 }
开发者ID:andryblack,项目名称:sandbox,代码行数:3,代码来源:xml_lua.cpp


注:本文中的pugi::xml_node::remove_attribute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。