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

misc.h

解説を見る。
00001 // -*- mode: c++ -*-
00002 #ifndef MiX_MISC_H_
00003 #define MiX_MISC_H_
00004 
00009 #include "classes.h"
00010 
00011 #include "DefaultTraits.h"
00012 
00013 namespace MiX{
00020   enum NodeType{
00021     Node_Document = 0x40,
00022     Node_Element = 0x60,
00023     Node_Attribute = 0x30,
00024     Node_Text = 0x10,
00025     Node_Comment = 0x11,
00026     //lタm[hgpB
00027     Node_NodeContainer = 0x40,
00028     Node_NamedNode = 0x20,
00029     Node_Value = 0x10,
00030   };
00031   
00033   enum ErrorType{
00034     // for ParsingException
00035     UnexpectedToken = 0,
00036     XMLDeclarationNotFound,
00037     InternalError,
00038     UnexpectedEOD,
00039     InvalidHandler,
00040     InvalidDeclaration,
00041     MismatchTag,
00042     // for DomException
00043     NullException,
00044     NodeNotFound,
00045     NodeDuplication,
00046     InvalidNodeFound,
00047     NamespaceNotDefined
00048   };
00049 
00051   template<class charT,class traitsT>
00052   XMLString<charT,traitsT> make_indent(int off,const XMLString<charT,traitsT>& idt){
00053     XMLString<charT,traitsT> ret;
00054     for( int i=0 ; i<off ; ++i ) ret+=idt;
00055     return ret;
00056   }
00057   /*
00058   template<class charT,class traitsT>
00059   void insertIndent(int i,XMLString<charT,traitsT>& str,charT c){
00060     for(int j=0;j<i;j++) str+=c;
00061     }*/
00062 
00063 
00064 #define MiX_Template_Typedef(C,T,X) typedef C char_type; \
00065     typedef T char_traits_type; \
00066     typedef X xml_traits_type; \
00067     typedef Node<C,T,X> node_type; \
00068     typedef NodeContainer<C,T,X> nodecontainer_type; \
00069     typedef NamedNode<C,T,X> namednode_type; \
00070     typedef Value<C,T,X> value_type; \
00071     typedef Document<C,T,X> document_type; \
00072     typedef Element<C,T,X> element_type; \
00073     typedef Attribute<C,T,X> attribute_type; \
00074     typedef Text<C,T,X> text_type; \
00075     typedef Comment<C,T,X> comment_type; \
00076     typedef AttrMap<C,T,X> attrmap_type; \
00077     typedef XMLString<C,T,X> string_type; \
00078     typedef NodeList<C,T,X> nodelist_type; \
00079     typedef DOM_Exception<C,T,X> dom_exception_type
00080 }
00081 
00082 #endif

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