OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
TemperatureSettingsRecord.cpp
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 
13 
14 namespace ossimplugins
15 {
17 {
18 }
19 
21 {
22 }
23 
25 {
26  for (int i=0;i<4;i++)
27  {
28  os<<"temp_set["<<i<<"]:"<<data._temp_set[i]<<std::endl;
29  }
30 
31  return os;
32 }
33 
35 {
36  char buf[5];
37  buf[4] = '\0';
38 
39  for (int i=0;i<4;i++)
40  {
41  is.read(buf,4);
42  buf[4] = '\0';
43  data._temp_set[i] = atoi(buf);
44  }
45  return is;
46 }
47 
49 {
50  for (int i=0;i<4;i++)
51  {
52  _temp_set[i] = rhs._temp_set[i];
53  }
54 }
55 
57 {
58  for (int i=0;i<4;i++)
59  {
60  _temp_set[i] = rhs._temp_set[i];
61  }
62  return *this;
63 }
64 }
TemperatureSettingsRecord & operator=(const TemperatureSettingsRecord &rhs)
Copy operator.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
This class is able to read a Temperature Settings record.
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23