00001 00045 #define _EXPORT_CCL_ 00046 00047 #include "CigiBaseSOF.h" 00048 #include "CigiExceptions.h" 00049 #include "CigiSwapping.h" 00050 00051 // ==================================================================== 00052 // Construction/Destruction 00053 // ==================================================================== 00054 00055 // ================================================ 00056 // CigiBaseSOF 00057 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00058 CigiBaseSOF::CigiBaseSOF() 00059 { 00060 00061 } 00062 00063 // ================================================ 00064 // ~CigiBaseSOF 00065 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00066 CigiBaseSOF::~CigiBaseSOF() 00067 { 00068 00069 } 00070 00071 00072 // ==================================================================== 00073 // Conversion Control 00074 // ==================================================================== 00075 00076 00077 // ================================================ 00078 // GetCnvt 00079 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00080 int CigiBaseSOF::GetCnvt(CigiVersionID &CnvtVersion, 00081 CigiCnvtInfoType::Type &CnvtInfo) 00082 { 00083 CnvtInfo.ProcID = CigiProcessType::ProcSOF; 00084 00085 // All versions of this packet have the same packet id number 00086 CnvtInfo.CnvtPacketID = CIGI_SOF_PACKET_ID_V1; 00087 00088 return(CIGI_SUCCESS); 00089 } 00090 00091 00092 00093 00094 00095 // ==================================================================== 00096 // Accessors 00097 // ==================================================================== 00098 00099 00100 00101 // ================================================ 00102 // SetIGMode 00103 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 00104 int CigiBaseSOF::SetIGMode(IGModeGrp IGModeIn, bool bndchk) 00105 { 00106 00107 #ifndef CIGI_NO_BND_CHK 00108 if(bndchk && ((IGModeIn < 0)||(IGModeIn > 3))) 00109 { 00110 #ifndef CIGI_NO_EXCEPT 00111 throw CigiValueOutOfRangeException("IGMode",IGModeIn,0,3); 00112 #endif 00113 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00114 } 00115 #endif 00116 00117 IGMode = IGModeIn; 00118 00119 return(CIGI_SUCCESS); 00120 00121 }