rasdaman API
des.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 
25 #ifndef __RASNITF_DES_H
26 #define __RASNITF_DES_H
27 
28 #include <vector>
29 #include <iostream>
30 #include <fstream>
31 
32 namespace RasNITF
33 {
34 
35 class des
36 {
37 
38  char m_de[2];
39  char m_destag[25];
40  char m_desver[2];
41  char m_dessg[167];
42  char m_desoflw[6];
43  char m_desitem[3];
44  char m_desshl[4];
45  char *m_desshf;
46  char *m_desdata;
47 
48  int header_length;
49  long n_desshl;
50  int data_length;
51  int des_header_length;
52 
53  std::string des_hl ;
54  std::string des_dl ;
55 
56 public:
57 
58  des();
59  ~des();
60  int read_file(std::istream &,long,long);
61  int write_file(std::ofstream &);
62  std::string get_ld() const;
63  std::string get_ldsh() const;
64 
65 };
66 
67 }
68 #endif
std::string get_ld() const
std::string get_ldsh() const
int read_file(std::istream &, long, long)
int write_file(std::ofstream &)
Definition: des.h:35