#include <CigiBaseConfClampEntityCtrl.h>
Inheritance diagram for CigiBaseConfClampEntityCtrl:
Public Member Functions | |
CigiBaseConfClampEntityCtrl () | |
virtual | ~CigiBaseConfClampEntityCtrl () |
virtual int | Pack (CigiBasePacket *Base, Cigi_uint8 *Buff, void *Spec) const =0 |
virtual int | Unpack (Cigi_uint8 *Buff, bool Swap, void *Spec)=0 |
virtual int | GetCnvt (CigiVersionID &CnvtVersion, CigiCnvtInfoType::Type &CnvtInfo) |
int | SetEntityID (const Cigi_uint16 EntityIDIn, bool bndchk=true) |
Cigi_uint16 | GetEntityID (void) const |
int | SetYaw (const float YawIn, bool bndchk=true) |
float | GetYaw (void) const |
int | SetLat (const double LatIn, bool bndchk=true) |
double | GetLat (void) const |
int | SetLon (const double LonIn, bool bndchk=true) |
double | GetLon (void) const |
Protected Attributes | |
Cigi_uint16 | EntityID |
float | Yaw |
double | Lat |
double | Lon |
Friends | |
class | CigiConfClampEntityCtrlV3 |
Definition at line 71 of file CigiBaseConfClampEntityCtrl.h.
CigiBaseConfClampEntityCtrl::CigiBaseConfClampEntityCtrl | ( | ) |
CigiBaseConfClampEntityCtrl::~CigiBaseConfClampEntityCtrl | ( | ) | [virtual] |
int CigiBaseConfClampEntityCtrl::GetCnvt | ( | CigiVersionID & | CnvtVersion, | |
CigiCnvtInfoType::Type & | CnvtInfo | |||
) | [virtual] |
A virtual Conversion Information function. This function provides conversion information for this packet.
CnvtVersion | - The CIGI version to which this packet is being converted. | |
CnvtInfo | - The information needed for conversion |
Reimplemented from CigiBasePacket.
Definition at line 85 of file CigiBaseConfClampEntityCtrl.cpp.
References CIGI_CONF_CLAMP_ENTITY_CTRL_PACKET_ID_V3, CIGI_SUCCESS, CigiVersionID::CigiMajorVersion, CigiCnvtInfoType::CigiCnvtInfoStruct::CnvtPacketID, CigiCnvtInfoType::CigiCnvtInfoStruct::ProcID, CigiProcessType::ProcNone, and CigiProcessType::ProcStd.
00087 { 00088 if(CnvtVersion.CigiMajorVersion < 3) 00089 { 00090 CnvtInfo.ProcID = CigiProcessType::ProcNone; 00091 CnvtInfo.CnvtPacketID = 0; 00092 } 00093 else 00094 { 00095 CnvtInfo.ProcID = CigiProcessType::ProcStd; 00096 CnvtInfo.CnvtPacketID = CIGI_CONF_CLAMP_ENTITY_CTRL_PACKET_ID_V3; 00097 } 00098 00099 return(CIGI_SUCCESS); 00100 }
Cigi_uint16 CigiBaseConfClampEntityCtrl::GetEntityID | ( | void | ) | const [inline] |
Gets the EntityID value.
Definition at line 155 of file CigiBaseConfClampEntityCtrl.h.
References EntityID.
00155 { return(EntityID); }
double CigiBaseConfClampEntityCtrl::GetLat | ( | void | ) | const [inline] |
Gets the Lat value.
Definition at line 189 of file CigiBaseConfClampEntityCtrl.h.
References Lat.
00189 { return(Lat); }
double CigiBaseConfClampEntityCtrl::GetLon | ( | void | ) | const [inline] |
Gets the Lon value.
Definition at line 206 of file CigiBaseConfClampEntityCtrl.h.
References Lon.
00206 { return(Lon); }
float CigiBaseConfClampEntityCtrl::GetYaw | ( | void | ) | const [inline] |
Gets the Yaw value.
Definition at line 172 of file CigiBaseConfClampEntityCtrl.h.
References Yaw.
00172 { return(Yaw); }
virtual int CigiBaseConfClampEntityCtrl::Pack | ( | CigiBasePacket * | Base, | |
Cigi_uint8 * | Buff, | |||
void * | Spec | |||
) | const [pure virtual] |
A pure virtual Pack function. This function is not implemented in this class.
Base | - A pointer to the instance of the packet to be packed. (Downcast to CigiBasePacket) | |
Buff | - A pointer to the current pack point. | |
Spec | - A pointer to special data. |
Implements CigiBasePacket.
Implemented in CigiConfClampEntityCtrlV3.
int CigiBaseConfClampEntityCtrl::SetEntityID | ( | const Cigi_uint16 | EntityIDIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the EntityID with bound checking control
EntityIDIn | - Entity ID | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 146 of file CigiBaseConfClampEntityCtrl.h.
References CIGI_SUCCESS, and EntityID.
00147 { 00148 EntityID = EntityIDIn; 00149 return(CIGI_SUCCESS); 00150 }
int CigiBaseConfClampEntityCtrl::SetLat | ( | const double | LatIn, | |
bool | bndchk = true | |||
) |
Sets the Lat with bound checking control
LatIn | - Latitude | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 133 of file CigiBaseConfClampEntityCtrl.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and Lat.
00134 { 00135 00136 #ifndef CIGI_NO_BND_CHK 00137 if(bndchk && ((LatIn < -90.0)||(LatIn > 90.0))) 00138 { 00139 #ifndef CIGI_NO_EXCEPT 00140 throw CigiValueOutOfRangeException("Lat",(double)LatIn,-90.0,90.0); 00141 #endif 00142 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00143 } 00144 #endif 00145 00146 Lat = LatIn; 00147 return(CIGI_SUCCESS); 00148 00149 }
int CigiBaseConfClampEntityCtrl::SetLon | ( | const double | LonIn, | |
bool | bndchk = true | |||
) |
Sets the Lon with bound checking control
LonIn | - Longitude | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 155 of file CigiBaseConfClampEntityCtrl.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and Lon.
00156 { 00157 00158 #ifndef CIGI_NO_BND_CHK 00159 if(bndchk && ((LonIn < -180.0)||(LonIn > 180.0))) 00160 { 00161 #ifndef CIGI_NO_EXCEPT 00162 throw CigiValueOutOfRangeException("Lon",(double)LonIn,-180.0,180.0); 00163 #endif 00164 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00165 } 00166 #endif 00167 00168 Lon = LonIn; 00169 return(CIGI_SUCCESS); 00170 00171 }
int CigiBaseConfClampEntityCtrl::SetYaw | ( | const float | YawIn, | |
bool | bndchk = true | |||
) |
Sets the Yaw with bound checking control
YawIn | - Entity yaw | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 111 of file CigiBaseConfClampEntityCtrl.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and Yaw.
00112 { 00113 00114 #ifndef CIGI_NO_BND_CHK 00115 if(bndchk && ((YawIn < 0.0)||(YawIn > 360.0))) 00116 { 00117 #ifndef CIGI_NO_EXCEPT 00118 throw CigiValueOutOfRangeException("Yaw",(float)YawIn,0.0,360.0); 00119 #endif 00120 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00121 } 00122 #endif 00123 00124 Yaw = YawIn; 00125 return(CIGI_SUCCESS); 00126 00127 }
virtual int CigiBaseConfClampEntityCtrl::Unpack | ( | Cigi_uint8 * | Buff, | |
bool | Swap, | |||
void * | Spec | |||
) | [pure virtual] |
A pure virtual Unpack function. This function is not implemented in this class.
Buff | - A pointer to the current pack point. | |
Swap | - N/A for V1 & V2 | |
Spec | - A pointer to special data. |
Implements CigiBasePacket.
Implemented in CigiConfClampEntityCtrlV3.
friend class CigiConfClampEntityCtrlV3 [friend] |
Definition at line 74 of file CigiBaseConfClampEntityCtrl.h.
Cigi_uint16 CigiBaseConfClampEntityCtrl::EntityID [protected] |
EntityID
Entity ID
Definition at line 218 of file CigiBaseConfClampEntityCtrl.h.
Referenced by CigiConfClampEntityCtrlV3::CigiConfClampEntityCtrlV3(), GetEntityID(), CigiConfClampEntityCtrlV3::Pack(), SetEntityID(), and CigiConfClampEntityCtrlV3::Unpack().
double CigiBaseConfClampEntityCtrl::Lat [protected] |
Lat
Latitude
Definition at line 230 of file CigiBaseConfClampEntityCtrl.h.
Referenced by CigiConfClampEntityCtrlV3::CigiConfClampEntityCtrlV3(), GetLat(), CigiConfClampEntityCtrlV3::Pack(), SetLat(), and CigiConfClampEntityCtrlV3::Unpack().
double CigiBaseConfClampEntityCtrl::Lon [protected] |
Lon
Longitude
Definition at line 236 of file CigiBaseConfClampEntityCtrl.h.
Referenced by CigiConfClampEntityCtrlV3::CigiConfClampEntityCtrlV3(), GetLon(), CigiConfClampEntityCtrlV3::Pack(), SetLon(), and CigiConfClampEntityCtrlV3::Unpack().
float CigiBaseConfClampEntityCtrl::Yaw [protected] |
Yaw
Yaw
Definition at line 224 of file CigiBaseConfClampEntityCtrl.h.
Referenced by CigiConfClampEntityCtrlV3::CigiConfClampEntityCtrlV3(), GetYaw(), CigiConfClampEntityCtrlV3::Pack(), SetYaw(), and CigiConfClampEntityCtrlV3::Unpack().