45 lines
950 B
C++
45 lines
950 B
C++
// XFilePathName.h: interface for the XFilePathName class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_XFILEPATHNAME_H__77D80348_454C_11D3_A608_0000E83E7090__INCLUDED_)
|
|
#define AFX_XFILEPATHNAME_H__77D80348_454C_11D3_A608_0000E83E7090__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class XFilePathName
|
|
{
|
|
public:
|
|
XFilePathName();
|
|
XFilePathName(LPCTSTR lpStr);
|
|
~XFilePathName();
|
|
|
|
BOOL setPathName(LPCTSTR lpStr);
|
|
private:
|
|
CString m_sPathName;
|
|
CString m_sDriver,m_sDir,m_sFileName,m_sFileExt;
|
|
|
|
private:
|
|
void splitMe();
|
|
public:
|
|
CString getDriver(){
|
|
return m_sDriver;
|
|
};
|
|
CString getDir(){
|
|
return m_sDir;
|
|
};
|
|
CString getFileName(){
|
|
return m_sFileName;
|
|
};
|
|
CString getFileExt(){
|
|
return m_sFileExt;
|
|
};
|
|
operator const TCHAR*(){
|
|
return (const TCHAR *)m_sPathName;
|
|
};
|
|
};
|
|
|
|
#endif // !defined(AFX_XFILEPATHNAME_H__77D80348_454C_11D3_A608_0000E83E7090__INCLUDED_)
|