BaseObject.cpp 393 B

1234567891011121314151617181920212223242526
  1. // BaseObject.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "BaseObject.h"
  5. // CBaseObject
  6. IMPLEMENT_DYNAMIC(CBaseObject, CObject)
  7. CBaseObject::CBaseObject(const CString& path)
  8. : m_path(path)
  9. {
  10. }
  11. CBaseObject::~CBaseObject()
  12. {
  13. }
  14. // CBaseObject member functions
  15. CString CBaseObject::GetName()
  16. {
  17. int findIndex = m_path.ReverseFind(_T('\\'));
  18. return m_path.Mid(findIndex+1);
  19. }