XMLStorage::StyleSheet Struct Reference

XML Stylesheet entry. More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::StyleSheet:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StyleSheet ()
 StyleSheet (const std::string &href, const std::string &type="text/xsl", bool alternate=false)
bool empty () const
void print (std::ostream &out) const

Public Attributes

std::string _href
std::string _type
std::string _title
std::string _media
std::string _charset
bool _alternate


Detailed Description

XML Stylesheet entry.

Definition at line 725 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::StyleSheet::StyleSheet (  )  [inline]

Definition at line 734 of file xmlstorage.h.

00735 : _alternate(false) {}

XMLStorage::StyleSheet::StyleSheet ( const std::string &  href,
const std::string &  type = "text/xsl",
bool  alternate = false 
) [inline]

Definition at line 736 of file xmlstorage.h.

00738      :  _href(href),
00739         _type(type),
00740         _alternate(alternate)
00741     {


Member Function Documentation

bool XMLStorage::StyleSheet::empty (  )  const [inline]

Definition at line 743 of file xmlstorage.h.

00744 {return _href.empty();}

void XMLStorage::StyleSheet::print ( std::ostream &  out  )  const

Definition at line 780 of file xmlstorage.cpp.

00785 {
00786     out << "<?xml-stylesheet"
00787             " href=\"" << _href << "\""
00788             " type=\"" << _type << "\"";
00789 
00790     if (!_title.empty())
00791         out << " title=\"" << _title << "\"";
00792 
00793     if (!_media.empty())
00794         out << " media=\"" << _media << "\"";
00795 
00796     if (!_charset.empty())
00797         out << " charset=\"" << _charset << "\"";
00798 
00799     if (_alternate)


Member Data Documentation

std::string XMLStorage::StyleSheet::_href

Definition at line 727 of file xmlstorage.h.

std::string XMLStorage::StyleSheet::_type

Definition at line 728 of file xmlstorage.h.

std::string XMLStorage::StyleSheet::_title

Definition at line 729 of file xmlstorage.h.

std::string XMLStorage::StyleSheet::_media

Definition at line 730 of file xmlstorage.h.

std::string XMLStorage::StyleSheet::_charset

Definition at line 731 of file xmlstorage.h.

bool XMLStorage::StyleSheet::_alternate

Definition at line 732 of file xmlstorage.h.


The documentation for this struct was generated from the following files:
Generated on Mon Aug 30 00:05:50 2010 for XMLStorage/C++ by  doxygen 1.5.4