diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 1999-12-15 19:26:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 1999-12-15 19:26:45 (GMT) |
commit | e04496cb647291b94c0b27b8babb127a79803579 (patch) | |
tree | bec2e27efcff1ecb747c25b00bb9fea1e068d151 /src/memberdef.cpp | |
parent | 322885a8700a209812bf5a94205260c9bef6ac1f (diff) | |
download | Doxygen-e04496cb647291b94c0b27b8babb127a79803579.zip Doxygen-e04496cb647291b94c0b27b8babb127a79803579.tar.gz Doxygen-e04496cb647291b94c0b27b8babb127a79803579.tar.bz2 |
mods for doxygen-0.49-990522
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index f96a2d6..bd440c3 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -20,6 +20,7 @@ #include "membername.h" #include "doxygen.h" #include "util.h" +#include "message.h" /*! Creates a new member definition. * Members can be function/variables/enums/etc. inside a class or inside a @@ -159,7 +160,7 @@ bool MemberDef::hasExamples() return exampleList->count()>0; } - +#if 0 void MemberDef::writeExample(OutputList &ol) { Example *e=exampleList->first(); @@ -177,4 +178,27 @@ void MemberDef::writeExample(OutputList &ol) } ol.writeString("."); } +#endif +QString MemberDef::getOutputFileBase() const +{ + if (classDef) + { + return classDef->getOutputFileBase(); + } + else if (fileDef) + { + return fileDef->getOutputFileBase(); + } + else if (fileDec) + { + return fileDec->getOutputFileBase(); + } + else if (nspace) + { + return nspace->getOutputFileBase(); + } + warn("Warning: Internal inconsistency: member %s does not belong to any\n" + " container!\n",name().data()); + return "dummy"; +} |