CigiBaseMaritimeSurfaceResp.cpp

Go to the documentation of this file.
00001 
00045 #define _EXPORT_CCL_
00046 
00047 #include "CigiBaseMaritimeSurfaceResp.h"
00048 #include "CigiSwapping.h"
00049 #include "CigiExceptions.h"
00050 
00051 
00052 // ====================================================================
00053 // Construction/Destruction
00054 // ====================================================================
00055 
00056 
00057 // ================================================
00058 // CigiBaseMaritimeSurfaceResp
00059 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00060 CigiBaseMaritimeSurfaceResp::CigiBaseMaritimeSurfaceResp()
00061 {
00062 
00063 }
00064 
00065 
00066 
00067 // ================================================
00068 // ~CigiBaseMaritimeSurfaceResp
00069 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00070 CigiBaseMaritimeSurfaceResp::~CigiBaseMaritimeSurfaceResp()
00071 {
00072 
00073 }
00074 
00075 
00076 // ====================================================================
00077 // Conversion Control
00078 // ====================================================================
00079 
00080 
00081 // ================================================
00082 // GetCnvt
00083 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00084 int CigiBaseMaritimeSurfaceResp::GetCnvt(CigiVersionID &CnvtVersion,
00085                                        CigiCnvtInfoType::Type &CnvtInfo)
00086 {
00087    if(CnvtVersion.CigiMajorVersion < 3)
00088    {
00089       CnvtInfo.ProcID = CigiProcessType::ProcNone;
00090       CnvtInfo.CnvtPacketID = 0;
00091    }
00092    else
00093    {
00094       CnvtInfo.ProcID = CigiProcessType::ProcStd;
00095       CnvtInfo.CnvtPacketID = CIGI_MARITIME_SURFACE_RESP_PACKET_ID_V3;
00096    }
00097 
00098    return(CIGI_SUCCESS);
00099 }
00100 
00101 
00102 // ====================================================================
00103 // Accessors
00104 // ====================================================================
00105 
00106 
00107 // ================================================
00108 // Clarity
00109 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00110 int CigiBaseMaritimeSurfaceResp::SetClarity(const float ClarityIn, bool bndchk)
00111 {
00112 
00113 #ifndef CIGI_NO_BND_CHK
00114    if(bndchk && ((ClarityIn < 0.0)||(ClarityIn > 100.0)))
00115    {
00116 #ifndef CIGI_NO_EXCEPT
00117       throw CigiValueOutOfRangeException("Clarity",(float)ClarityIn,0.0,100.0);
00118 #endif
00119       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00120    }
00121 #endif
00122 
00123    Clarity = ClarityIn;
00124    return(CIGI_SUCCESS);
00125 
00126 }
00127 
00128 

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