ScummVM API documentation
fileio.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef M4_FILEIO_FILEIO_H
23 #define M4_FILEIO_FILEIO_H
24 
25 #include "common/stream.h"
26 
27 namespace M4 {
28 
29 enum AccessMode {
30  UNOPENED,
31  READ,
32  WRITE,
33  READ_OR_WRITE
34 };
35 
36 enum FileMode {
37  BINARY,
38  TEXT,
39  BINARYW,
40  TEXTW
41 };
42 
44  char filename[33];
45  byte hagfile;
46  struct Hag_Name_Record *next;
47 };
48 
49 struct Hag_Record {
50  char hag_name[33];
51  byte hagfile;
52  Common::Stream *hag_fp;
53  uint32 hag_pos;
54  Hag_Record *next;
55 };
56 
57 Common::Stream *f_io_open(const Common::Path &filename, const Common::String &mode);
58 void f_io_close(Common::Stream *stream);
59 
60 } // namespace M4
61 
62 #endif
Definition: fileio.h:43
Definition: str.h:59
Definition: path.h:52
Definition: fileio.h:49
Definition: database.h:28
Definition: stream.h:48