PixelLightAPI  .
Public Member Functions
PLCore::XmlComment Class Reference

XML comment node. More...

#include <XmlComment.h>

Inheritance diagram for PLCore::XmlComment:
Inheritance graph
[legend]

List of all members.

Public Member Functions

PLCORE_API XmlComment ()
 Default constructor.
PLCORE_API XmlComment (const String &sValue)
 Constructor.
PLCORE_API XmlComment (const XmlComment &cSource)
 Copy constructor.
virtual PLCORE_API ~XmlComment ()
 Destructor.
XmlCommentoperator= (const XmlComment &cSource)
 Copy operator.
virtual PLCORE_API bool Save (File &cFile, uint32 nDepth=0) override
 Save function.
virtual PLCORE_API String ToString (uint32 nDepth=0) const override
 Output as string function.
virtual PLCORE_API const char * Parse (const char *pszData, XmlParsingData *pData=nullptr, EEncoding nEncoding=EncodingUnknown) override
 Parse the given null terminated block of XML data.
virtual PLCORE_API XmlNodeClone () const override
 Create an exact duplicate of this node and return it.

Detailed Description

XML comment node.


Constructor & Destructor Documentation

Default constructor.

PLCORE_API PLCore::XmlComment::XmlComment ( const String sValue)

Constructor.

Parameters:
[in]sValueValue of this text node
PLCORE_API PLCore::XmlComment::XmlComment ( const XmlComment cSource)

Copy constructor.

Parameters:
[in]cSourceSource to copy from
virtual PLCORE_API PLCore::XmlComment::~XmlComment ( ) [virtual]

Destructor.


Member Function Documentation

XmlComment & PLCore::XmlComment::operator= ( const XmlComment cSource) [inline]

Copy operator.

Parameters:
[in]cSourceSource to copy from
Returns:
Reference to this instance
virtual PLCORE_API bool PLCore::XmlComment::Save ( File cFile,
uint32  nDepth = 0 
) [override, virtual]

Save function.

Parameters:
[out]cFileFile to write in, must be opened and writable
[in]nDepthCurrent depth
Returns:
'true' if all went fine, else 'false'

Implements PLCore::XmlBase.

virtual PLCORE_API String PLCore::XmlComment::ToString ( uint32  nDepth = 0) const [override, virtual]

Output as string function.

Parameters:
[in]nDepthCurrent depth
Returns:
String containing the XML

Implements PLCore::XmlBase.

virtual PLCORE_API const char* PLCore::XmlComment::Parse ( const char *  pszData,
XmlParsingData pData = nullptr,
EEncoding  nEncoding = EncodingUnknown 
) [override, virtual]

Parse the given null terminated block of XML data.

Parameters:
[in]pszDataParsing data, if a null pointer, an error will be returned
[in]pDataParsing data, can be a null pointer
[in]nEncodingEncoding
Returns:
The pointer to the parameter 'pszData' if all went fine, else a null pointer
Remarks:
Passing in an encoding to this method (either 'EncodingLegacy' or 'EncodingUTF8' will force the parser to use that encoding, regardless of what the parser might otherwise try to detect.

Implements PLCore::XmlBase.

virtual PLCORE_API XmlNode* PLCore::XmlComment::Clone ( ) const [override, virtual]

Create an exact duplicate of this node and return it.

Returns:
The clone, a null pointer on error
Note:
  • The memory must be deleted by the caller

Implements PLCore::XmlNode.


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:29
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported