The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CDirectorySearch Class Reference

Inheritance diagram for CDirectorySearch:
Collaboration diagram for CDirectorySearch:

List of all members.


Detailed Description

A simple class that wraps the FindFirstFile() /FindNextFile() API.


Public Member Functions

 CDirectorySearch (const Core::_tstring &filename)
 Construct a directory search on the supplied filename.
 ~CDirectorySearch ()
bool HasFile () const
 True if the search contains another file.
bool NextFile ()
 True if the search contains another file and moves to the next file.
ULONGLONG GetFileSize () const
 Access the file size.
Core::_tstring GetFileName () const
 Access the file name.
DWORD GetAttributes () const
 Access the file attributes.


Constructor & Destructor Documentation

CDirectorySearch ( const Core::_tstring filename  )  [explicit]

Construct a directory search on the supplied filename.

~CDirectorySearch (  ) 


Member Function Documentation

bool HasFile (  )  const

True if the search contains another file.

bool NextFile (  ) 

True if the search contains another file and moves to the next file.

ULONGLONG GetFileSize (  )  const

Access the file size.

_tstring GetFileName (  )  const

Access the file name.

DWORD GetAttributes (  )  const

Access the file attributes.


Generated on Sun Sep 12 19:11:31 2021 for The Server Framework - v7.4 by doxygen 1.5.3