1 #ifndef __JUTM__JUTMGRID__
2 #define __JUTM__JUTMGRID__
21 namespace JPP {
using namespace JUTM; }
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');
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;
int getUTMValue() const
Get UTM zone by numerical value.
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS 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.