メインページ   名前空間一覧   クラス階層   構成   ファイル一覧   名前空間メンバ   構成メンバ   ファイルメンバ  

Comment.h

解説を見る。
00001 // -*- mode: c++ -*-
00002 
00003 #ifndef MIX_COMMENT_H_
00004 #define MIX_COMMENT_H_
00005 
00006 #include "classes.h"
00007 #include "misc.h"
00008 #include "XMLString.h"
00009 #include "NodeList.h"
00010 #include "Value.h"
00011 #include "extern/noncopyable.hpp"
00012 
00013 namespace MiX{
00015   template <class charT,class traitsT>
00016   class Comment : boost::noncopyable,
00017                   public Value<charT,traitsT>{
00018   public:
00019     MiX_Template_Typedef(charT,traitsT);
00020     typedef Comment<charT,traitsT> this_type;
00021     typedef NodeContainer<charT,traitsT> nodecontainer_type;
00022   private:
00023     const static typename nodelist_type::iterator dmy_it;
00024   protected:
00031     Comment(const string_type& val) : Value<charT,traitsT>(val) { };
00037     Comment(const this_type& src){ };
00038 
00039   public:
00041     virtual ~Comment()throw() { };
00043     virtual NodeType getType()const { return Node_Comment; };
00049     static NodeType type() { return Node_Comment; } ;
00056     virtual string_type toString(bool is_indent=false,int indent_off=0)const;
00063     this_type& clone(element_type& parent,const typename nodelist_type::iterator& it = dmy_it) const 
00064       { return this_type::create(getValue(),parent,it); };
00074     static this_type& create(const string_type& str,element_type& parent,const typename nodelist_type::iterator& it = dmy_it);
00075 
00076     friend class DOM_Parser<charT,traitsT>;
00077 
00078   };
00079 }
00080 
00081 #ifndef MIX_COMMENT_CPP_
00082 #include "Comment.cpp"
00083 #endif//MIX_COMMENT_CPP_
00084 
00085 #endif

MiXに対してSat Jul 27 23:16:31 2002に生成されました。 doxygen1.2.14 作者 Dimitri van Heesch, © 1997-2002