ReactOS  0.4.14-dev-606-g14ebc0b
Root Struct Reference

root entry for file system trees More...

#include <entries.h>

Collaboration diagram for Root:

Public Member Functions

 Root ()
 
 ~Root ()
 
Entryread_tree (LPCTSTR path, int scan_flags=0)
 
Entryread_tree (LPCITEMIDLIST pidl, int scan_flags=0)
 

Public Attributes

Entry_entry
 
TCHAR _path [MAX_PATH]
 
TCHAR _volname [_MAX_FNAME]
 
TCHAR _fs [_MAX_DIR]
 
DWORD _drive_type
 
DWORD _fs_flags
 
SORT_ORDER _sort_order
 
Entry entry
 
WCHAR path [MAX_PATH]
 
WCHAR volname [_MAX_FNAME]
 
WCHAR fs [_MAX_DIR]
 
DWORD drive_type
 
DWORD fs_flags
 

Detailed Description

root entry for file system trees

Definition at line 148 of file entries.h.

Constructor & Destructor Documentation

◆ Root()

Root::Root ( )

Definition at line 164 of file entries.cpp.

165 {
166  memset(this, 0, sizeof(Root));
167 }
root entry for file system trees
Definition: entries.h:148
#define memset(x, y, z)
Definition: compat.h:39

◆ ~Root()

Root::~Root ( )

Definition at line 169 of file entries.cpp.

170 {
171  if (_entry) {
173  delete _entry;
174  }
175 }
Entry * _entry
Definition: entries.h:152
void free_subentries()
Definition: entries.cpp:743

Member Function Documentation

◆ read_tree() [1/2]

Entry * Root::read_tree ( LPCTSTR  path,
int  scan_flags = 0 
)

Definition at line 761 of file entries.cpp.

762 {
763  Entry* entry;
764 
765  if (path && *path)
767  else {
769 
770  _entry->smart_scan();
771 
772  if (_entry->_down)
773  _entry->_expanded = true;
774  }
775 
776  return entry;
777 }
Entry * _entry
Definition: entries.h:152
bool _expanded
Definition: entries.h:96
SORT_ORDER _sort_order
Definition: entries.h:158
smooth NULL
Definition: ftsmooth.c:416
Entry entry
Definition: winefile.c:89
void smart_scan(SORT_ORDER sortOrder=SORT_NAME, int scan_flags=0)
Definition: entries.cpp:353
Entry * read_tree(const void *path, SORT_ORDER sortOrder=SORT_NAME, int scan_flags=0)
Definition: entries.cpp:119
Entry * _down
Definition: entries.h:93
base of all file and directory entries
Definition: entries.h:82

◆ read_tree() [2/2]

Entry * Root::read_tree ( LPCITEMIDLIST  pidl,
int  scan_flags = 0 
)

Definition at line 780 of file entries.cpp.

781 {
782  return _entry->read_tree(pidl, _sort_order);
783 }
Entry * _entry
Definition: entries.h:152
SORT_ORDER _sort_order
Definition: entries.h:158
Entry * read_tree(const void *path, SORT_ORDER sortOrder=SORT_NAME, int scan_flags=0)
Definition: entries.cpp:119

Member Data Documentation

◆ _drive_type

DWORD Root::_drive_type

Definition at line 156 of file entries.h.

◆ _entry

Entry* Root::_entry

Definition at line 152 of file entries.h.

Referenced by read_tree(), and ~Root().

◆ _fs

TCHAR Root::_fs[_MAX_DIR]

Definition at line 155 of file entries.h.

Referenced by MDIMainFrame::activate_child_window().

◆ _fs_flags

DWORD Root::_fs_flags

Definition at line 157 of file entries.h.

◆ _path

TCHAR Root::_path[MAX_PATH]

Definition at line 153 of file entries.h.

◆ _sort_order

SORT_ORDER Root::_sort_order

Definition at line 158 of file entries.h.

Referenced by read_tree().

◆ _volname

TCHAR Root::_volname[_MAX_FNAME]

Definition at line 154 of file entries.h.

◆ drive_type

DWORD Root::drive_type

Definition at line 93 of file winefile.c.

◆ entry

Entry Root::entry

Definition at line 89 of file winefile.c.

Referenced by read_tree().

◆ fs

WCHAR Root::fs[_MAX_DIR]

Definition at line 92 of file winefile.c.

◆ fs_flags

DWORD Root::fs_flags

Definition at line 94 of file winefile.c.

◆ path

WCHAR Root::path[MAX_PATH]

Definition at line 90 of file winefile.c.

◆ volname

WCHAR Root::volname[_MAX_FNAME]

Definition at line 91 of file winefile.c.


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