This file is indexed.

/usr/include/cgicc/HTMLBooleanElement.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* -*-mode:c++; c-file-style: "gnu";-*- */
/*
 *  $Id: HTMLBooleanElement.h,v 1.8 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 _HTMLBOOLEANELEMENT_H_
#define _HTMLBOOLEANELEMENT_H_ 1

/*! \file HTMLBooleanElement.h
 * \brief Template class for concrete boolean HTMLElement subclasses
 *
 */

#include <new>

#include "cgicc/HTMLElement.h"

namespace cgicc {

  // ============================================================
  // Template for concrete boolean HTML element classes
  // ============================================================
  
  /*! \class HTMLBooleanElement HTMLBooleanElement.h cgicc/HTMLBooleanElement.h
   * \brief Template for concrete boolean HTMLElement subclasses
   *
   * A boolean HTML element is an element having a boolean (open or closed)
   * state.  Most commonly used HTML tags are boolean elements:
   \verbatim
   <a href="http://www.gnu.org">GNU Project</a>
   \endverbatim
   * The \c a element is boolean, since it is either open or closed.  Boolean
   * elements are often additive:
   \verbatim
   <b>bold text<i>bold italic text</i></b>
   \endverbatim
   * Note than under the XHTML 1.0 standard, elements may not overlap; ie,
   * in the example above, it would be illegal to close the \c b tag before
   * the \c i tag.
   * \sa HTMLElement
   * \sa HTMLAtomicElement
   */
  template<class Tag>
  class HTMLBooleanElement : public HTMLElement 
  {
  public:
    
    // ============================================================
    
    /*! \name Constructors and Destructor */
    //@{
    
    /*! 
     * \brief Create a new empty boolean element. 
     *
     */
    HTMLBooleanElement()
      : HTMLElement(0, 0, 0, eBoolean)
    {}
    
    /*!
     * \brief Create a new element, specifying the enclosed text.
     * \param text The text within the element.
     */
    HTMLBooleanElement(const std::string& text)
      : HTMLElement(0, 0, &text, eBoolean)
    {}
    
    /*!
     * \brief Create a new element, specifying the HTMLAttribute objects.
     * \param attributes The HTMLAttributes contained within the element.
     */
    HTMLBooleanElement(const HTMLAttributeList& attributes)
      : HTMLElement(&attributes, 0, 0, eBoolean)
    {}
    
    /*!
     * \brief Create a new element, specifying an embedded HTMLElement.
     * \param embedded The HTMLElement embedded inside the element.
     */
    HTMLBooleanElement(const HTMLElement& embedded)
      : HTMLElement(0, &embedded, 0, eBoolean)
    {}
    
    /*!
     * \brief Create a new element, specifying the enclosed text and 
     * HTMLAttribute objects.
     * \param attributes The HTMLAttributes contained within the element.
     * \param text The text within the element.
     */
    HTMLBooleanElement(const std::string& text, 
		       const HTMLAttributeList& attributes)
      : HTMLElement(&attributes, 0, &text, eBoolean)
    {}
    
    /*!
     * \brief Create a new element, specifying the HTMLAttributes and embedded 
     * HTMLElement.
     * \param attributes The HTMLAttributes contained within the element.
     * \param embed The HTMLElement embedded inside the element.
     */
    HTMLBooleanElement(const HTMLAttributeList& attributes, 
		       const HTMLElement& embed)
      : HTMLElement(&attributes, &embed, 0, eBoolean)
    {}
    
    /*! 
     * \brief Destructor 
     *
     */
    virtual ~HTMLBooleanElement()
    {}
    //@}
    
    // ============================================================
    
    /*!
     * \brief Clone this element 
     * \return A newly-allocated copy of this element
     */  
    virtual inline HTMLElement* 
    clone() 					const
    { return new HTMLBooleanElement<Tag>(*this); }
    
    // ============================================================
    
    /*!
     * \brief Get the name of this element.  For example, "strong"
     * \return The name of this element
     */
    virtual inline const char*
    getName() 					const
    { return Tag::getName(); }
    
    // ============================================================
    
    /*! \name State Management */
    //@{
    
    /*!
     * \brief Swap the state of this boolean element
     *
     * A state of \c true indicates the element is currently open
     */
    virtual inline void 
    swapState() 					const
    { sState = ! sState; }
    
    /*! 
     * \brief Get the state of this boolean element 
     * \return \c true if this element is open, \c false otherwise
     */
    virtual inline bool 
    getState() 					const 
    { return sState; }
    
    /*! 
     * \brief Reset the state of this boolean element to closed
     *
     */
    static inline void 
    reset()
    { sState = false; }
    //@}
    
  private:
    static bool sState;
  };
  
  template<class Tag>
  bool cgicc::HTMLBooleanElement<Tag>::sState = false;
  
} // namespace cgicc

#endif /* ! _HTMLBOOLEANELEMENT_H_ */