Public Member Functions | Public Attributes

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 953 of file xmlstorage.h.


Constructor & Destructor Documentation

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

Definition at line 962 of file xmlstorage.h.

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

Definition at line 964 of file xmlstorage.h.

     :  _href(href),
        _type(type),
        _alternate(alternate)
    {
    }

Member Function Documentation

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

Definition at line 971 of file xmlstorage.h.

References _href.

{return _href.empty();}
void XMLStorage::StyleSheet::print ( std::ostream &  out ) const

Definition at line 863 of file xmlstorage.cpp.

{
    out << "<?xml-stylesheet"
            " href=\"" << _href << "\""
            " type=\"" << _type << "\"";

    if (!_title.empty())
        out << " title=\"" << _title << "\"";

    if (!_media.empty())
        out << " media=\"" << _media << "\"";

    if (!_charset.empty())
        out << " charset=\"" << _charset << "\"";

    if (_alternate)
        out << " alternate=\"yes\"";

    out << "?>";
}

Member Data Documentation

Definition at line 960 of file xmlstorage.h.

Definition at line 959 of file xmlstorage.h.

Referenced by XMLStorage::ParseContext::process_next().

Definition at line 955 of file xmlstorage.h.

Referenced by empty().

Definition at line 958 of file xmlstorage.h.

Referenced by XMLStorage::ParseContext::process_next().

Definition at line 957 of file xmlstorage.h.

Referenced by XMLStorage::ParseContext::process_next().

Definition at line 956 of file xmlstorage.h.


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