/usr/include/cgicc/HTMLAtomicElement.h is in libcgicc5-dev 3.2.9-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | /* -*-mode:c++; c-file-style: "gnu";-*- */
/*
* $Id: HTMLAtomicElement.h,v 1.7 2007/07/02 18:48:18 sebdiaz Exp $
*
* Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
* 2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
* Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*/
#ifndef _HTMLATOMICELEMENT_H_
#define _HTMLATOMICELEMENT_H_ 1
/*! \file HTMLAtomicElement.h
* \brief Template class for concrete atomic HTMLElement subclasses
*
*/
#include <new>
#include "cgicc/HTMLElement.h"
namespace cgicc {
// ============================================================
// Template for concrete atomic HTML element classes
// ============================================================
/*! \class HTMLAtomicElement HTMLAtomicElement.h cgicc/HTMLAtomicElement.h
* \brief Template for concrete atomic HTMLElement subclasses
*
* An atomic HTML element is an element in which the opening and closing
* tags are combined. For example, in the HTML code
\verbatim
<meta link="made" href="mailto:sbooth@gnu.org" />
\endverbatim
* The \c meta tag is an atomic HTML element because the opening and closing
* tags appear together.
* \sa HTMLElement
* \sa HTMLBooleanElement
*/
template<class Tag>
class HTMLAtomicElement : public HTMLElement
{
public:
// ============================================================
/*! \name Constructors and Destructor */
//@{
/*!
* \brief Create a new empty atomic element.
*
*/
HTMLAtomicElement()
: HTMLElement(0, 0, 0, eAtomic)
{}
/*!
* \brief Create a new element, specifying the HTMLAttributes.
*
* \param attributes The HTMLAttributes contained within the element.
*/
HTMLAtomicElement(const HTMLAttributeList& attributes)
: HTMLElement(&attributes, 0, 0, eAtomic)
{}
/*!
* \brief Destructor
*
*/
virtual ~HTMLAtomicElement()
{}
//@}
/*!
* \brief Clone this element
*
* \return A newly-allocated copy of this element
*/
virtual inline HTMLElement*
clone() const
{ return new HTMLAtomicElement<Tag>(*this); }
/*!
* \brief Get the name of this element.
*
* For example, \c meta.
* \return The name of this element
*/
virtual inline const char*
getName() const
{ return Tag::getName(); }
};
} // namespace cgicc
#endif /* ! _HTMLATOMICELEMENT_H_ */
|