sptk2 logo
SPTK Home Page

sptk::CXmlNamedItem Class Reference
[XML]

XML Named item. More...

#include <CXmlNode.h>

Inheritance diagram for sptk::CXmlNamedItem:

sptk::CXmlNode sptk::CXmlAttribute sptk::CXmlElement sptk::CXmlDoc sptk::CRegistry

List of all members.

Public Member Functions

 CXmlNamedItem (CXmlNode &parent, const char *tagname)
 Constructor.
 CXmlNamedItem (CXmlNode *parent, const char *tagname)
 Constructor.
 CXmlNamedItem (CXmlNode &parent, const std::string &tagname)
 Constructor.
virtual const std::string & name () const
 Returns the node name.
virtual void name (const std::string &name)
 Sets the new name for the node.
virtual void name (const char *name)
 Sets new name for node.
virtual CXmlNodeType type () const
 Returns node type.

Protected Member Functions

 CXmlNamedItem (CXmlDoc &doc)
 Protected constructor for creating CXmlDoc only.
virtual bool nameIs (const std::string *sstName) const
 Returns true if node name pointer (from SST) matches aname pointer.

Friends

class CXmlDoc
class CXmlAttribute


Detailed Description

XML Named item.

Used as a base class for XML element and XML attribute


Constructor & Destructor Documentation

sptk::CXmlNamedItem::CXmlNamedItem ( CXmlDoc doc  )  [inline, protected]

Protected constructor for creating CXmlDoc only.

Parameters:
doc CXmlDoc&, a document.

sptk::CXmlNamedItem::CXmlNamedItem ( CXmlNode parent,
const char *  tagname 
) [inline]

Constructor.

Parameters:
parent CXmlNode*, a parent node.
tagname const char*, a name of XML tag

References name().

sptk::CXmlNamedItem::CXmlNamedItem ( CXmlNode parent,
const char *  tagname 
) [inline]

Constructor.

Parameters:
parent CXmlNode*, a parent node.
tagname const char*, a name of XML tag

References name().

sptk::CXmlNamedItem::CXmlNamedItem ( CXmlNode parent,
const std::string &  tagname 
) [inline]

Constructor.

Parameters:
parent CXmlNode &, a parent node.
tagname const string&, a name of XML tag

References name().


Member Function Documentation

virtual void sptk::CXmlNamedItem::name ( const char *  name  )  [virtual]

Sets new name for node.

Parameters:
name const char *, new node name

Implements sptk::CXmlNode.

Reimplemented in sptk::CXmlDoc.

virtual void sptk::CXmlNamedItem::name ( const std::string &  name  )  [virtual]

Sets the new name for the node.

Parameters:
name const std::string&, new node name

Implements sptk::CXmlNode.

Reimplemented in sptk::CXmlDoc.

virtual const std::string& sptk::CXmlNamedItem::name (  )  const [inline, virtual]

Returns the node name.

The meaning of the value depends on the node type

Implements sptk::CXmlNode.

Reimplemented in sptk::CXmlDoc.

Referenced by CXmlNamedItem().

virtual bool sptk::CXmlNamedItem::nameIs ( const std::string *  sstName  )  const [inline, protected, virtual]

Returns true if node name pointer (from SST) matches aname pointer.

Parameters:
sstName const string*, node name pointer to compare with this node name pointer

Reimplemented from sptk::CXmlNode.


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

Mon Mar 5 11:56:22 2012: SPTK 3.5.7