~ubuntu-branches/ubuntu/karmic/codelite/karmic

« back to all changes in this revision

Viewing changes to Plugin/xmlutils.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-08-15 17:42:43 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090815174243-nlb9ikgigbiybz12
Tags: 1.0.2893+dfsg-0ubuntu1
* debian/rules:
  + Tidy up get-orig-source rule
* debian/control:
  + Bump Standards-Version
  + Change Maintainer email address to @ubuntu.com
  + Drop cdbs build-dependency
* debian/copyright:
  + Update to DEP-5 format
* debian/patches/00_add-fPIC.patch:
  + Dropped, fix upstream
* Closes LP: #413992

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////////
2
2
//////////////////////////////////////////////////////////////////////////////
3
3
//
4
 
// copyright            : (C) 2008 by Eran Ifrah                            
5
 
// file name            : xmlutils.h              
6
 
//                                                                          
 
4
// copyright            : (C) 2008 by Eran Ifrah
 
5
// file name            : xmlutils.h
 
6
//
7
7
// -------------------------------------------------------------------------
8
 
// A                                                                        
9
 
//              _____           _      _     _ _                            
10
 
//             /  __ \         | |    | |   (_) |                           
11
 
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
12
 
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
13
 
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
14
 
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
15
 
//                                                                          
16
 
//                                                  F i l e                 
17
 
//                                                                          
18
 
//    This program is free software; you can redistribute it and/or modify  
19
 
//    it under the terms of the GNU General Public License as published by  
20
 
//    the Free Software Foundation; either version 2 of the License, or     
21
 
//    (at your option) any later version.                                   
22
 
//                                                                          
 
8
// A
 
9
//              _____           _      _     _ _
 
10
//             /  __ \         | |    | |   (_) |
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|
 
15
//
 
16
//                                                  F i l e
 
17
//
 
18
//    This program is free software; you can redistribute it and/or modify
 
19
//    it under the terms of the GNU General Public License as published by
 
20
//    the Free Software Foundation; either version 2 of the License, or
 
21
//    (at your option) any later version.
 
22
//
23
23
//////////////////////////////////////////////////////////////////////////////
24
24
//////////////////////////////////////////////////////////////////////////////
25
25
 #ifndef XMLUTILS_H
46
46
 
47
47
        /// Find the last child node of parent with a given name. NULL if no childs exist
48
48
        /// \param parent  the parent node whom to be searched
49
 
        /// \param name    the element's tag name 
 
49
        /// \param name    the element's tag name
50
50
        static wxXmlNode *FindLastByTagName(const wxXmlNode *parent, const wxString &tagName);
51
51
 
52
 
        
 
52
 
53
53
        /**
54
54
         * update node property. If multiple properties with the same name exist, this function updates
55
55
     * the first occurance
56
 
         * \param node 
 
56
         * \param node
57
57
         * \param name property name
58
58
         * \param value new value to set
59
59
         */
62
62
        /**
63
63
         * Find the first child node of parent with a given name. NULL if no childs exist
64
64
         * \param the parent node whom to be searched
65
 
         * \param the element's tag name 
 
65
         * \param the element's tag name
66
66
         */
67
67
        static wxXmlNode *FindFirstByTagName(const wxXmlNode *parent, const wxString &tagName);
68
68
 
69
 
        
 
69
 
70
70
        /**
71
71
         * Set the content of node. This function replaces any existing content of node
72
 
         * \param node 
 
72
         * \param node
73
73
         * \param text content
74
74
         */
75
75
        static void SetNodeContent(wxXmlNode *node, const wxString &text);
76
76
 
 
77
        /**
 
78
         * Set the content of node. This function replaces any existing content of node
 
79
         * \param node
 
80
         * \param text content
 
81
         */
 
82
        static void SetCDATANodeContent(wxXmlNode *node, const wxString &text);
 
83
 
77
84
        /**
78
85
         * Read string property from the given node
79
86
         * \param propName the property name
94
101
         * \param defaultValue default value to return if no property exist
95
102
         */
96
103
        static bool ReadBool(wxXmlNode *node, const wxString &propName, bool defaultValue = false);
97
 
        
 
104
 
98
105
        /**
99
106
         * Remove all children of xml node
100
107
         * \param node xml node