#include <tinyxml.h>

Public Member Functions | |
| TiXmlStylesheetReference () | |
| Construct an empty declaration. | |
| TiXmlStylesheetReference (const std::string &_type, const std::string &_href) | |
| Constructor. | |
| TiXmlStylesheetReference (const char *_type, const char *_href) | |
| Construct. | |
| const char * | Type () const |
| Type. Will return an empty string if none was found. | |
| const char * | Href () const |
| Href. Will return an empty string if none was found. | |
| virtual TiXmlNode * | Clone () const |
| Creates a copy of this StylesheetReference and returns it. | |
| virtual void | Print (FILE *cfile, int depth) const |
| All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL mode, std::string in STL mode. | |
|
virtual const TiXmlStylesheetReference * | ToStylesheetReference () const |
| Cast to a more defined type. Will return null not of the requested type. | |
| virtual TiXmlStylesheetReference * | ToStylesheetReference () |
| Cast to a more defined type. Will return null not of the requested type. | |
| virtual bool | Accept (TiXmlVisitor *visitor) const |
| Walk the XML tree visiting this node and all of its children. | |
<?xml-stylesheet type="text/xsl" href="style.xsl"?>
Note: In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 2 and they are always the same.
| virtual void TiXmlStylesheetReference::Print | ( | FILE * | cfile, | |
| int | depth | |||
| ) | const [inline, virtual] |
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL mode, std::string in STL mode.
) Either or both cfile and str can be null.
This is a formatted print, and will insert tabs and newlines.
(For an unformatted stream, use the << operator.)
Implements TiXmlBase.
1.5.6