ReactOS  0.4.15-dev-3316-g067ca88
CDirectoryItem Class Reference

#include <CDirectoryList.h>

Public Member Functions

 CDirectoryItem ()
 
 CDirectoryItem (LPCWSTR pszPath)
 
 CDirectoryItem (const CDirectoryItem &item)
 
CDirectoryItemoperator= (const CDirectoryItem &item)
 
 ~CDirectoryItem ()
 
BOOL IsEmpty () const
 
LPCWSTR GetPath () const
 
void SetPath (LPCWSTR pszPath)
 
BOOL EqualPath (LPCWSTR pszPath) const
 

Protected Attributes

LPWSTR m_pszPath
 

Detailed Description

Definition at line 8 of file CDirectoryList.h.

Constructor & Destructor Documentation

◆ CDirectoryItem() [1/3]

CDirectoryItem::CDirectoryItem ( )
inline

Definition at line 11 of file CDirectoryList.h.

11  : m_pszPath(NULL)
12  {
13  }
#define NULL
Definition: types.h:112

◆ CDirectoryItem() [2/3]

CDirectoryItem::CDirectoryItem ( LPCWSTR  pszPath)
inline

Definition at line 15 of file CDirectoryList.h.

16  {
17  m_pszPath = _wcsdup(pszPath);
18  }
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)

◆ CDirectoryItem() [3/3]

CDirectoryItem::CDirectoryItem ( const CDirectoryItem item)
inline

Definition at line 20 of file CDirectoryList.h.

21  : m_pszPath(_wcsdup(item.m_pszPath))
22  {
23  }
static ATOM item
Definition: dde.c:856
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)

◆ ~CDirectoryItem()

CDirectoryItem::~CDirectoryItem ( )
inline

Definition at line 35 of file CDirectoryList.h.

36  {
37  free(m_pszPath);
38  }
#define free
Definition: debug_ros.c:5

Member Function Documentation

◆ EqualPath()

BOOL CDirectoryItem::EqualPath ( LPCWSTR  pszPath) const
inline

Definition at line 56 of file CDirectoryList.h.

57  {
58  return m_pszPath != NULL && lstrcmpiW(m_pszPath, pszPath) == 0;
59  }
int WINAPI lstrcmpiW(LPCWSTR lpString1, LPCWSTR lpString2)
Definition: lstring.c:194
#define NULL
Definition: types.h:112

◆ GetPath()

LPCWSTR CDirectoryItem::GetPath ( ) const
inline

Definition at line 45 of file CDirectoryList.h.

46  {
47  return m_pszPath;
48  }

◆ IsEmpty()

BOOL CDirectoryItem::IsEmpty ( ) const
inline

Definition at line 40 of file CDirectoryList.h.

41  {
42  return m_pszPath == NULL;
43  }
#define NULL
Definition: types.h:112

◆ operator=()

Definition at line 25 of file CDirectoryList.h.

26  {
27  if (this != &item)
28  {
29  free(m_pszPath);
30  m_pszPath = _wcsdup(item.m_pszPath);
31  }
32  return *this;
33  }
#define free
Definition: debug_ros.c:5
static ATOM item
Definition: dde.c:856
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)

◆ SetPath()

void CDirectoryItem::SetPath ( LPCWSTR  pszPath)
inline

Definition at line 50 of file CDirectoryList.h.

51  {
52  free(m_pszPath);
53  m_pszPath = _wcsdup(pszPath);
54  }
#define free
Definition: debug_ros.c:5
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)

Member Data Documentation

◆ m_pszPath

LPWSTR CDirectoryItem::m_pszPath
protected

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