5 * Created by Alyssa Milburn on Mon Jan 16 2006.
6 * Copyright (c) 2006 Alyssa Milburn. All rights reserved.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
27 #include <boost/filesystem/path.hpp>
29 namespace fs
= boost::filesystem
;
39 std::vector
<prayBlock
*> blocks
;
41 prayFile(fs::path filepath
);
43 fs::path
getPath() { return path
; }
44 std::istream
&getStream() { return file
; }
52 unsigned char *buffer
;
54 std::streampos offset
;
56 unsigned int size
, compressedsize
;
59 prayBlock(prayFile
*p
);
66 std::map
<std::string
, std::string
> stringValues
;
67 std::map
<std::string
, int> integerValues
;
69 bool isCompressed() { return compressed
; }
70 bool isLoaded() { return loaded
; }
71 prayFile
*getParent() { return parent
; }
72 std::string
getType() { return type
; }
73 std::string
getName() { return name
; }
74 unsigned char *getBuffer() { assert(loaded
); return buffer
; }
75 unsigned int getSize() { return size
; }