// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-# pragma implementation "srcparser.h"
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#include "wx/wx.h"
#endif
-#ifndef __DARWIN__
-# include <malloc.h>
-#endif
#include <stdio.h>
#include "srcparser.h"
spContext::spContext()
- : mpParent ( NULL ),
+ : m_pParent ( NULL ),
mpFirstOccurence( NULL ),
mAlreadySorted ( false ),
return mVirtualContextHasChildren;
}
-string spContext::GetVirtualContextBody()
+wxString spContext::GetVirtualContextBody()
{
wxASSERT( mIsVirtualContext );
return mVirtualContextBody;
}
-string spContext::GetFooterOfVirtualContextBody()
+wxString spContext::GetFooterOfVirtualContextBody()
{
wxASSERT( mIsVirtualContext );
}
-void spContext::SetVirtualContextBody( const string& body,
- bool hasChildren,
- const string& footer )
+void spContext::SetVirtualContextBody( const wxString& body,
+ bool hasChildren,
+ const wxString& footer )
{
mVirtualContextHasChildren = hasChildren;
{
mMembers.push_back( pMember );
- pMember->mpParent = this;
+ pMember->m_pParent = this;
}
void spContext::AddComment( spComment* pComment )
return mMembers;
}
-spContext* spContext::FindContext( const string& identifier,
+spContext* spContext::FindContext( const wxString& identifier,
int contextType,
bool searchSubMembers
)
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");
spContext* spContext::GetOutterContext()
{
- return mpParent;
+ return m_pParent;
}
bool spContext::HasOutterContext()
{
- return ( mpParent != 0 );
+ return ( m_pParent != 0 );
}
bool spContext::IsInFile()
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 *****/
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());
}
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__