1 #ifndef __JUTM__JUTMGRID__ 
    2 #define __JUTM__JUTMGRID__ 
   21 namespace JPP { 
using namespace JUTM; }
 
   59              const std::string& 
wgs,
 
   60              const std::string& 
zone)
 
   75       return static_cast<const JUTMGrid&
>(*this);
 
   86       static_cast<JUTMGrid&
>(*this) = grid;
 
  134       for (string::const_iterator i = 
zone.begin(); i != 
zone.end(); ++i) {
 
  136           value = 10 * value  +  (*i - 
'0');
 
  154               this->getWGS()      == grid.
getWGS()    &&
 
  180       std::istringstream is(buffer);
 
  198       return in >> grid.
key >> grid.
wgs >> grid.
zone;
 
  211       return out << grid.
key << 
' ' << grid.
wgs << 
' ' << grid.
zone;
 
  226       return in >> grid.
key >> grid.
wgs >> grid.
zone;
 
  241       return out << grid.
key << grid.
wgs << grid.
zone;
 
STD extensions for binary I/O.
 
Interface for binary input.
 
Interface for binary output.
 
Exception for parsing value.
 
Data structure for UTM grid.
 
const std::string & getUTMZone() const
Get UTM zone.
 
std::string toString() const
Convert UTM grid.
 
const JUTMGrid & getUTMGrid() const
Get UTM grid.
 
int getUTMValue() const
Get UTM zone by numerical value.
 
JUTMGrid(const std::string &key, const std::string &wgs, const std::string &zone)
Constructor.
 
friend std::istream & operator>>(std::istream &in, JUTMGrid &grid)
Read UTM grid from input.
 
static JUTMGrid valueOf(const std::string &buffer)
Extract UTM grid.
 
const std::string & getKey() const
Get key.
 
friend JWriter & operator<<(JWriter &out, const JUTMGrid &grid)
Write UTM grid to output.
 
bool equals(const JUTMGrid &grid) const
Check equality.
 
friend JReader & operator>>(JReader &in, JUTMGrid &grid)
Read UTM grid from input.
 
void setUTMGrid(const JUTMGrid &grid)
Set UTM grid.
 
const std::string & getWGS() const
Get WGS.
 
friend std::ostream & operator<<(std::ostream &out, const JUTMGrid &grid)
Write UTM grid to output.
 
JUTMGrid()
Default constructor.
 
Auxiliary classes and methods for binary I/O.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliaries for handling universal transverse mercator coordinate system (UTM).
 
Template definition of auxiliary base class for comparison of data structures.