ReactOS 0.4.15-dev-8408-g466a198
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
 

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}
#define memset(x, y, z)
Definition: compat.h:39
root entry for file system trees
Definition: entries.h:148

◆ ~Root()

Root::~Root ( )

Definition at line 169 of file entries.cpp.

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

Member Function Documentation

◆ read_tree() [1/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 * read_tree(const void *path, SORT_ORDER sortOrder=SORT_NAME, int scan_flags=0)
Definition: entries.cpp:119
SORT_ORDER _sort_order
Definition: entries.h:158

◆ read_tree() [2/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
771
772 if (_entry->_down)
773 _entry->_expanded = true;
774 }
775
776 return entry;
777}
#define NULL
Definition: types.h:112
uint32_t entry
Definition: isohybrid.c:63
base of all file and directory entries
Definition: entries.h:83
bool _expanded
Definition: entries.h:96
Entry * _down
Definition: entries.h:93
void smart_scan(SORT_ORDER sortOrder=SORT_NAME, int scan_flags=0)
Definition: entries.cpp:353

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.


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