3
* hpi entry class definition
4
* Copyright (C) 2005 Christopher Han <xiphux@gmail.com>
6
* This file is part of hpiutil2.
8
* hpiutil2 is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* hpiutil2 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
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with hpiutil2; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
#ifndef HPIUTIL2_HPIENTRY_H
24
#define HPIUTIL2_HPIENTRY_H
26
// The spring virtual filesystem uses '/' internally on all platforms, so removed win32 conditional
27
#define PATHSEPARATOR '/'
28
#define OTHERPATHSEPARATOR '\\'
32
#include <boost/cstdint.hpp>
33
#include <boost/shared_ptr.hpp>
40
typedef boost::shared_ptr<hpientry> hpientry_ptr;
45
std::string parentname;
47
boost::uint32_t offset;
49
std::vector<hpientry_ptr> subdir;
50
hpientry(hpifile &f, std::string const &pname, std::string const &n, const boost::uint32_t offset, const boost::uint32_t size);
58
#endif /* HPIUTIL2_HPIENTRY_H */