diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-11-03 18:04:43 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-11-03 18:04:43 (GMT) |
commit | bfaab3acda7ec81a51a45372673f5be07745773b (patch) | |
tree | 3d4fa775ba4ee12135f2ca20f59e2cb07f3efdf1 /addon/doxmlparser/src/loamhandler.cpp | |
parent | d5102e6fcbe7c5dcf5b285d39aaa33b85bf34314 (diff) | |
download | Doxygen-bfaab3acda7ec81a51a45372673f5be07745773b.zip Doxygen-bfaab3acda7ec81a51a45372673f5be07745773b.tar.gz Doxygen-bfaab3acda7ec81a51a45372673f5be07745773b.tar.bz2 |
Release-1.3.4-20031103
Diffstat (limited to 'addon/doxmlparser/src/loamhandler.cpp')
-rw-r--r-- | addon/doxmlparser/src/loamhandler.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/addon/doxmlparser/src/loamhandler.cpp b/addon/doxmlparser/src/loamhandler.cpp index de726c1..a939b7b 100644 --- a/addon/doxmlparser/src/loamhandler.cpp +++ b/addon/doxmlparser/src/loamhandler.cpp @@ -9,6 +9,8 @@ ListOfAllMembersHandler::ListOfAllMembersHandler(IBaseHandler *parent) : m_paren addStartHandler("member",this,&ListOfAllMembersHandler::startMember); addStartHandler("name",this,&ListOfAllMembersHandler::startName); addEndHandler("name",this,&ListOfAllMembersHandler::endName); + addStartHandler("scope",this,&ListOfAllMembersHandler::startScope); + addEndHandler("scope",this,&ListOfAllMembersHandler::endScope); addEndHandler("listofallmembers",this,&ListOfAllMembersHandler::endListOfAllMembers); } @@ -27,7 +29,9 @@ void ListOfAllMembersHandler::startMember(const QXmlAttributes& attrib) { MemberReference *mr = new MemberReference; mr->m_memId = attrib.value("refid"); - // TODO: extract prot, virt, ambiguityscope and scope as well + mr->m_virtualness = attrib.value("virt"); + mr->m_protection = attrib.value("prot"); + mr->m_ambiguityScope = attrib.value("ambiguityscope"); m_members.append(new MemberReference); } @@ -42,6 +46,17 @@ void ListOfAllMembersHandler::endName() m_members.getLast()->m_name = m_curString; } +void ListOfAllMembersHandler::startScope(const QXmlAttributes&) +{ + m_curString=""; +} + +void ListOfAllMembersHandler::endScope() +{ + ASSERT(m_members.getLast()); + m_members.getLast()->m_scope = m_curString; +} + void ListOfAllMembersHandler::startListOfAllMembers(const QXmlAttributes& /*attrib*/) { m_parent->setDelegate(this); |