Files
envi-code/SourceCode/Code2026/tg_shs/shs_blklib/XFilePathName.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

45 lines
953 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_)