X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33882d153df0e433c9b909fe7929ab61cb426c50..24dfe917094d41d8938cc44e9ba457f7bd797687:/utils/HelpGen/src/srcparser.cpp diff --git a/utils/HelpGen/src/srcparser.cpp b/utils/HelpGen/src/srcparser.cpp index 21e6ebd888..cbcc869658 100644 --- a/utils/HelpGen/src/srcparser.cpp +++ b/utils/HelpGen/src/srcparser.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -# pragma implementation "srcparser.h" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -24,9 +20,6 @@ #include "wx/wx.h" #endif -#ifndef __DARWIN__ -# include -#endif #include #include "srcparser.h" @@ -123,7 +116,7 @@ wxString spComment::GetText() const spContext::spContext() - : mpParent ( NULL ), + : m_pParent ( NULL ), mpFirstOccurence( NULL ), mAlreadySorted ( false ), @@ -231,14 +224,14 @@ bool spContext::VitualContextHasChildren() return mVirtualContextHasChildren; } -string spContext::GetVirtualContextBody() +wxString spContext::GetVirtualContextBody() { wxASSERT( mIsVirtualContext ); return mVirtualContextBody; } -string spContext::GetFooterOfVirtualContextBody() +wxString spContext::GetFooterOfVirtualContextBody() { wxASSERT( mIsVirtualContext ); @@ -246,9 +239,9 @@ string spContext::GetFooterOfVirtualContextBody() } -void spContext::SetVirtualContextBody( const string& body, - bool hasChildren, - const string& footer ) +void spContext::SetVirtualContextBody( const wxString& body, + bool hasChildren, + const wxString& footer ) { mVirtualContextHasChildren = hasChildren; @@ -297,7 +290,7 @@ void spContext::AddMember( spContext* pMember ) { mMembers.push_back( pMember ); - pMember->mpParent = this; + pMember->m_pParent = this; } void spContext::AddComment( spComment* pComment ) @@ -310,7 +303,7 @@ MMemberListT& spContext::GetMembers() return mMembers; } -spContext* spContext::FindContext( const string& identifier, +spContext* spContext::FindContext( const wxString& identifier, int contextType, bool searchSubMembers ) @@ -339,8 +332,8 @@ spContext* spContext::FindContext( const string& identifier, void spContext::RemoveThisContext() { - if ( mpParent ) - mpParent->RemoveChild( this ); + if ( m_pParent ) + m_pParent->RemoveChild( this ); else // context should have a parent wxFAIL_MSG("Context should have a parent"); @@ -348,12 +341,12 @@ void spContext::RemoveThisContext() spContext* spContext::GetOutterContext() { - return mpParent; + return m_pParent; } bool spContext::HasOutterContext() { - return ( mpParent != 0 ); + return ( m_pParent != 0 ); } bool spContext::IsInFile() @@ -379,25 +372,25 @@ bool spContext::IsInOperation() spClass& spContext::GetClass() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_CLASS ); - return *((spClass*)mpParent ); + return *((spClass*)m_pParent ); } spFile& spContext::GetFile() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_FILE ); - return *((spFile*)mpParent ); + return *((spFile*)m_pParent ); } spNameSpace& spContext::GetNameSpace() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_NAMESPACE ); - return *((spNameSpace*)mpParent ); + return *((spNameSpace*)m_pParent ); } spOperation& spContext::GetOperation() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_OPERATION ); - return *((spOperation*)mpParent ); + return *((spOperation*)m_pParent ); } /***** Implementation for class spClass *****/ @@ -606,10 +599,14 @@ void spOperation::DumpThis(const wxString& indent) const protection = "global"; } + wxString constStr,virtualStr; + if(mIsConstant) constStr = _T("const "); + if(mIsVirtual) virtualStr = _T("virtual "); + wxLogDebug("%s%s%s%s function named '%s::%s' of type '%s'", indent.c_str(), - mIsConstant ? "const " : "", - mIsVirtual ? "virtual " : "", + constStr.c_str(), + virtualStr.c_str(), protection.c_str(), mScope.c_str(), m_Name.c_str(), m_RetType.c_str()); } @@ -700,7 +697,7 @@ void spTypeDef::DumpThis(const wxString& indent) const void spFile::DumpThis(const wxString& indent) const { wxLogDebug("%sfile '%s'", - indent.c_str(), mFileName.c_str()); + indent.c_str(), m_FileName.c_str()); } #endif // __WXDEBUG__