ReactOS 0.4.16-dev-306-g647d351
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.

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

◆ ~CDirectoryItem()

CDirectoryItem::~CDirectoryItem ( )
inline

Definition at line 35 of file CDirectoryList.h.

36 {
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 str1, LPCWSTR str2)
Definition: locale.c:4262

◆ 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 }

◆ operator=()

CDirectoryItem & CDirectoryItem::operator= ( const CDirectoryItem item)
inline

Definition at line 25 of file CDirectoryList.h.

26 {
27 if (this != &item)
28 {
30 m_pszPath = _wcsdup(item.m_pszPath);
31 }
32 return *this;
33 }

◆ SetPath()

void CDirectoryItem::SetPath ( LPCWSTR  pszPath)
inline

Definition at line 50 of file CDirectoryList.h.

51 {
53 m_pszPath = _wcsdup(pszPath);
54 }

Member Data Documentation

◆ m_pszPath

LPWSTR CDirectoryItem::m_pszPath
protected

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