Go to the documentation of this file. 1 #ifndef __JUTM__JUTMGRID__
2 #define __JUTM__JUTMGRID__
19 namespace JPP {
using namespace JUTM; }
54 const std::string&
wgs,
55 const std::string&
zone)
117 std::istringstream is(buffer);
135 return in >> grid.
key >> grid.
wgs >> grid.
zone;
148 return out << grid.
key <<
' ' << grid.
wgs <<
' ' << grid.
zone;
163 return in >> grid.
key >> grid.
wgs >> grid.
zone;
178 return out << grid.
key << grid.
wgs << grid.
zone;
const std::string & getUTMZone() const
Get UTM zone.
Interface for binary input.
JUTMGrid(const std::string &key, const std::string &wgs, const std::string &zone)
Constructor.
Data structure for UTM grid.
friend JReader & operator>>(JReader &in, JUTMGrid &grid)
Read UTM grid from input.
const std::string & getKey() const
Get key.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static JUTMGrid valueOf(const std::string &buffer)
Extract UTM grid.
Interface for binary output.
friend std::istream & operator>>(std::istream &in, JUTMGrid &grid)
Read UTM grid from input.
const std::string & getWGS() const
Get WGS.
friend JWriter & operator<<(JWriter &out, const JUTMGrid &grid)
Write UTM grid to output.
JUTMGrid()
Default constructor.
Exception for parsing value.
friend std::ostream & operator<<(std::ostream &out, const JUTMGrid &grid)
Write UTM grid to output.
Auxiliary classes and methods for binary I/O.
std::string toString() const
Convert UTM grid.
Auxiliaries for handling universal transverse mercator coordinate system (UTM).