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

Document.h

解説を見る。
00001 // -*- mode: c++ -*-
00002 
00003 #ifndef MiX_DOCUMENT_H_
00004 #define MiX_DOCUMENT_H_
00005 
00006 #include "classes.h"
00007 #include "misc.h"
00008 #include "XMLString.h"
00009 #include "extern/noncopyable.hpp"
00010 
00011 namespace MiX{
00012 
00013   template <class charT,class char_traits,class xml_traits>
00014   class Document : boost::noncopyable,
00015                    public NodeContainer<charT,char_traits,xml_traits>{
00016   public:
00017     MiX_Template_Typedef(charT,char_traits,xml_traits);
00018     typedef Document<charT,char_traits,xml_traits> this_type;
00019     typedef typename nodelist_type::iterator nodelist_iter; 
00020   private:
00021     const static typename nodelist_type::iterator dmy_it;
00022   protected:
00029     Document() { };
00030   public:
00032     virtual ~Document()throw() { };
00034     virtual NodeType getType() const{ return Node_Document; };
00040     static NodeType type(){ return Node_Document; } ;
00042     element_type& getRoot()const;
00049     virtual string_type toString(bool is_indent=false,const string_type& idt=xml_traits::indent(), int indent_off=0)const;
00056     attribute_type& operator[](const string_type& name){
00057       return getAttribute(name);
00058     }
00062     node_type& clone(nodecontainer_type& dmy,const nodelist_iter& it=dmy_it)const { return clone(); }
00063 
00067     node_type& clone() const;
00074     static this_type& create(const string_type& rootname);
00075     
00076     friend class DOM_Parser<charT,char_traits,xml_traits>;
00077   };
00078 }
00079 
00080 #ifndef MiX_DOCUMENT_CPP_
00081 #include "Document.cpp"
00082 #endif
00083 
00084 #endif

MiXに対してSun Jul 20 00:45:27 2003に生成されました。 doxygen1.3-rc3