summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 535612b..328bebe 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -16,6 +16,17 @@
#include <ctype.h>
#include "definition.h"
+#include "doxygen.h"
+
+Definition::Definition(const char *name,const char *b,const char *d)
+{
+ n=name; brief=b; doc=d; sectionList=0;
+}
+
+Definition::~Definition()
+{
+ delete sectionList;
+}
QString Definition::nameToFile(const char *name)
{
@@ -42,3 +53,22 @@ QString Definition::nameToFile(const char *name)
}
return result;
}
+
+void Definition::addSectionsToDefinition(QList<QString> *anchorList)
+{
+ if (!anchorList) return;
+ QString *s=anchorList->first();
+ while (s)
+ {
+ SectionInfo *si=0;
+ if (!s->isEmpty() && (si=sectionDict[*s]))
+ {
+ //printf("Add section `%s' to definition `%s'\n",
+ // si->label.data(),n.data());
+ if (sectionList==0) sectionList = new SectionList;
+ sectionList->append(si);
+ si->definition = this;
+ }
+ s=anchorList->next();
+ }
+}