CigiBaseMaritimeSurfaceCtrl.cpp

Go to the documentation of this file.
00001 
00045 #define _EXPORT_CCL_
00046 
00047 #include "CigiBaseMaritimeSurfaceCtrl.h"
00048 #include "CigiSwapping.h"
00049 #include "CigiExceptions.h"
00050 
00051 
00052 // ====================================================================
00053 // Construction/Destruction
00054 // ====================================================================
00055 
00056 
00057 // ================================================
00058 // CigiBaseMaritimeSurfaceCtrl
00059 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00060 CigiBaseMaritimeSurfaceCtrl::CigiBaseMaritimeSurfaceCtrl()
00061 {
00062 
00063 }
00064 
00065 
00066 
00067 // ================================================
00068 // ~CigiBaseMaritimeSurfaceCtrl
00069 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00070 CigiBaseMaritimeSurfaceCtrl::~CigiBaseMaritimeSurfaceCtrl()
00071 {
00072 
00073 }
00074 
00075 
00076 // ====================================================================
00077 // Conversion Control
00078 // ====================================================================
00079 
00080 
00081 // ================================================
00082 // GetCnvt
00083 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00084 int CigiBaseMaritimeSurfaceCtrl::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_CTRL_PACKET_ID_V3;
00096    }
00097 
00098    return(CIGI_SUCCESS);
00099 }
00100 
00101 
00102 // ====================================================================
00103 // Accessors
00104 // ====================================================================
00105 
00106 
00107 // ================================================
00108 // Scope
00109 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00110 int CigiBaseMaritimeSurfaceCtrl::SetScope(const ScopeGrp ScopeIn, bool bndchk)
00111 {
00112 
00113 #ifndef CIGI_NO_BND_CHK
00114    if(bndchk && ((ScopeIn < 0)||(ScopeIn > 2)))
00115    {
00116 #ifndef CIGI_NO_EXCEPT
00117       throw CigiValueOutOfRangeException("Scope",(ScopeGrp)ScopeIn,0,2);
00118 #endif
00119       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00120    }
00121 #endif
00122 
00123    Scope = ScopeIn;
00124    return(CIGI_SUCCESS);
00125 
00126 }
00127 
00128 
00129 // ================================================
00130 // Clarity
00131 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00132 int CigiBaseMaritimeSurfaceCtrl::SetClarity(const float ClarityIn, bool bndchk)
00133 {
00134 
00135 #ifndef CIGI_NO_BND_CHK
00136    if(bndchk && ((ClarityIn < 0.0)||(ClarityIn > 100.0)))
00137    {
00138 #ifndef CIGI_NO_EXCEPT
00139       throw CigiValueOutOfRangeException("Clarity",(float)ClarityIn,0.0,100.0);
00140 #endif
00141       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00142    }
00143 #endif
00144 
00145    Clarity = ClarityIn;
00146    return(CIGI_SUCCESS);
00147 
00148 }
00149 
00150 

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