1 #ifndef __JUTM__JUTMGRID__
2 #define __JUTM__JUTMGRID__
20 namespace JPP {
using namespace JUTM; }
58 const std::string&
wgs,
59 const std::string&
zone)
74 return static_cast<const JUTMGrid&
>(*this);
85 static_cast<JUTMGrid&
>(*this) = grid;
157 std::istringstream
is(buffer);
175 return in >> grid.
key >> grid.
wgs >> grid.
zone;
188 return out << grid.
key <<
' ' << grid.
wgs <<
' ' << grid.
zone;
203 return in >> grid.
key >> grid.
wgs >> grid.
zone;
218 return out << grid.
key << grid.
wgs << grid.
zone;
Interface for binary output.
friend JWriter & operator<<(JWriter &out, const JUTMGrid &grid)
Write UTM grid to output.
const std::string & getWGS() const
Get WGS.
std::string toString() const
Convert UTM grid.
const std::string & getKey() const
Get key.
friend std::istream & operator>>(std::istream &in, JUTMGrid &grid)
Read UTM grid from input.
JUTMGrid()
Default constructor.
friend std::ostream & operator<<(std::ostream &out, const JUTMGrid &grid)
Write UTM grid to output.
Template definition of auxiliary base class for comparison of data structures.
bool equals(const JUTMGrid &grid) const
Check equality.
Interface for binary input.
Data structure for UTM grid.
static JUTMGrid valueOf(const std::string &buffer)
Extract UTM grid.
const JUTMGrid & getUTMGrid() const
Get UTM grid.
friend JReader & operator>>(JReader &in, JUTMGrid &grid)
Read UTM grid from input.
Exception for parsing value.
void setUTMGrid(const JUTMGrid &grid)
Set UTM grid.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
const std::string & getUTMZone() const
Get UTM zone.
STD extensions for binary I/O.
JUTMGrid(const std::string &key, const std::string &wgs, const std::string &zone)
Constructor.