diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-05-12 17:38:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-05-12 17:38:45 (GMT) |
commit | bcf2f33d5be8c6de4de5bb7cbe8ea8b90f19cf88 (patch) | |
tree | 2f87712e9d2e8da7138ca908bf03c9937ba71bdb /addon/doxmlparser/src/memberhandler.cpp | |
parent | 758291b1be0c43c13088389b0cfbb560efe00c1f (diff) | |
download | Doxygen-bcf2f33d5be8c6de4de5bb7cbe8ea8b90f19cf88.zip Doxygen-bcf2f33d5be8c6de4de5bb7cbe8ea8b90f19cf88.tar.gz Doxygen-bcf2f33d5be8c6de4de5bb7cbe8ea8b90f19cf88.tar.bz2 |
Release-1.2.15-20020512
Diffstat (limited to 'addon/doxmlparser/src/memberhandler.cpp')
-rw-r--r-- | addon/doxmlparser/src/memberhandler.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/addon/doxmlparser/src/memberhandler.cpp b/addon/doxmlparser/src/memberhandler.cpp index 31b5d84..018dfbd 100644 --- a/addon/doxmlparser/src/memberhandler.cpp +++ b/addon/doxmlparser/src/memberhandler.cpp @@ -159,6 +159,9 @@ MemberHandler::MemberHandler(IBaseHandler *parent) addStartHandler("location",this,&MemberHandler::startLocation); addEndHandler("location"); + addStartHandler("templateparamlist",this,&MemberHandler::startTemplateParamList); + addEndHandler("templateparamlist",this,&MemberHandler::endTemplateParamList); + m_type.setAutoDelete(TRUE); m_initializer.setAutoDelete(TRUE); m_exception.setAutoDelete(TRUE); @@ -172,6 +175,8 @@ MemberHandler::MemberHandler(IBaseHandler *parent) m_defLine=0; m_bodyStart=0; m_bodyEnd=0; + m_insideTemplateParamList=FALSE; + m_hasTemplateParamList=FALSE; } MemberHandler::~MemberHandler() @@ -313,7 +318,14 @@ void MemberHandler::startParam(const QXmlAttributes& attrib) { ParamHandler *paramHandler = new ParamHandler(this); paramHandler->startParam(attrib); - m_params.append(paramHandler); + if (m_insideTemplateParamList) + { + m_templateParams.append(paramHandler); + } + else + { + m_params.append(paramHandler); + } } void MemberHandler::startEnumValue(const QXmlAttributes& attrib) @@ -323,6 +335,17 @@ void MemberHandler::startEnumValue(const QXmlAttributes& attrib) m_enumValues.append(evh); } +void MemberHandler::startTemplateParamList(const QXmlAttributes&) +{ + m_insideTemplateParamList = TRUE; + m_hasTemplateParamList = TRUE; +} + +void MemberHandler::endTemplateParamList() +{ + m_insideTemplateParamList = FALSE; +} + void MemberHandler::initialize(MainHandler *mh) { { |