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

クラス テンプレートMiX::Element の解説

XMLドキュメント内のエレメントを表すクラスです. より詳しく...

#include <Element.h>

MiX::Elementに対する継承グラフ

MiX::NodeContainer MiX::NamedNode MiX::Node MiX::Node すべてのメンバ一覧

公開型

typedef Element< charT, traitsT > this_type
typedef NodeContainer< charT,
traitsT > 
nodecontainer_type

公開メンバ

 MiX_Template_Typedef (charT, traitsT)
virtual ~Element () throw ()
 デストラクタ. より詳しく...

virtual NodeType getType () const
 このノードのタイプを得ます. より詳しく...

this_typeoperator() (const string_type &name, int index=0)
 Elementにアクセスします. より詳しく...

attribute_type & operator[] (const string_type &name)
 Attributeにアクセスします. より詳しく...

virtual string_type toString (bool is_indent=false, int indent_off=0) const
 このElementの文字列表現を得ます. より詳しく...

string_type getText () const
 Textの値を連結して返します. より詳しく...

void setText (const XMLString< charT, traitsT > &s)
 Textを全て消した後、sの値を持つ子Textを生成します。. より詳しく...

this_typeclone (this_type &parent, const typename nodelist_type::iterator &it=dmy_it) const
 このElementを複製します. より詳しく...


静的公開メンバ

NodeType type ()
 静的にクラスからNodeTypeを得ます. より詳しく...

this_typecreate (const string_type &name, this_type &parent, const typename nodelist_type::iterator &it=dmy_it)
 Elementを生成します. より詳しく...


保護メンバ

 Element (const string_type &name)
 コンストラクタ. より詳しく...


フレンド

class DOM_Parser< charT, traitsT >
class Document< charT, traitsT >

解説

template<class charT, class traitsT>
class MiX::Element< charT, traitsT >

XMLドキュメント内のエレメントを表すクラスです.

名前を持ち、子を複数保持します


メンバ型定義の解説

template<class charT, class traitsT>
typedef NodeContainer<charT,traitsT> MiX::Element::nodecontainer_type
 

MiX::Nodeを再定義しています。

template<class charT, class traitsT>
typedef Element<charT,traitsT> MiX::Element::this_type
 

MiX::NamedNodeを再定義しています。


コンストラクタとデストラクタの解説

template<class charT, class traitsT>
MiX::Element< charT, traitsT >::Element const string_type &    name [inline, protected]
 

コンストラクタ.

Elementのコンストラクタは直接呼べません
Element<...>::createで生成してください

template<class charT, class traitsT>
virtual MiX::Element< charT, traitsT >::~Element   throw () [inline, virtual]
 

デストラクタ.


メンバ関数の解説

template<class charT, class traitsT>
this_type& MiX::Element< charT, traitsT >::clone this_type   parent,
const typename nodelist_type::iterator &    it = dmy_it
const
 

このElementを複製します.

引数:
parent  複製先の親ノード
it  挿入する場所(parent.getChilds()内の要素を示すイテレータでなくてはなりません)

template<class charT, class traitsT>
this_type& MiX::Element< charT, traitsT >::create const string_type &    name,
this_type   parent,
const typename nodelist_type::iterator &    it = dmy_it
[static]
 

Elementを生成します.

引数:
name  生成するElementの名前
parent  生成するElementの親ノード
it  挿入する場所(parent.getChilds()内の要素を示すイテレータでなくてはなりません)

template<class charT, class traitsT>
string_type MiX::Element< charT, traitsT >::getText   const
 

Textの値を連結して返します.

template<class charT, class traitsT>
virtual NodeType MiX::Element< charT, traitsT >::getType   const [inline, virtual]
 

このノードのタイプを得ます.

MiX::Nodeを実装しています.

template<class charT, class traitsT>
MiX::Element< charT, traitsT >::MiX_Template_Typedef charT   ,
traitsT   
 

MiX::NamedNodeを再定義しています。

template<class charT, class traitsT>
this_type& MiX::Element< charT, traitsT >::operator() const string_type &    name,
int    index = 0
[inline]
 

Elementにアクセスします.

szNameで与えられた名前を持つiIndex番目のElementへの参照を返します 見つからなかった場合はDomException<...>を投げます

template<class charT, class traitsT>
attribute_type& MiX::Element< charT, traitsT >::operator[] const string_type &    name [inline]
 

Attributeにアクセスします.

szNameで与えられた名前のAttributeへの参照を返します 見つからなかった場合はDomException<...>を投げます

template<class charT, class traitsT>
void MiX::Element< charT, traitsT >::setText const XMLString< charT, traitsT > &    s
 

Textを全て消した後、sの値を持つ子Textを生成します。.

template<class charT, class traitsT>
virtual string_type MiX::Element< charT, traitsT >::toString bool    is_indent = false,
int    indent_off = 0
const [virtual]
 

このElementの文字列表現を得ます.

bIndentが真の時、インデントを追加します

MiX::Nodeを実装しています.

template<class charT, class traitsT>
NodeType MiX::Element< charT, traitsT >::type   [inline, static]
 

静的にクラスからNodeTypeを得ます.

常にNode_Elementを返します


フレンドと関連する関数の解説

template<class charT, class traitsT>
friend class Document< charT, traitsT > [friend]
 

template<class charT, class traitsT>
friend class DOM_Parser< charT, traitsT > [friend]
 

MiX::NodeContainerを再定義しています。


このクラスの解説は次のファイルから生成されました:
MiXに対してSat Jul 27 23:16:33 2002に生成されました。 doxygen1.2.14 作者 Dimitri van Heesch, © 1997-2002