wxXml2
Public Member Functions | List of all members
wxXml2EntityDecl Class Reference

An entity declaration. More...

#include <dtd.h>

Inheritance diagram for wxXml2EntityDecl:
Inheritance graph
[legend]
Collaboration diagram for wxXml2EntityDecl:
Collaboration graph
[legend]

Public Member Functions

 wxXml2EntityDecl ()
 The libxml2 structure which holds the data.
 
 wxXml2EntityDecl (xmlEntity *n)
 Wraps the given libxml2 structure.
 
 wxXml2EntityDecl (const wxXml2EntityDecl &n)
 Copies the given wrapper (does not imply the XML structure copy).
 
 wxXml2EntityDecl (const wxXml2DTD &parent, const wxString &name, wxXml2EntityType type=wxXML2_INTERNAL_GENERAL_ENTITY, const wxString &externalID=wxEmptyString, const wxString &systemID=wxEmptyString, const wxString &content=wxEmptyString)
 
virtual ~wxXml2EntityDecl ()
 
bool operator== (const wxXml2EntityDecl &decl) const
 
bool operator!= (const wxXml2EntityDecl &decl) const
 
wxXml2EntityDecloperator= (const wxXml2EntityDecl &decl)
 
void Create (const wxXml2DTD &parent, const wxString &name, wxXml2EntityType type, const wxString &externalID, const wxString &systemID, const wxString &content)
 
xmlEntity * GetObj () const
 
wxXml2DTD GetParent () const
 
wxXml2EntityType GetType () const
 
wxString GetName () const
 
wxString GetContent () const
 
wxString GetExternalID () const
 
wxString GetSystemID () 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
 
wxXml2BaseNodeoperator= (const wxXml2BaseNode &decl)
 
wxXml2NodeType GetType () const
 
wxXml2BaseNode GetParent () const
 
wxXml2BaseNode GetChildren () const
 
wxXml2BaseNode GetFirstChild () const
 
wxXml2BaseNode GetNext () const
 
wxXml2BaseNode GetPrevious () const
 
wxXml2BaseNodeObjGetObj () 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.
 

Detailed Description

An entity declaration.

This type of node is used only inside an inlined/external DTD. Looks like:

        <!ENTITY name SYSTEM SystemID>

or <!ENTITY name PUBLIC PubID SystemID>

Constructor & Destructor Documentation

wxXml2EntityDecl::wxXml2EntityDecl ( )
inline

The libxml2 structure which holds the data.

wxXml2EntityDecl::wxXml2EntityDecl ( xmlEntity *  n)
inline

Wraps the given libxml2 structure.

References wxXml2Wrapper::JustWrappedNew().

wxXml2EntityDecl::wxXml2EntityDecl ( const wxXml2EntityDecl n)
inline

Copies the given wrapper (does not imply the XML structure copy).

References wxXml2BaseNode::Copy().

wxXml2EntityDecl::wxXml2EntityDecl ( const wxXml2DTD parent,
const wxString &  name,
wxXml2EntityType  type = wxXML2_INTERNAL_GENERAL_ENTITY,
const wxString &  externalID = wxEmptyString,
const wxString &  systemID = wxEmptyString,
const wxString &  content = wxEmptyString 
)
inline
virtual wxXml2EntityDecl::~wxXml2EntityDecl ( )
inlinevirtual

Member Function Documentation

void wxXml2EntityDecl::Create ( const wxXml2DTD parent,
const wxString &  name,
wxXml2EntityType  type,
const wxString &  externalID,
const wxString &  systemID,
const wxString &  content 
)
wxString wxXml2EntityDecl::GetContent ( ) const
inline

References wxXml2BaseNode::GetObj(), and XML2WX.

wxString wxXml2EntityDecl::GetExternalID ( ) const
inline

References wxXml2BaseNode::GetObj(), and XML2WX.

wxString wxXml2EntityDecl::GetName ( ) const
inline

References wxXml2BaseNode::GetObj(), and XML2WX.

xmlEntity* wxXml2EntityDecl::GetObj ( ) const
inline

Referenced by GetParent(), and operator==().

wxXml2DTD wxXml2EntityDecl::GetParent ( ) const

References GetObj(), wxXml2DTD, and wxXml2EmptyDTD.

wxString wxXml2EntityDecl::GetSystemID ( ) const
inline

References wxXml2BaseNode::GetObj(), and XML2WX.

wxXml2EntityType wxXml2EntityDecl::GetType ( ) const
inline
bool wxXml2EntityDecl::operator!= ( const wxXml2EntityDecl decl) const
inline
wxXml2EntityDecl& wxXml2EntityDecl::operator= ( const wxXml2EntityDecl decl)
inline
bool wxXml2EntityDecl::operator== ( const wxXml2EntityDecl decl) const

The documentation for this class was generated from the following files: