~ubuntu-branches/ubuntu/natty/spring/natty

« back to all changes in this revision

Viewing changes to rts/lib/hpiutil2/hpientry.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-09-23 18:56:03 UTC
  • mfrom: (3.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100923185603-st97s5chplo42y7w
Tags: 0.82.5.1+dfsg1-1ubuntu1
* Latest upstream version for online play
* debian/control: Replace (rather than conflict) spring-engine
  - spring-engine will be a dummy package (LP: #612905)
  - also set maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * hpientry.h
3
 
 * hpi entry class definition
4
 
 * Copyright (C) 2005 Christopher Han <xiphux@gmail.com>
5
 
 *
6
 
 * This file is part of hpiutil2.
7
 
 *
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.
12
 
 *
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.
17
 
 *
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
21
 
 */
22
 
 
23
 
#ifndef HPIUTIL2_HPIENTRY_H
24
 
#define HPIUTIL2_HPIENTRY_H
25
 
 
26
 
// The spring virtual filesystem uses '/' internally on all platforms, so removed win32 conditional
27
 
#define PATHSEPARATOR '/'
28
 
#define OTHERPATHSEPARATOR '\\'
29
 
 
30
 
#include <vector>
31
 
#include <string>
32
 
#include <boost/cstdint.hpp>
33
 
#include <boost/shared_ptr.hpp>
34
 
 
35
 
namespace hpiutil
36
 
{
37
 
        
38
 
        class hpifile;
39
 
        class hpientry;
40
 
  typedef boost::shared_ptr<hpientry> hpientry_ptr;
41
 
        class hpientry
42
 
        {
43
 
        public:
44
 
                std::string name;
45
 
                std::string parentname;
46
 
                bool directory;
47
 
                boost::uint32_t offset;
48
 
                boost::uint32_t size;
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);
51
 
                ~hpientry();
52
 
                std::string path();
53
 
                hpifile *file;
54
 
        };
55
 
 
56
 
}
57
 
 
58
 
#endif /* HPIUTIL2_HPIENTRY_H */