1 #ifndef ANTENNAEXCEPTION_H
2 #define ANTENNAEXCEPTION_H
11 #include "gcp/util/common/Exception.h"
33 const int lineNumber, Type type) :
34 gcp::util::
Exception(str, fileName, lineNumber, true), type_(type) {}
44 const int lineNumber, Type type) :
45 gcp::util::
Exception(os, fileName, lineNumber, true), type_(type) {}
51 const char* fileName,
const int lineNumber,
53 gcp::util::
Exception(ls, fileName, lineNumber, true), type_(type) {}
59 const char* fileName,
const int lineNumber,
61 gcp::util::
Exception(ls, fileName, lineNumber, true), type_(type) {}
71 inline bool isAcu() {
return type_ == ACU;}
83 #define AntError(x) AntennaException((x), __FILE__, __LINE__, \
84 AntennaException::UNKNOWN)
86 #define AntErrorDef(x,y) AntennaException (x)((y), __FILE__, __LINE__, \
87 AntennaException::UNKNOWN))
89 #define AcuError(x) AntennaException((x), __FILE__, __LINE__, \
90 AntennaException::ACU)
92 #define AcuErrorDef(x,y) AntennaException (x)((y), __FILE__, __LINE__, \
93 AntennaException::ACU))
Definition: AntennaException.h:17
AntennaException(gcp::util::LogStream *ls, const char *fileName, const int lineNumber, Type type)
Definition: AntennaException.h:58
AntennaException(gcp::util::LogStream &ls, const char *fileName, const int lineNumber, Type type)
Definition: AntennaException.h:50
Definition: LogStream.h:21
AntennaException(std::ostringstream &os, const char *fileName, const int lineNumber, Type type)
Definition: AntennaException.h:43
void setAcu()
Definition: AntennaException.h:66
AntennaException(std::string str, const char *fileName, const int lineNumber, Type type)
Definition: AntennaException.h:32
bool isAcu()
Definition: AntennaException.h:71
Definition: Exception.h:30