rasdaman API
text.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 __TEXT_H_INCLUDED
26 #define __TEXT_H_INCLUDED
27 
28 #include<vector>
29 #include <iostream>
30 #include <fstream>
31 
32 namespace RasNITF
33 {
34 /* forward declarations follow : */
35 
36 class nitf;
37 
38 class text
39 {
40 private:
41  char m_te[2];
42  char m_textid[7];
43  char m_txtalvl[3];
44  char m_txtdt[14];
45  char m_txtitl[80];
46  char m_tsclas[1];
47  char m_tsclsy[2];
48  char m_tscode[11];
49  char m_tsctlh[2];
50  char m_tsrel[20];
51  char m_tsdctp[2];
52  char m_tsdcdt[8];
53  char m_tsdcxm[4];
54  char m_tsdg[1];
55  char m_tsdgdt[8];
56  char m_tscltx[43];
57  char m_tscatp[1];
58  char m_tscaut[40];
59  char m_tscrsn[1];
60  char m_tssrdt[8];
61  char m_tsctln[15];
62  char m_encryp[1];
63  char m_txtfmt[3];
64  char m_txshdl[5];
65  char m_txsofl[3];
66  char* m_txshd;
67  char *m_text_data;
68 
69  int header_length;
70  int data_length;
71  int n_txshdl;
72  int n_txsofl;
73 
74  std::string text_hl ;
75  std::string text_dl ;
76 
77 public:
78  text();
79  ~text(); //destructor freeing memory
80  int read_file(std::istream &,long,long);
81  int write_file(std::ofstream &); //writes the information to the data file
82  std::string get_lt() const;
83  std::string get_ltsh() const;
84 };
85 }
86 #endif
std::string get_lt() const
int read_file(std::istream &, long, long)
Definition: text.h:38
int write_file(std::ofstream &)
std::string get_ltsh() const