Doxygen
Loading...
Searching...
No Matches
docsets.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Copyright (C) 1997-2021 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 DOCSETS_H
17#define DOCSETS_H
18
19#include <memory>
20
21#include "indexlist.h"
22#include "qcstring.h"
23#include "construct.h"
24
25class TextStream;
26
27class Definition;
28class MemberDef;
29
30/** A class that generates docset files.
31 *
32 * These files can be used to create context help
33 * for use within Apple's Xcode 3.0 development environment
34 */
35class DocSets : public IndexIntf
36{
37 public:
38 DocSets();
41
42 void initialize();
43 void finalize();
44 void incContentsDepth();
45 void decContentsDepth();
46 void addContentsItem(bool isDir,
47 const QCString &name,
48 const QCString &ref,
49 const QCString &file,
50 const QCString &anchor,
51 bool separateIndex,
52 bool addToNavIndex,
53 const Definition *def
54 );
55 void addIndexItem(const Definition *context,const MemberDef *md,
56 const QCString &sectionAnchor,const QCString &title);
57 void addIndexFile(const QCString &name);
58 void addImageFile(const QCString &) {}
59 void addStyleSheetFile(const QCString &) {}
60
61 private:
62 void writeToken(TextStream &t, const Definition *d,
63 const QCString &type, const QCString &lang,
64 const QCString &scope=QCString(), const QCString &anchor=QCString(),
65 const QCString &decl=QCString());
66 struct Private;
67 std::unique_ptr<Private> p;
68
69};
70
71#endif /* DOCSETS_H */
72
The common base class of all entity definitions found in the sources.
Definition definition.h:76
void writeToken(TextStream &t, const Definition *d, const QCString &type, const QCString &lang, const QCString &scope=QCString(), const QCString &anchor=QCString(), const QCString &decl=QCString())
Definition docsets.cpp:465
void decContentsDepth()
Definition docsets.cpp:214
void incContentsDepth()
Definition docsets.cpp:207
void addIndexItem(const Definition *context, const MemberDef *md, const QCString &sectionAnchor, const QCString &title)
Definition docsets.cpp:272
std::unique_ptr< Private > p
Definition docsets.h:67
void initialize()
Definition docsets.cpp:47
void finalize()
Definition docsets.cpp:181
void addContentsItem(bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def)
Definition docsets.cpp:225
DocSets()
Definition docsets.cpp:44
void addIndexFile(const QCString &name)
Definition docsets.cpp:510
void addImageFile(const QCString &)
Definition docsets.h:58
void addStyleSheetFile(const QCString &)
Definition docsets.h:59
Abstract interface for index generators.
Definition indexlist.h:33
A model of a class/file/namespace member symbol.
Definition memberdef.h:48
This is an alternative implementation of QCString.
Definition qcstring.h:101
Text streaming class that buffers data.
Definition textstream.h:36
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37
@ Private
Definition types.h:26