C1: deny drops into black holes
[openc2e.git] / qtgui / c1cobfile.h
blob9ecfb271afb979ae0147a53b71c732bb4494b1d1
1 /*
2 This program is free software; you can redistribute it and/or modify
3 it under the terms of the GNU General Public License as published by
4 the Free Software Foundation; either version 2 of the License, or
5 (at your option) any later version.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
12 You should have received a copy of the GNU General Public License along
13 with this program; if not, write to the Free Software Foundation, Inc.,
14 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 #ifndef C1COBFILE_H
18 #define C1COBFILE_H 1
20 #include <iostream>
21 #include <string>
22 #include "endianlove.h"
23 #include "streamutils.h"
24 #include <boost/scoped_array.hpp>
25 #include <vector>
27 std::string readpascalstring(std::istream &s);
29 struct c1cobfile {
30 uint16 no_objects;
31 uint32 expire_month;
32 uint32 expire_day;
33 uint32 expire_year;
34 std::vector<std::string> scripts;
35 std::vector<std::string> imports;
36 uint16 no_objects_used;
37 std::string name;
39 uint32 imagewidth, imageheight;
41 boost::scoped_array<char> imagedata;
43 c1cobfile(std::ifstream &s);
46 #endif /* C1COBFILE_H */