Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

skNode.h

00001 /*
00002   Copyright 1996-2003
00003   Simon Whiteside
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 * $Id: skNode_8h-source.html,v 1.17 2004/12/17 21:31:14 sdw Exp $
00020 */
00021 #ifndef skNODE_H
00022 #define skNODE_H
00023 
00024 #include "skAlist.h"
00025 
00026 class CLASSEXPORT skElement;
00027 class CLASSEXPORT skOutputDestination;
00028 
00032 class CLASSEXPORT skNode 
00033 #ifdef __SYMBIAN32__
00034 : public CBase
00035 #endif
00036 {
00037  public:
00041    IMPORT_C virtual ~skNode();
00045   enum NodeType {ELEMENT_NODE,CDATA_SECTION_NODE, TEXT_NODE};
00050   virtual IMPORT_C skString getNodeValue() const;
00055   virtual IMPORT_C void setNodeValue(const skString& s);
00060   virtual IMPORT_C NodeType getNodeType() const=0;
00066   virtual IMPORT_C skNode * clone()=0;
00072   virtual IMPORT_C skString toString() const=0;
00078   virtual IMPORT_C void write(skOutputDestination& out) const=0;
00086   static IMPORT_C skString escapeXMLDelimiters(const skString& text,bool include_quote);
00088   IMPORT_C void setParent(skElement * parent);
00090   IMPORT_C skElement * getParent();
00094   IMPORT_C virtual bool equals(const skNode& other) const=0;
00095  protected:
00097   skNode();
00099   skElement * m_Parent;
00100  private:
00102   skNode(const skNode&);
00103   skNode& operator=(const skNode& other);
00104 };
00105 #ifdef INSTANTIATE_TEMPLATES
00106 EXTERN_TEMPLATE template class CLASSEXPORT skTAList<skNode>;
00107 #endif
00108 
00112 class CLASSEXPORT skNodeList : public skTAList<skNode>{
00113 };
00114 
00115 
00116 #endif

Generated on Fri Dec 17 20:27:34 2004 for Simkin by doxygen1.3