Windows C++ Library
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Friends
CPath Class Reference

#include <Path.hpp>

Inheritance diagram for CPath:
CString

List of all members.

Public Types

enum  DlgMode { OpenFile, SaveFile, SelectFile }

Public Member Functions

 CPath ()
 CPath (const tchar *pszPath)
 CPath (const CString &strSrc)
 CPath (const tstring &source)
 CPath (const tchar *pszDir, const tchar *pszFile)
bool Exists () const
bool ReadOnly () const
bool IsFolder () const
DWORD Attributes () const
 Get the attributes for the path.
void SetAttributes (DWORD attributes)
 Set the attributes for the path.
CString Drive () const
CPath Root () const
CPath Directory () const
CString FileName () const
CString FileTitle () const
CString FileExt () const
bool Select (const CWnd &rParent, DlgMode eMode, const tchar *pszExts, const tchar *pszDefExt, const tchar *pszDir=NULL)
bool SelectDir (const CWnd &rParent, const tchar *pszTitle, const tchar *pszDir=NULL)
bool SelectComputer (const CWnd &rParent, const tchar *pszTitle)
void ExpandVars ()
tchar & operator[] (size_t nChar)
CPathoperator= (const tchar *pszSrc)
CPathoperator= (const CString &strSrc)
CPathoperator= (const tstring &source)
void operator/= (const tchar *pszPath)
 operator const tchar * () const

Static Public Member Functions

static bool SelectFiles (const CWnd &rParent, const tchar *pszExts, const tchar *pszDefExt, CStrArray &astrFiles)
static bool SelectFiles (const CWnd &rParent, const tchar *pszExts, const tchar *pszDefExt, const tchar *pszDir, CStrArray &astrFiles)
static CPath CurrentDir ()
static CPath ApplicationDir ()
static CPath ModuleDir ()
static CPath WindowsDir ()
static CPath SystemDir ()
static CPath TempDir ()
static CPath SpecialDir (int nCSIDL)
static CPath ModuleDir (HMODULE hModule)
static CPath Application ()
static CPath Module ()
static CPath Module (HMODULE hModule)

Static Protected Member Functions

static void Normalise (tchar *pszPath)
static int CALLBACK BrowseCallbackProc (HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData)

Friends

CPath Append (const CPath &strLHS, const tchar *pszRHS)
bool Equals (const CPath &strLHS, const tchar *pszRHS)

Member Enumeration Documentation

Enumerator:
OpenFile 
SaveFile 
SelectFile 

Constructor & Destructor Documentation

CPath::CPath ( const tchar *  pszPath)
CPath::CPath ( const CString strSrc)
CPath::CPath ( const tstring &  source)
CPath::CPath ( const tchar *  pszDir,
const tchar *  pszFile 
)

Member Function Documentation

bool CPath::Exists ( ) const
bool CPath::ReadOnly ( ) const
bool CPath::IsFolder ( ) const
DWORD CPath::Attributes ( ) const

Get the attributes for the path.

void CPath::SetAttributes ( DWORD  attributes)

Set the attributes for the path.

CString CPath::Drive ( ) const
CPath CPath::Root ( ) const
bool CPath::Select ( const CWnd rParent,
DlgMode  eMode,
const tchar *  pszExts,
const tchar *  pszDefExt,
const tchar *  pszDir = NULL 
)
bool CPath::SelectDir ( const CWnd rParent,
const tchar *  pszTitle,
const tchar *  pszDir = NULL 
)
bool CPath::SelectComputer ( const CWnd rParent,
const tchar *  pszTitle 
)
bool CPath::SelectFiles ( const CWnd rParent,
const tchar *  pszExts,
const tchar *  pszDefExt,
CStrArray astrFiles 
) [static]
bool CPath::SelectFiles ( const CWnd rParent,
const tchar *  pszExts,
const tchar *  pszDefExt,
const tchar *  pszDir,
CStrArray astrFiles 
) [static]
CPath CPath::CurrentDir ( ) [static]
CPath CPath::ModuleDir ( ) [static]
CPath CPath::WindowsDir ( ) [static]
CPath CPath::SystemDir ( ) [static]
CPath CPath::TempDir ( ) [static]
CPath CPath::SpecialDir ( int  nCSIDL) [static]
CPath CPath::ModuleDir ( HMODULE  hModule) [static]
CPath CPath::Application ( ) [static]
CPath CPath::Module ( ) [static]
CPath CPath::Module ( HMODULE  hModule) [static]
tchar & CPath::operator[] ( size_t  nChar) [inline]

Reimplemented from CString.

CPath & CPath::operator= ( const tchar *  pszSrc) [inline]

Reimplemented from CString.

CPath & CPath::operator= ( const CString strSrc) [inline]

Reimplemented from CString.

CPath & CPath::operator= ( const tstring &  source) [inline]

Reimplemented from CString.

void CPath::operator/= ( const tchar *  pszPath)
CPath::operator const tchar * ( ) const [inline]

Reimplemented from CString.

void CPath::Normalise ( tchar *  pszPath) [static, protected]
int CALLBACK CPath::BrowseCallbackProc ( HWND  hWnd,
UINT  uMsg,
LPARAM  lParam,
LPARAM  lpData 
) [static, protected]

Friends And Related Function Documentation

CPath Append ( const CPath strLHS,
const tchar *  pszRHS 
) [friend]
bool Equals ( const CPath strLHS,
const tchar *  pszRHS 
) [friend]

The documentation for this class was generated from the following files: