rasdaman complete source
res.h
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community 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 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community 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 General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 */
23 
24 #ifndef __RASNITF_RES_H
25 #define __RASNITF_RES_H
26 
27 #include <vector>
28 #include <iostream>
29 #include <fstream>
30 
31 namespace RasNITF
32 {
33 
34 class res
35 {
36 
37  char m_re[2];
38  char m_restag[25];
39  char m_resver[2];
40  char m_ressg[167];
41  char m_resshl[4];
42  char* m_resshf;
43  char* m_resdata;
44 
45  long n_resshl;
46  long data_length;
47  long header_length;
48 
49  std::string res_hl;
50  std::string res_dl;
51 public:
52 
53  res();
54  ~res();
55 
56  int read_file(std::istream &,long,long);
57  int write_file(std::ofstream &);
58  std::string get_lr() const;
59  std::string get_lrsh() const;
60 
61 };
62 
63 }
64 
65 #endif
int write_file(std::ofstream &)
std::string get_lr() const
std::string get_lrsh() const
Definition: des.h:32
int read_file(std::istream &, long, long)
Definition: res.h:34