|
wxXml2
|
An element declaration. More...
#include <dtd.h>


Public Member Functions | |
| wxXml2ElemDecl () | |
| wxXml2ElemDecl (xmlElement *n) | |
| Wraps the given libxml2 structure. | |
| wxXml2ElemDecl (const wxXml2ElemDecl &n) | |
| Copies the given wrapper (does not imply the XML structure copy). | |
| wxXml2ElemDecl (const wxXml2DTD &parent, const wxString &name, wxXml2ElementTypeVal val=wxXML2_ELEMENT_TYPE_ELEMENT, wxXml2ElemContent &content=wxXml2EmptyElemContent) | |
| Creates a new element declaration and automatically link it to the given parent. | |
| virtual | ~wxXml2ElemDecl () |
| bool | operator== (const wxXml2ElemDecl &decl) const |
| bool | operator!= (const wxXml2ElemDecl &decl) const |
| wxXml2ElemDecl & | operator= (const wxXml2ElemDecl &decl) |
| void | Create (const wxXml2DTD &parent, const wxString &name, wxXml2ElementTypeVal val, wxXml2ElemContent &content) |
| xmlElement * | GetObj () const |
| wxXml2DTD | GetParent () const |
| wxXml2AttrDecl | GetAttributes () const |
| wxXml2ElementTypeVal | GetType () const |
| wxXml2ElemContent | GetContent () const |
| wxXml2Namespace | GetNamespace () const |
Public Member Functions inherited from wxXml2BaseNode | |
| wxXml2BaseNode () | |
| wxXml2BaseNode (wxXml2BaseNodeObj *p) | |
| virtual | ~wxXml2BaseNode () |
| bool | IsUnlinked () const |
| Is this node linked to a wider XML tree ? | |
| bool | IsNonEmpty () const |
| Returns TRUE if this object is wrapping a non-NULL object. | |
| bool | operator== (const wxXml2BaseNode &decl) const |
| bool | operator!= (const wxXml2BaseNode &decl) const |
| wxXml2BaseNode & | operator= (const wxXml2BaseNode &decl) |
| wxXml2NodeType | GetType () const |
| wxXml2BaseNode | GetParent () const |
| wxXml2BaseNode | GetChildren () const |
| wxXml2BaseNode | GetFirstChild () const |
| wxXml2BaseNode | GetNext () const |
| wxXml2BaseNode | GetPrevious () const |
| wxXml2BaseNodeObj * | GetObj () const |
| void | SetType (wxXml2NodeType type) |
| void | SetChildren (const wxXml2BaseNode &child) |
| void | SetNext (const wxXml2BaseNode &next) |
| void | SetPrevious (const wxXml2BaseNode &prev) |
Public Member Functions inherited from wxXml2Wrapper | |
| wxXml2Wrapper () | |
| Constructs this wrapper but not its wrapped data. | |
| virtual | ~wxXml2Wrapper () |
| The wxXml2Wrapper destructor will free the memory of the underlying libxml2 structure only if it is not linked to any XML tree. | |
| virtual void | DestroyIfUnlinked () |
| Destroys the wrapped data if it is unlinked. | |
Additional Inherited Members | |
Protected Member Functions inherited from wxXml2BaseNode | |
| void | Destroy () |
| Destroys the data wrapped by this class freeing its memory. | |
| void | SetAsEmpty () |
| Sets this element as empty: that is wrapping a NULL pointer. | |
| void | Copy (const wxXml2BaseNode &n) |
| int & | GetPrivate () const |
| Copies the given object. | |
An element declaration.
This type of node is used only inside an inlined/external DTD. Looks like:
wxXml2ElemDecl handles also the cases:
<!ELEMENT name ANY> <!ELEMENT name EMPTY>
setting the appropriate wxXml2ElementTypeVal value.
|
inline |
|
inline |
Wraps the given libxml2 structure.
References wxXml2Wrapper::JustWrappedNew().
|
inline |
Copies the given wrapper (does not imply the XML structure copy).
References wxXml2BaseNode::Copy().
|
inline |
Creates a new element declaration and automatically link it to the given parent.
|
inlinevirtual |
References wxXml2Wrapper::DestroyIfUnlinked().
| void wxXml2ElemDecl::Create | ( | const wxXml2DTD & | parent, |
| const wxString & | name, | ||
| wxXml2ElementTypeVal | val, | ||
| wxXml2ElemContent & | content | ||
| ) |
References wxXml2ElemContent::GetObj(), wxXml2DTD::GetObj(), wxXml2Wrapper::JustWrappedNew(), wxXml2Wrapper::UnwrappingOld(), and WX2XML.
Referenced by wxXml2ElemContent::wxXml2ElemContent().
| wxXml2AttrDecl wxXml2ElemDecl::GetAttributes | ( | ) | const |
References GetObj(), wxXml2AttrDecl, and wxXml2EmptyAttrDecl.
|
inline |
References wxXml2BaseNode::GetObj(), wxXml2ElemContent, and wxXml2EmptyElemContent.
|
inline |
References wxXml2BaseNode::GetObj(), wxXml2EmptyNamespace, wxXml2Namespace, and XML2WX.
|
inline |
| wxXml2DTD wxXml2ElemDecl::GetParent | ( | ) | const |
References GetObj(), wxXml2DTD, and wxXml2EmptyDTD.
|
inline |
References wxXml2BaseNode::GetObj().
|
inline |
|
inline |
References wxXml2BaseNode::Copy().
| bool wxXml2ElemDecl::operator== | ( | const wxXml2ElemDecl & | decl | ) | const |
References GetObj(), wxCHECK_NULL_POINTERS, and XML2WX.
1.8.2