00001 00041 #define _EXPORT_CCL_ 00042 00043 #include "CigiBaseHatHotReq.h" 00044 #include "CigiSwapping.h" 00045 #include "CigiExceptions.h" 00046 00047 00048 // ==================================================================== 00049 // Construction/Destruction 00050 // ==================================================================== 00051 00052 00053 // ================================================ 00054 // CigiBaseHatHotReq 00055 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00056 CigiBaseHatHotReq::CigiBaseHatHotReq() 00057 { 00058 00059 } 00060 00061 00062 00063 // ================================================ 00064 // ~CigiBaseHatHotReq 00065 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00066 CigiBaseHatHotReq::~CigiBaseHatHotReq() 00067 { 00068 00069 } 00070 00071 // ==================================================================== 00072 // Accessors 00073 // ==================================================================== 00074 00075 00076 // ================================================ 00077 // Lat 00078 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00079 int CigiBaseHatHotReq::SetLat(const double LatIn, bool bndchk) 00080 { 00081 00082 #ifndef CIGI_NO_BND_CHK 00083 if(bndchk && ((LatIn < -90.0)||(LatIn > 90.0))) 00084 { 00085 #ifndef CIGI_NO_EXCEPT 00086 throw CigiValueOutOfRangeException("Lat",(double)LatIn,-90.0,90.0); 00087 #endif 00088 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00089 } 00090 #endif 00091 00092 LatOrXoff = LatIn; 00093 return(CIGI_SUCCESS); 00094 00095 } 00096 00097 00098 // ================================================ 00099 // Lon 00100 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00101 int CigiBaseHatHotReq::SetLon(const double LonIn, bool bndchk) 00102 { 00103 00104 #ifndef CIGI_NO_BND_CHK 00105 if(bndchk && ((LonIn < -180.0)||(LonIn > 180.0))) 00106 { 00107 #ifndef CIGI_NO_EXCEPT 00108 throw CigiValueOutOfRangeException("Lon",(double)LonIn,-180.0,180.0); 00109 #endif 00110 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00111 } 00112 #endif 00113 00114 LonOrYoff = LonIn; 00115 return(CIGI_SUCCESS); 00116 00117 } 00118 00119