TiXmlStylesheetReference Class Reference

A stylesheet reference looks like this:. More...

#include <tinyxml.h>

Inheritance diagram for TiXmlStylesheetReference:

TiXmlNode TiXmlBase

List of all members.

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 TiXmlNodeClone () 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 TiXmlStylesheetReferenceToStylesheetReference ()
 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.


Detailed Description

A stylesheet reference looks like this:.

		<?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.


Member Function Documentation

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.


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

Generated on Sun Feb 15 23:12:13 2009 for TinyXml by  doxygen 1.5.6