CigiBaseLosResp.cpp

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

Generated on Wed Apr 29 08:59:57 2009 for CCL by  doxygen 1.4.7