CigiBaseCollDetVolResp.cpp

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

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