Mixe for Privacy and Anonymity in the Internet
CAFileSystemDirectory.hpp
Go to the documentation of this file.
1
/*
2
Copyright (c) 2000, The JAP-Team
3
All rights reserved.
4
Redistribution and use in source and binary forms, with or without modification,
5
are permitted provided that the following conditions are met:
6
7
- Redistributions of source code must retain the above copyright notice,
8
this list of conditions and the following disclaimer.
9
10
- Redistributions in binary form must reproduce the above copyright notice,
11
this list of conditions and the following disclaimer in the documentation and/or
12
other materials provided with the distribution.
13
14
- Neither the name of the University of Technology Dresden, Germany nor the names of its contributors
15
may be used to endorse or promote products derived from this software without specific
16
prior written permission.
17
18
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS
20
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
22
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
27
*/
28
#pragma once
29
30
class
CAFileSystemDirectory
31
{
32
public
:
33
CAFileSystemDirectory
(
UINT8
* strPath);
34
~CAFileSystemDirectory
();
35
36
SINT32
find
(
UINT8
* strPattern);
37
SINT32
getNextSearchResult
(
UINT8
* strResult,
UINT32
sizeResult);
38
private
:
39
UINT8
*
m_strPath
;
40
#ifdef _WIN32
41
struct
_finddata_t m_finddataFoundFile;
42
intptr_t
m_hSearch
;
43
#else
44
UINT8
*
m_strPattern
;
45
DIR*
m_hSearch
;
46
#endif
47
};
SINT32
signed int SINT32
Definition:
basetypedefs.h:132
UINT8
unsigned char UINT8
Definition:
basetypedefs.h:135
UINT32
unsigned int UINT32
Definition:
basetypedefs.h:131
CAFileSystemDirectory
Definition:
CAFileSystemDirectory.hpp:31
CAFileSystemDirectory::CAFileSystemDirectory
CAFileSystemDirectory(UINT8 *strPath)
Definition:
CAFileSystemDirectory.cpp:31
CAFileSystemDirectory::getNextSearchResult
SINT32 getNextSearchResult(UINT8 *strResult, UINT32 sizeResult)
Definition:
CAFileSystemDirectory.cpp:84
CAFileSystemDirectory::m_hSearch
DIR * m_hSearch
Definition:
CAFileSystemDirectory.hpp:45
CAFileSystemDirectory::~CAFileSystemDirectory
~CAFileSystemDirectory()
Definition:
CAFileSystemDirectory.cpp:43
CAFileSystemDirectory::m_strPath
UINT8 * m_strPath
Definition:
CAFileSystemDirectory.hpp:39
CAFileSystemDirectory::find
SINT32 find(UINT8 *strPattern)
Definition:
CAFileSystemDirectory.cpp:60
CAFileSystemDirectory::m_strPattern
UINT8 * m_strPattern
Definition:
CAFileSystemDirectory.hpp:44
Generated on Sat Jul 22 2023 00:20:07 for Mixe for Privacy and Anonymity in the Internet by
1.9.1