~ubuntu-branches/ubuntu/trusty/enigma/trusty-proposed

« back to all changes in this revision

Viewing changes to src/file.hh

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2013-04-06 14:54:02 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130406145402-jgjrtk7hac8gtvza
Tags: 1.20-dfsg.1-1
* New upstream release (Closes: #704595)
  (Repacked: dropped zipios++ source and main menu music)
* Update watch file, sf.net again.
* Fix documentation links (Closes: #653508)
* Conflict with enigma-level-previews to encourage deinstallation
  (Pregenerated level previews were only used with version 1.01)
* Use dh7 for building instead of CDBS
* Update to policy 3.9.4.0 (no changes)
* Register documentation with doc-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        DirIter();
63
63
    };
64
64
 
65
 
    /* -------------------- FileHandles --------------------*/
66
 
// 
67
 
//     class FileHandle {
68
 
//     public:
69
 
//         virtual ~FileHandle() {}
70
 
// 
71
 
//         // FileHandle interface.
72
 
//         virtual bool   exists() const = 0;
73
 
//         virtual void   read (ByteVec &buffer) = 0;
74
 
//     };
75
 
// 
76
 
//     class FileHandle_Dir : public FileHandle {
77
 
//         std::string m_name;
78
 
//         std::string m_path;
79
 
//         bool m_exists;          // File exists
80
 
// 
81
 
//     public:
82
 
//         FileHandle_Dir (const std::string &name);
83
 
// 
84
 
//         // FileHandle interface.
85
 
//         bool   exists() const;
86
 
//         void   read (ByteVec &buffer);
87
 
//     };
88
 
// 
89
 
//     class FileHandle_Zip : public FileHandle {
90
 
//     public:
91
 
//         FileHandle_Zip();
92
 
// 
93
 
//         // FileHandle interface.
94
 
//         bool   exists() const;
95
 
//         void   read (ByteVec &buffer);
96
 
//     };
97
 
    
98
65
    /**
99
66
     * A GameFS is a list of directories that are searched when
100
67
     * Enigma tries to find a data file (for example a png image). The
150
117
        bool findFile(const string &filename, string &dest, 
151
118
                std::auto_ptr<std::istream> &isptr) const;
152
119
                
153
 
//      FileHandle *findFile (const FileName &);
154
 
 
155
120
        /**
156
121
         * Search first occurence of a file on the GameFS. The file can be
157
122
         * a path component like "levels/index.lua". If the file can not be