Doxygen
Loading...
Searching...
No Matches
qhp.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Copyright (C) 1997-2026 by Dimitri van Heesch.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation under the terms of the GNU General Public License is hereby
7 * granted. No representations are made about the suitability of this software
8 * for any purpose. It is provided "as is" without express or implied warranty.
9 * See the GNU General Public License for more details.
10 *
11 * Documents produced by Doxygen are derivative works derived from the
12 * input used in their production; they are not affected by this license.
13 *
14 */
15
16#ifndef QHP_H
17#define QHP_H
18
19#include <memory>
20
21#include "construct.h"
22#include "dstring.h"
23#include "indexlist.h"
24
25class Definition;
26class MemberDef;
27
28class Qhp final : public IndexIntf
29{
30 public:
31 Qhp();
34
35 void initialize();
36 void finalize();
37 void incContentsDepth();
38 void decContentsDepth();
39 void addContentsItem(bool isDir, const DString & name, const DString & ref,
40 const DString & file, const DString & anchor,
41 bool separateIndex, bool addToNavIndex,
42 const Definition *def, const DString &);
43 void addIndexItem(const Definition *context, const MemberDef *md,
44 const DString &sectionAnchor, const DString &title);
45 void addIndexFile(const DString & name);
46 void addImageFile(const DString & name);
47 void addStyleSheetFile(const DString & name);
48
49 static inline const DString qhpFileName = "index.qhp";
50 static DString getQchFileName();
51
52 private:
53 void addFile(const DString &);
54 class Private;
55 std::unique_ptr<Private> p;
56};
57
58#endif // QHP_H
59
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:88
The common base class of all entity definitions found in the sources.
Definition definition.h:77
Abstract interface for index generators.
Definition indexlist.h:34
A model of a class/file/namespace member symbol.
Definition memberdef.h:45
Qhp()
Definition qhp.cpp:197
void addIndexFile(const DString &name)
Definition qhp.cpp:412
void incContentsDepth()
Definition qhp.cpp:305
void decContentsDepth()
Definition qhp.cpp:310
void initialize()
Definition qhp.cpp:200
void finalize()
Definition qhp.cpp:273
std::unique_ptr< Private > p
Definition qhp.h:55
~Qhp()
static DString getQchFileName()
Definition qhp.cpp:427
void addContentsItem(bool isDir, const DString &name, const DString &ref, const DString &file, const DString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def, const DString &)
Definition qhp.cpp:315
void addIndexItem(const Definition *context, const MemberDef *md, const DString &sectionAnchor, const DString &title)
Definition qhp.cpp:368
void addStyleSheetFile(const DString &name)
Definition qhp.cpp:422
void addFile(const DString &)
Definition qhp.cpp:407
static const DString qhpFileName
Definition qhp.h:49
void addImageFile(const DString &name)
Definition qhp.cpp:417
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37