亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tinyxml.h

?? 一個簡單的xml解析代碼
?? H
?? 第 1 頁 / 共 3 頁
字號:
    const char* Attribute( const std::string& name ) const {        return Attribute( name.c_str() );    }    const char* Attribute( const std::string& name, int* i ) const {        return Attribute( name.c_str(), i );    }    /// STL std::string form.    void SetAttribute( const std::string& name, const std::string& value )  {        StringToBuffer n( name );        StringToBuffer v( value );        if( n.buffer && v.buffer )            SetAttribute (n.buffer, v.buffer );    }       ///< STL std::string form.    void SetAttribute( const std::string& name, int value ) {        StringToBuffer n( name );        if( n.buffer )            SetAttribute (n.buffer, value);    }   #endif    /** Sets an attribute of name to a given value. The attribute        will be created if it does not exist, or changed if it does.    */    void SetAttribute( const char * name, int value );    /** Deletes an attribute with the given name.    */    void RemoveAttribute( const char * name );#ifdef TIXML_USE_STL    void RemoveAttribute( const std::string& name ) {        RemoveAttribute (name.c_str ());    }   ///< STL std::string form.#endif    TiXmlAttribute* FirstAttribute() const {        return attributeSet.First();    }        ///< Access the first attribute in this element.    TiXmlAttribute* LastAttribute() const {        return attributeSet.Last();    }     ///< Access the last attribute in this element.    // [internal use] Creates a new Element and returs it.    virtual TiXmlNode* Clone() const;    // [internal use]    virtual void Print( FILE* cfile, int depth ) const;protected:    // Used to be public [internal use]#ifdef TIXML_USE_STL    virtual void StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );#endif    virtual void StreamOut( TIXML_OSTREAM * out ) const;    /*	[internal use]        Attribtue parsing starts: next char past '<'                         returns: next char past '>'    */    virtual const char* Parse( const char* p );    /*	[internal use]        Reads the "value" of the element -- another element, or text.        This should terminate with the current end tag.    */    const char* ReadValue( const char* in );private:    TiXmlAttributeSet attributeSet;};/**	An XML comment.*/class TiXmlComment : public TiXmlNode {public:    /// Constructs an empty comment.    TiXmlComment() : TiXmlNode( TiXmlNode::COMMENT ) {    }    virtual ~TiXmlComment() {    }    // [internal use] Creates a new Element and returs it.    virtual TiXmlNode* Clone() const;    // [internal use]    virtual void Print( FILE* cfile, int depth ) const;protected:    // used to be public#ifdef TIXML_USE_STL    virtual void StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );#endif    virtual void StreamOut( TIXML_OSTREAM * out ) const;    /*	[internal use]        Attribtue parsing starts: at the ! of the !--                         returns: next char past '>'    */    virtual const char* Parse( const char* p );};/** XML text. Contained in an element.*/class TiXmlText : public TiXmlNode {    friend class TiXmlElement;public:    /// Constructor.    TiXmlText (const char * initValue) : TiXmlNode (TiXmlNode::TEXT) {        SetValue( initValue );    }    virtual ~TiXmlText() {    }#ifdef TIXML_USE_STL    /// Constructor.    TiXmlText( const std::string& initValue ) : TiXmlNode (TiXmlNode::TEXT) {        SetValue( initValue );    }#endif    // [internal use]    virtual void Print( FILE* cfile, int depth ) const;protected :    // [internal use] Creates a new Element and returns it.    virtual TiXmlNode* Clone() const;    virtual void StreamOut ( TIXML_OSTREAM * out ) const;    // [internal use]    bool Blank() const; // returns true if all white space and new lines    /*	[internal use]            Attribtue parsing starts: First char of the text                             returns: next char past '>'        */    virtual const char* Parse( const char* p );    // [internal use]#ifdef TIXML_USE_STL    virtual void StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );#endif};/** In correct XML the declaration is the first entry in the file.    @verbatim        <?xml version="1.0" standalone="yes"?>    @endverbatim    TinyXml will happily read or write files without a declaration,    however. There are 3 possible attributes to the declaration:    version, encoding, and standalone.    Note: In this version of the code, the attributes are    handled as special cases, not generic attributes, simply    because there can only be at most 3 and they are always the same.*/class TiXmlDeclaration : public TiXmlNode {public:    /// Construct an empty declaration.    TiXmlDeclaration()   : TiXmlNode( TiXmlNode::DECLARATION ) {    }#ifdef TIXML_USE_STL    /// Constructor.    TiXmlDeclaration(                    const std::string& _version,                    const std::string& _encoding,                    const std::string& _standalone )    : TiXmlNode( TiXmlNode::DECLARATION ) {        version = _version;        encoding = _encoding;        standalone = _standalone;    }#endif    /// Construct.    TiXmlDeclaration( const char * _version,                      const char * _encoding,                      const char * _standalone );    virtual ~TiXmlDeclaration() {    }    /// Version. Will return empty if none was found.    const char * Version() const {        return version.c_str ();    }    /// Encoding. Will return empty if none was found.    const char * Encoding() const {        return encoding.c_str ();    }    /// Is this a standalone document?    const char * Standalone() const {        return standalone.c_str ();    }    // [internal use] Creates a new Element and returs it.    virtual TiXmlNode* Clone() const;    // [internal use]    virtual void Print( FILE* cfile, int depth ) const;protected:    // used to be public#ifdef TIXML_USE_STL    virtual void StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );#endif    virtual void StreamOut ( TIXML_OSTREAM * out) const;    //	[internal use]    //	Attribtue parsing starts: next char past '<'    //					 returns: next char past '>'    virtual const char* Parse( const char* p );private:    TIXML_STRING version;    TIXML_STRING encoding;    TIXML_STRING standalone;};/** Any tag that tinyXml doesn't recognize is save as an    unknown. It is a tag of text, but should not be modified.    It will be written back to the XML, unchanged, when the file    is saved.*/class TiXmlUnknown : public TiXmlNode {public:    TiXmlUnknown() : TiXmlNode( TiXmlNode::UNKNOWN ) {    }    virtual ~TiXmlUnknown() {    }    // [internal use]    virtual TiXmlNode* Clone() const;    // [internal use]    virtual void Print( FILE* cfile, int depth ) const;protected:    // used to be public#ifdef TIXML_USE_STL    virtual void StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );#endif    virtual void StreamOut ( TIXML_OSTREAM * out ) const;    /*	[internal use]        Attribute parsing starts: First char of the text                         returns: next char past '>'    */    virtual const char* Parse( const char* p );};/** Always the top level node. A document binds together all the    XML pieces. It can be saved, loaded, and printed to the screen.    The 'value' of a document node is the xml file name.*/class TiXmlDocument : public TiXmlNode {public:    /// Create an empty document, that has no name.    TiXmlDocument();    /// Create a document with a name. The name of the document is also the filename of the xml.    TiXmlDocument( const char * documentName );#ifdef TIXML_USE_STL    /// Constructor.    TiXmlDocument( const std::string& documentName ) :    TiXmlNode( TiXmlNode::DOCUMENT ) {        value = documentName;        error = false;    }#endif    virtual ~TiXmlDocument() {    }    /** Load a file using the current document value.        Returns true if successful. Will delete any existing        document data before loading.    */    bool LoadFile();    /// Save a file using the current document value. Returns true if successful.    bool SaveFile() const;    /// Load a file using the given filename. Returns true if successful.    bool LoadFile( const char * filename );    /// Save a file using the given filename. Returns true if successful.    bool SaveFile( const char * filename ) const;#ifdef TIXML_USE_STL    bool LoadFile( const std::string& filename )            ///< STL std::string version. {        StringToBuffer f( filename );        return( f.buffer && LoadFile( f.buffer ));    }    bool SaveFile( const std::string& filename ) const      ///< STL std::string version.    {        StringToBuffer f( filename );        return( f.buffer && SaveFile( f.buffer ));    }#endif    /// Parse the given null terminated block of xml data.    virtual const char* Parse( const char* p );    /** Get the root element -- the only top level element -- of the document.        In well formed XML, there should only be one. TinyXml is tolerant of        multiple elements at the document level.    */    TiXmlElement* RootElement() const {        return FirstChildElement();    }    /// If, during parsing, a error occurs, Error will be set to true.    bool Error() const {        return error;    }    /// Contains a textual (english) description of the error if one occurs.    const char * ErrorDesc() const {        return errorDesc.c_str ();    }    /** Generally, you probably want the error string ( ErrorDesc() ). But if you            prefer the ErrorId, this function will fetch it.        */    const int ErrorId() const {        return errorId;    }    /// If you have handled the error, it can be reset with this call.    void ClearError() {        error = false; errorId = 0; errorDesc = "";    }    /** Dump the document to standard out. */    void Print() const {        Print( stdout, 0 );    }    // [internal use]    virtual void Print( FILE* cfile, int depth = 0 ) const;    // [internal use]    void SetError( int err ) {        assert( err > 0 && err < TIXML_ERROR_STRING_COUNT );        error   = true;        errorId = err;        /* add errorLine to provide more error information. by zhoujunfeng */        char chErrorLine[24];        sprintf(chErrorLine, "Line %d: ", errorLine);        errorDesc = chErrorLine;        errorDesc += errorString[ errorId ];    }protected :    virtual void StreamOut ( TIXML_OSTREAM * out) const;    // [internal use]    virtual TiXmlNode* Clone() const;#ifdef TIXML_USE_STL    virtual void StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );#endifprivate:    bool error;    int  errorId;    TIXML_STRING errorDesc;};TiXmlDocument * loadXmlCfgFile( bool exitOnError, char *xmlFileName);}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品99久久久久久似苏梦涵| 久久久久久久综合| 日韩在线观看一区二区| 在线欧美小视频| 亚洲色图欧美偷拍| 欧美性生活久久| 麻豆精品视频在线| 亚洲视频一二区| 日韩一区二区影院| 丁香另类激情小说| 亚洲精品国产无天堂网2021| 精品视频免费在线| 国内一区二区在线| 亚洲人成人一区二区在线观看| 色猫猫国产区一区二在线视频| 一区二区激情小说| 精品国产一区二区三区不卡| 91美女片黄在线观看91美女| 美女视频黄 久久| 亚洲精品高清视频在线观看| 日韩精品一区二区三区在线| 精一区二区三区| 国产精品国产三级国产aⅴ入口| 91精品国产乱| 在线91免费看| 在线亚洲高清视频| 色综合久久综合网欧美综合网| 免费成人在线视频观看| 一区二区三区中文在线| 日韩理论片在线| 中文在线一区二区| 精品女同一区二区| 久久精品亚洲精品国产欧美kt∨| 欧美一区二区三区视频免费播放| 欧美日韩三级一区| 欧美一区二区在线视频| 欧美日韩国产综合草草| 欧美午夜电影在线播放| 色8久久精品久久久久久蜜| 91麻豆精品在线观看| jlzzjlzz国产精品久久| 91国偷自产一区二区三区观看| 99久久免费精品高清特色大片| 99久久精品国产毛片| 色婷婷综合久色| 欧美视频一区二区三区四区| 色综合一区二区三区| 在线视频欧美精品| 亚洲国产精品激情在线观看| 中文字幕亚洲不卡| 午夜电影网一区| 奇米在线7777在线精品| 国产一区二区久久| 91亚洲永久精品| 欧美岛国在线观看| 中国av一区二区三区| 亚洲国产日韩精品| 丁香激情综合五月| 日韩精品一区二区在线观看| 国产日韩精品一区二区三区| 一区二区三区蜜桃| 国产乱色国产精品免费视频| 91麻豆自制传媒国产之光| 国产性色一区二区| 国内精品久久久久影院色| 色综合亚洲欧洲| 一区二区中文字幕在线| 精品一区二区三区av| av中文字幕亚洲| 国产日韩成人精品| 午夜免费欧美电影| 欧美中文字幕一区| 亚洲人成网站影音先锋播放| 国产剧情一区二区三区| 欧美精品一区二区在线观看| 日韩精品欧美精品| 精品奇米国产一区二区三区| 人禽交欧美网站| 在线播放视频一区| 五月激情六月综合| 欧美久久久久久久久中文字幕| 中文字幕在线一区免费| 97se狠狠狠综合亚洲狠狠| 亚洲天堂网中文字| 欧洲另类一二三四区| 一区二区激情视频| 欧美日韩一区二区三区免费看| 亚洲欧美日韩一区二区| 99精品欧美一区二区蜜桃免费 | 麻豆免费精品视频| 亚洲欧洲av一区二区三区久久| 99久久综合99久久综合网站| 亚洲影视在线播放| 欧美日韩www| 97精品国产露脸对白| 亚洲国产精品嫩草影院| 欧美日韩一级黄| 一本到不卡免费一区二区| 久久丁香综合五月国产三级网站| 欧美国产日韩亚洲一区| 欧美日韩国产一区二区三区地区| 美国欧美日韩国产在线播放| 亚洲图片欧美激情| 欧美成人精品福利| 欧美日韩国产另类不卡| 国产成人亚洲综合a∨婷婷图片| 亚洲综合色在线| 国产精品久久久久久久第一福利 | 国产精品私人自拍| 久久久精品国产免费观看同学| 欧美综合一区二区| 成人亚洲精品久久久久软件| 日本不卡在线视频| 蜜臀久久99精品久久久画质超高清| 最新成人av在线| 国产精品久久久久国产精品日日| 久久九九全国免费| 亚洲国产精品99久久久久久久久 | 欧美日韩国产综合久久| 色婷婷综合视频在线观看| 成人高清免费观看| 成人av电影在线网| 一本色道亚洲精品aⅴ| 成人中文字幕电影| 色呦呦日韩精品| 欧美猛男gaygay网站| 在线观看不卡一区| 欧美男男青年gay1069videost| 99精品国产热久久91蜜凸| 国产高清视频一区| 99精品视频中文字幕| 欧美影院一区二区三区| 欧美日韩激情一区| 国产精品国产三级国产| 91美女片黄在线| 欧美精选在线播放| 国产精品视频你懂的| 亚洲成人精品一区| 成人成人成人在线视频| 337p亚洲精品色噜噜噜| 国产日本一区二区| 麻豆国产精品一区二区三区 | 日本一区二区久久| 天堂久久久久va久久久久| 不卡av免费在线观看| 欧美一级一区二区| 亚洲电影一区二区三区| 成人激情文学综合网| 日韩精品一区二区三区swag| 亚洲靠逼com| 色综合色狠狠天天综合色| www国产精品av| 国产乱码精品一区二区三区忘忧草| 在线观看网站黄不卡| 亚洲日本在线观看| 成人午夜又粗又硬又大| 欧美—级在线免费片| 国产一区二区三区免费播放| 欧美精品久久一区二区三区| 亚洲一区二区三区三| 在线看国产日韩| 亚洲成人在线免费| 日韩一区二区在线看| 天堂蜜桃91精品| 久久久久久黄色| 国产成人午夜视频| 国产精品久久久久aaaa樱花| 丁香啪啪综合成人亚洲小说| 国产精品美女久久久久久久久| 国产精一区二区三区| 中文字幕国产一区| 欧美曰成人黄网| 奇米影视一区二区三区| 久久久久久电影| 欧美日本一区二区| 国产成人精品免费看| 中文字幕综合网| 国产婷婷色一区二区三区在线| 在线观看日韩高清av| 91网站最新地址| 91福利精品视频| 欧美日韩久久不卡| 555夜色666亚洲国产免| 欧美日韩激情一区| 欧美性猛交一区二区三区精品| 色www精品视频在线观看| 色香蕉成人二区免费| 欧美日韩国产综合视频在线观看| 欧美日韩一区二区欧美激情 | 国产精品嫩草99a| 精品久久国产老人久久综合| 欧美亚洲综合色| 91国偷自产一区二区开放时间| 成人免费观看男女羞羞视频| 性感美女久久精品| 亚洲一卡二卡三卡四卡五卡| 国产精品福利一区二区| 中文字幕欧美区| 中文字幕一区日韩精品欧美| 久久蜜桃av一区二区天堂|