OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
BeamPixelCountRecord.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 
12 #include "BeamPixelCountRecord.h"
13 
14 namespace ossimplugins
15 {
17 {
18 }
19 
21 {
22 }
23 
25 {
26  os<<"pix_update:"<<data._pix_update.c_str()<<std::endl;
27 
28  for (int i=0;i<4;i++)
29  {
30  os<<"crt_m["<<i<<":"<<data._n_pix[i]<<std::endl;
31  }
32  return os;
33 }
34 
36 {
37  char buf[23];
38  buf[22] = '\0';
39 
40  is.read(buf,21);
41  data._pix_update = buf;
42 
43  for (int i=0;i<4;i++)
44  {
45  is.read(buf,8);
46  buf[8] = '\0';
47  data._n_pix[i] = atoi(buf);
48  }
49  return is;
50 }
51 
53  _pix_update(rhs._pix_update)
54 {
55  for (int i=0;i<4;i++)
56  {
57  _n_pix[i] = rhs._n_pix[i];
58  }
59 }
60 
62 {
64  for (int i=0;i<4;i++)
65  {
66  _n_pix[i] = rhs._n_pix[i];
67  }
68  return *this;
69 }
70 }
int _n_pix[4]
Count of image pixels in beams
std::string _pix_update
Pixel count update date/time.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
BeamPixelCountRecord & operator=(const BeamPixelCountRecord &rhs)
Copy operator.
This class is able to read a Beam pixel count record.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23