sptk2 logo
SPTK Home Page

sptk::CXmlPI Class Reference
[XML]

XML processing instructions (PI). More...

#include <CXmlNode.h>

Inheritance diagram for sptk::CXmlPI:

sptk::CXmlBaseTextNode sptk::CXmlNode

List of all members.

Public Member Functions

 CXmlPI (CXmlNode &parent, std::string target, const char *data)
 Constructor.
 CXmlPI (CXmlNode *parent, std::string target, const char *data)
 Constructor.
 CXmlPI (CXmlNode &parent, std::string target, const std::string &data)
 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.


Detailed Description

XML processing instructions (PI).

Constructor & Destructor Documentation

sptk::CXmlPI::CXmlPI ( CXmlNode parent,
std::string  target,
const char *  data 
) [inline]

Constructor.

Parameters:
parent CXmlNode &, a parent node. Make sure it's a pointer to the existing node.
target std::string, a target tag name
data const char *, a data

References name().

sptk::CXmlPI::CXmlPI ( CXmlNode parent,
std::string  target,
const char *  data 
) [inline]

Constructor.

Parameters:
parent CXmlNode&, a parent node. Make sure it's a pointer to the existing node.
target std::string, a target tag name
data const char*, a data

References name().

sptk::CXmlPI::CXmlPI ( CXmlNode parent,
std::string  target,
const std::string &  data 
) [inline]

Constructor.

Parameters:
parent CXmlNode &, a parent node
target std::string, a target tag name
data const std::string&, a data

References name().


Member Function Documentation

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

Sets new name for node.

Parameters:
name const char *, new node name

Reimplemented from sptk::CXmlBaseTextNode.

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

Sets the new name for the node.

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

Reimplemented from sptk::CXmlBaseTextNode.

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

Returns the node name.

The meaning of the value depends on the node type

Reimplemented from sptk::CXmlBaseTextNode.

Referenced by CXmlPI().


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

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