diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-05-22 18:35:23 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-05-22 18:35:23 (GMT) |
commit | 745526b6e9683de926af27c4313574a514a3d7c3 (patch) | |
tree | 699a18c9a8c098fc845ba00c7eb093c73b497c5c /src/namespacedef.cpp | |
parent | 4f5775494986411db398172e98380acb76d5e3e6 (diff) | |
download | Doxygen-745526b6e9683de926af27c4313574a514a3d7c3.zip Doxygen-745526b6e9683de926af27c4313574a514a3d7c3.tar.gz Doxygen-745526b6e9683de926af27c4313574a514a3d7c3.tar.bz2 |
Release-1.1.3-20000522
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index 0507f2a..7c145ec 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -27,7 +27,9 @@ #include "doxygen.h" #include "message.h" -NamespaceDef::NamespaceDef(const char *name,const char *ref) : Definition(name) +NamespaceDef::NamespaceDef(const char *df,int dl, + const char *name,const char *ref) : + Definition(df,dl,name) { fileName="namespace_"+nameToFile(name); classList = new ClassList; @@ -38,6 +40,8 @@ NamespaceDef::NamespaceDef(const char *name,const char *ref) : Definition(name) memberGroupList = new MemberGroupList; memberGroupList->setAutoDelete(TRUE); memberGroupDict = new MemberGroupDict(1009); + defFileName = df; + defLine = dl; } NamespaceDef::~NamespaceDef() @@ -49,6 +53,15 @@ NamespaceDef::~NamespaceDef() delete memberGroupDict; } +void NamespaceDef::distributeMemberGroupDocumentation() +{ + MemberGroupListIterator mgli(*memberGroupList); + MemberGroup *mg; + for (;(mg=mgli.current());++mgli) + { + mg->distributeMemberGroupDocumentation(); + } +} void NamespaceDef::insertUsedFile(const char *f) { if (files.find(f)==-1) files.append(f); @@ -130,7 +143,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol) OutputList briefOutput(&ol); if (!briefDescription().isEmpty()) { - parseDoc(briefOutput,name(),0,briefDescription()); + parseDoc(briefOutput,defFileName,defLine,name(),0,briefDescription()); ol+=briefOutput; ol.writeString(" \n"); ol.pushGeneratorState(); @@ -183,7 +196,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol) } if (!documentation().isEmpty()) { - parseDoc(ol,name(),0,documentation()+"\n"); + parseDoc(ol,defFileName,defLine,name(),0,documentation()+"\n"); ol.newParagraph(); } ol.endTextBlock(); |