MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Win32AsyncFile.hpp
1
/*
2
Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
*/
17
18
#ifndef Win32AsyncFile_H
19
#define Win32AsyncFile_H
20
25
#include <kernel_types.h>
26
#include "AsyncFile.hpp"
27
28
class
Win32AsyncFile
:
public
AsyncFile
29
{
30
friend
class
Ndbfs
;
31
public
:
32
Win32AsyncFile
(
SimulatedBlock
& fs);
33
virtual
~
Win32AsyncFile
();
34
35
virtual
int
init();
36
virtual
bool
isOpen();
37
virtual
void
openReq
(
Request
*
request
);
38
virtual
void
closeReq(
Request
*request);
39
virtual
void
syncReq(
Request
*request);
40
virtual
void
removeReq(
Request
*request);
41
virtual
void
appendReq(
Request
*request);
42
virtual
void
rmrfReq(
Request
*request,
const
char
* path,
bool
removePath);
43
44
virtual
int
readBuffer
(
Request
*,
char
*
buf
,
size_t
size
, off_t
offset
);
45
virtual
int
writeBuffer
(
const
char
* buf,
size_t
size, off_t offset);
46
47
private
:
48
int
extendfile(
Request
* request);
49
void
createDirectories();
50
51
HANDLE hFile;
52
};
53
54
#endif
storage
ndb
src
kernel
blocks
ndbfs
Win32AsyncFile.hpp
Generated on Sat Nov 9 2013 01:27:52 for MySQL 5.6.14 Source Code Document by
1.8.1.2