source: subversion/applications/lib/libimg/Img.h @ 34621

Last change on this file since 34621 was 2092, checked in by enxrah, 13 years ago

Nick didn't write this. I did :-)

File size: 1.4 KB
Line 
1/*
2    Copyright (C) 2007 Robert Hart, rob@bathterror.free-online.co.uk
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU Lesser General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
17
18 */
19#ifndef IMG_H
20#define IMG_H
21
22#include "ImgData.h"
23#include "ImgHeader.h"
24#include "ImgSubfile.h"
25#include "ImgFat.h"
26#include "ImgTre.h"
27
28#include <iostream>
29#include <fstream>
30#include <sstream>
31#include <string>
32#include "time.h"
33#include "sys/time.h"
34
35using std::cout;
36using std::cerr;
37using std::endl;
38
39class ImgLblFile : public ImgSubfile {
40 public:
41  ImgLblFile();
42};
43
44class ImgRgnFile : public ImgSubfile {
45 public:
46  ImgRgnFile();
47};
48
49
50class Img
51{
52 public:
53  Img();
54  void WriteFile(std::ofstream &out);
55  void ReadFile(std::ifstream &in);
56 private:
57  ImgHeader m_header;
58  ImgTreFile m_TreFile;
59  ImgLblFile m_LblFile;
60  ImgRgnFile m_RgnFile;
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.