ScummVM API documentation
pod_file.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
* Copyright 2020 Google
21
*
22
*/
23
#ifndef HADESCH_FILE_MGR_H
24
#define HADESCH_FILE_MGR_H
25
26
#include "common/array.h"
27
#include "common/ptr.h"
28
29
namespace
Common
{
30
class
File;
31
class
Path
;
32
class
SeekableReadStream;
33
}
34
35
namespace
Hadesch
{
36
37
class
PodImage;
38
39
Common::SeekableReadStream
*memSubstream(
Common::SharedPtr<Common::SeekableReadStream>
file,
40
uint32 offset, uint32 size);
41
class
PodFile
{
42
public
:
43
PodFile
(
const
Common::String
&debugName);
44
bool
openStore(
const
Common::Path
&name);
45
bool
openStore(
const
Common::SharedPtr<Common::SeekableReadStream>
&parentstream);
46
47
Common::SeekableReadStream
*getFileStream(
const
Common::String
&name)
const
;
48
Common::String
getDebugName()
const
;
49
Common::Array <PodImage>
loadImageArray()
const
;
50
51
private
:
52
struct
Description {
53
Common::String
name;
54
uint32 offset;
55
uint32 size;
56
};
57
Common::SharedPtr<Common::SeekableReadStream>
_file;
58
Common::Array<Description>
_descriptions;
59
Common::String
_debugName;
60
};
61
62
}
// End of namespace Hadesch
63
64
#endif
Common::String
Definition:
str.h:59
Hadesch
Definition:
ambient.h:30
Common::Array
Definition:
array.h:52
Common::Path
Definition:
path.h:52
Common::SeekableReadStream
Definition:
stream.h:745
Hugo::Path
Path
Definition:
game.h:75
Hadesch::PodFile
Definition:
pod_file.h:41
Common
Definition:
algorithm.h:29
Common::SharedPtr< Common::SeekableReadStream >
engines
hadesch
pod_file.h
Generated on Thu Nov 14 2024 09:13:24 for ScummVM API documentation by
1.8.13