• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

spl/xml/XmlComment.h

00001 /*
00002  *   This file is part of the Standard Portable Library (SPL).
00003  *
00004  *   SPL is free software: you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License as published by
00006  *   the Free Software Foundation, either version 3 of the License, or
00007  *   (at your option) any later version.
00008  *
00009  *   SPL is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU General Public License
00015  *   along with SPL.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 #ifndef _xmlcomment_h
00018 #define _xmlcomment_h
00019 
00020 #include <spl/Debug.h>
00021 #include <spl/xml/XmlNode.h>
00022 
00031 class XmlComment : public XmlNode
00032 {
00033 protected:
00034         friend class XmlNode;
00035         friend void _TestTinyXml();
00036 
00037         /*      Attribtue parsing starts: at the ! of the !--
00038                                                  returns: next char past '>'
00039         */
00040         virtual const char* _Parse( const char* p, XmlParsingData* data, XmlEncoding encoding );
00041         void CopyTo( XmlComment& target ) const;
00042 
00044         XmlComment();
00045         
00047         XmlComment( const String& _value );
00048         
00049 public:
00050         XmlComment( const XmlComment& );
00051         
00052         virtual ~XmlComment();
00053                         
00054         void operator=( const XmlComment& base );
00055 
00056         virtual String Name() const;
00057                         
00059         virtual XmlNodePtr Clone() const;
00060         
00061         virtual XmlCommentPtr  ToComment() const; 
00062 
00063         virtual StringPtr ToString() const;
00064         virtual void WriteTo(TextWriter& writer) const;
00065 };
00066 
00067 REGISTER_TYPEOF( 532, XmlComment );
00068 
00071 #endif