Merge branch 'common_services'
[ptas] / tests / util / stlhelpers.h
diff --git a/tests/util/stlhelpers.h b/tests/util/stlhelpers.h
new file mode 100644 (file)
index 0000000..da2aac3
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef STLHELPERS_H
+#define STLHELPERS_H
+
+#include <ostream>
+#include "kkjgridcoordinate.h"
+#include <QGeoCoordinate>
+
+std::ostream& operator<<(std::ostream& stream, const KKJGridCoordinate &val)
+{
+    stream << val.northing() << ", " << val.easting();
+    return stream;
+}
+
+std::ostream& operator<<(std::ostream& stream, const QTM_NAMESPACE::QGeoCoordinate &val)
+{
+    stream << val.latitude() << ", " << val.longitude();
+    return stream;
+}
+
+#endif // STLHELPERS_H