CoordinateSystem.cc File Reference

#include <ProxNodeHandle.h>
#include <CoordinateSystem.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const GnpNpsCoordsInfo &info)
std::ostream & operator<< (std::ostream &os, const VivaldiCoordsInfo &info)

Detailed Description

Author:
Bernhard Heep

Definition in file CoordinateSystem.cc.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const VivaldiCoordsInfo info 
)

Definition at line 140 of file CoordinateSystem.cc.

00141 {
00142     if (!info.getCoords().size()) throw cRuntimeError("dim = 0");
00143 
00144     os << "< ";
00145     uint8_t i;
00146     for (i = 0; i < info.getCoords().size() - 1; ++i) {
00147         os << info.getCoords(i) << ", ";
00148     }
00149     os << info.getCoords(i) << " >";
00150     os << ", Err = " << info.getError();
00151     if (info.getHeightVector() != -1.0)
00152         os << ", HeightVec = " << info.getHeightVector();
00153 
00154     return os;
00155 }

std::ostream& operator<< ( std::ostream &  os,
const GnpNpsCoordsInfo info 
)

Definition at line 71 of file CoordinateSystem.cc.

00072 {
00073     if (!info.getCoords().size()) throw cRuntimeError("dim = 0");
00074 
00075     os << "< ";
00076     uint8_t i;
00077     for (i = 0; i < info.getCoords().size() - 1; ++i) {
00078         os << info.getCoords(i) << ", ";
00079     }
00080     os << info.getCoords(i) << " >";
00081     if (info.getLayer() != -1)
00082         os << ", NPS-Layer = " << (int)info.getLayer();
00083 
00084     return os;
00085 }

Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3