OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
ossim-plugins
cnes
src
RadarSat
RadarSatRecordHeader.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
//
3
// "Copyright Centre National d'Etudes Spatiales"
4
//
5
// License: LGPL
6
//
7
// See LICENSE.txt file in the top level directory for more details.
8
//
9
//----------------------------------------------------------------------------
10
// $Id$
11
12
#ifndef RadarSatRecordHeader_h
13
#define RadarSatRecordHeader_h
14
15
#include<iostream>
16
#include<cstring>
17
18
namespace
ossimplugins
19
{
24
class
RadarSatRecordHeader
25
{
26
public
:
30
RadarSatRecordHeader
();
31
35
~RadarSatRecordHeader
();
36
40
RadarSatRecordHeader
(
const
RadarSatRecordHeader
& rhs);
41
45
RadarSatRecordHeader
&
operator=
(
const
RadarSatRecordHeader
& rhs);
49
friend
std::ostream
&
operator<<
(
std::ostream
& os,
const
RadarSatRecordHeader
& data);
50
54
friend
std::istream
&
operator>>
(
std::istream
& is,
RadarSatRecordHeader
& data);
55
59
int
get_rec_seq
()
60
{
61
return
_rec_seq
;
62
};
63
67
unsigned
char
get_rec_sub1
()
68
{
69
return
_rec_sub1
;
70
};
71
75
unsigned
char
get_rec_type
()
76
{
77
return
_rec_type
;
78
};
79
83
unsigned
char
get_rec_sub2
()
84
{
85
return
_rec_sub2
;
86
};
87
91
unsigned
char
get_rec_sub3
()
92
{
93
return
_rec_sub3
;
94
};
95
99
int
get_length
()
100
{
101
return
_length
;
102
};
103
protected
:
104
108
void
SwitchEndian
(
int
& value);
109
113
int
_rec_seq
;
117
unsigned
char
_rec_sub1
;
121
unsigned
char
_rec_type
;
125
unsigned
char
_rec_sub2
;
129
unsigned
char
_rec_sub3
;
133
int
_length
;
134
private
:
135
136
137
};
138
}
139
#endif
ossimplugins::RadarSatRecordHeader::RadarSatRecordHeader
RadarSatRecordHeader()
Constructor.
Definition:
RadarSatRecordHeader.cpp:16
ossimplugins::RadarSatRecordHeader::SwitchEndian
void SwitchEndian(int &value)
This function switches the LSB value and the MSB value of the parameter.
Definition:
RadarSatRecordHeader.cpp:67
ossimplugins::RadarSatRecordHeader::get_rec_sub1
unsigned char get_rec_sub1()
First record sub-type code.
Definition:
RadarSatRecordHeader.h:67
ossimplugins::RadarSatRecordHeader::_rec_sub3
unsigned char _rec_sub3
Third record sub-type code.
Definition:
RadarSatRecordHeader.h:129
ossimplugins::RadarSatRecordHeader::operator>>
friend std::istream & operator>>(std::istream &is, RadarSatRecordHeader &data)
This function reads a RecordHeader from a stream.
Definition:
RadarSatRecordHeader.cpp:35
ossimplugins
Definition:
AlosPalsarData.cpp:26
ossimplugins::RadarSatRecordHeader::_rec_sub1
unsigned char _rec_sub1
First record sub-type code.
Definition:
RadarSatRecordHeader.h:117
ossimplugins::RadarSatRecordHeader::get_rec_sub3
unsigned char get_rec_sub3()
Third record sub-type code.
Definition:
RadarSatRecordHeader.h:91
ossimplugins::RadarSatRecordHeader::get_rec_sub2
unsigned char get_rec_sub2()
Second record sub-type code.
Definition:
RadarSatRecordHeader.h:83
ossimplugins::RadarSatRecordHeader::operator<<
friend std::ostream & operator<<(std::ostream &os, const RadarSatRecordHeader &data)
This function writes the RecordHeader in a stream.
Definition:
RadarSatRecordHeader.cpp:24
ossimplugins::RadarSatRecordHeader::_rec_sub2
unsigned char _rec_sub2
Second record sub-type code.
Definition:
RadarSatRecordHeader.h:125
ossimplugins::RadarSatRecordHeader::~RadarSatRecordHeader
~RadarSatRecordHeader()
Destructor.
Definition:
RadarSatRecordHeader.cpp:20
ossimplugins::RadarSatRecordHeader::get_rec_type
unsigned char get_rec_type()
Record type code.
Definition:
RadarSatRecordHeader.h:75
ossim::istream
std::basic_istream< char > istream
Base class for char input streams.
Definition:
ossimIosFwd.h:20
ossimplugins::RadarSatRecordHeader::get_rec_seq
int get_rec_seq()
Record sequence number.
Definition:
RadarSatRecordHeader.h:59
ossimplugins::RadarSatRecordHeader::_length
int _length
Length of this record (in bytes)
Definition:
RadarSatRecordHeader.h:133
ossimplugins::RadarSatRecordHeader
This class is able to read a record header.
Definition:
RadarSatRecordHeader.h:24
ossimplugins::RadarSatRecordHeader::_rec_seq
int _rec_seq
Record sequence number.
Definition:
RadarSatRecordHeader.h:113
ossimplugins::RadarSatRecordHeader::get_length
int get_length()
Length of this record (in bytes)
Definition:
RadarSatRecordHeader.h:99
ossimplugins::RadarSatRecordHeader::_rec_type
unsigned char _rec_type
Record type code.
Definition:
RadarSatRecordHeader.h:121
ossimplugins::RadarSatRecordHeader::operator=
RadarSatRecordHeader & operator=(const RadarSatRecordHeader &rhs)
Copy operator.
Definition:
RadarSatRecordHeader.cpp:57
ossim::ostream
std::basic_ostream< char > ostream
Base class for char output streams.
Definition:
ossimIosFwd.h:23
Generated on Fri Aug 3 2018 08:46:55 for OSSIM - Open Source Software Image Map by
1.8.14