CigiLosSegReqV3 Class Reference

#include <CigiLosSegReqV3.h>

Inheritance diagram for CigiLosSegReqV3:

CigiBaseLosSegReq CigiBasePacket List of all members.

Public Member Functions

 CigiLosSegReqV3 ()
virtual ~CigiLosSegReqV3 ()
virtual int Pack (CigiBasePacket *Base, Cigi_uint8 *Buff, void *Spec) const
virtual int Unpack (Cigi_uint8 *Buff, bool Swap, void *Spec)
int SetReqType (const ReqTypeGrp ReqTypeIn, bool bndchk=true)
ReqTypeGrp GetReqType (void) const
int SetSrcCoordSys (const CoordSysGrp SrcCoordSysIn, bool bndchk=true)
CoordSysGrp GetSrcCoordSys (void) const
int SetDstCoordSys (const CoordSysGrp DstCoordSysIn, bool bndchk=true)
CoordSysGrp GetDstCoordSys (void) const
int SetResponseCoordSys (const CoordSysGrp ResponseCoordSysIn, bool bndchk=true)
CoordSysGrp GetResponseCoordSys (void) const
int SetAlphaThresh (const Cigi_uint8 AlphaThreshIn, bool bndchk=true)
Cigi_uint8 GetAlphaThresh (void) const
int SetEntityID (const Cigi_uint16 EntityIDIn, bool bndchk=true)
Cigi_uint16 GetEntityID (void) const
int SetSrcXoff (const double SrcXoffIn, bool bndchk=true)
double GetSrcXoff (void) const
int SetSrcYoff (const double SrcYoffIn, bool bndchk=true)
double GetSrcYoff (void) const
int SetSrcZoff (const double SrcZoffIn, bool bndchk=true)
double GetSrcZoff (void) const
int SetDstXoff (const double DstXoffIn, bool bndchk=true)
double GetDstXoff (void) const
int SetDstYoff (const double DstYoffIn, bool bndchk=true)
double GetDstYoff (void) const
int SetDstZoff (const double DstZoffIn, bool bndchk=true)
double GetDstZoff (void) const
int SetMask (const Cigi_uint32 MaskIn, bool bndchk=true)
Cigi_uint32 GetMask (void) const

Detailed Description

Definition at line 61 of file CigiLosSegReqV3.h.


Constructor & Destructor Documentation

CigiLosSegReqV3::CigiLosSegReqV3 (  ) 

General Constructor

Definition at line 74 of file CigiLosSegReqV3.cpp.

References CigiBaseLosSegReq::AlphaThresh, CigiBaseLosSegReq::Basic, CIGI_LOS_SEG_REQ_PACKET_ID_V3, CIGI_LOS_SEG_REQ_PACKET_SIZE_V3, CigiBaseLosSegReq::DestEntityID, CigiBaseLosSegReq::DestEntityIDValid, CigiBaseLosSegReq::DstCoordSys, CigiBaseLosSegReq::DstXLat, CigiBaseLosSegReq::DstYLon, CigiBaseLosSegReq::DstZAlt, CigiBaseLosSegReq::EntityID, CigiBaseLosSegReq::Geodetic, CigiBaseLosSegReq::LosID, CigiBaseLosSegReq::Mask, CigiBasePacket::MinorVersion, CigiBasePacket::PacketID, CigiBasePacket::PacketSize, CigiBaseLosSegReq::ReqType, CigiBaseLosSegReq::ResponseCoordSys, CigiBaseLosSegReq::SrcCoordSys, CigiBaseLosSegReq::SrcXLat, CigiBaseLosSegReq::SrcYLon, CigiBaseLosSegReq::SrcZAlt, CigiBaseLosSegReq::UpdatePeriod, CigiBaseLosSegReq::ValidV1or2, and CigiBasePacket::Version.

00075 {
00076 
00077    PacketID = CIGI_LOS_SEG_REQ_PACKET_ID_V3;
00078    PacketSize = CIGI_LOS_SEG_REQ_PACKET_SIZE_V3;
00079    Version = 3;
00080    MinorVersion = 0;
00081 
00082    LosID = 0;
00083    ReqType = Basic;
00084    SrcCoordSys = Geodetic;
00085    DstCoordSys = Geodetic;
00086    ResponseCoordSys = Geodetic;
00087    AlphaThresh = 0;
00088    EntityID = 0;
00089    SrcXLat = 0.0;
00090    SrcYLon = 0.0;
00091    SrcZAlt = 0.0;
00092    DstXLat = 0.0;
00093    DstYLon = 0.0;
00094    DstZAlt = 0.0;
00095    Mask = 0;
00096    DestEntityIDValid = false;
00097    UpdatePeriod = 0;
00098    DestEntityID = 0;
00099    ValidV1or2 = true;
00100 
00101 }

CigiLosSegReqV3::~CigiLosSegReqV3 (  )  [virtual]

General Destructor

Definition at line 106 of file CigiLosSegReqV3.cpp.

00107 {
00108 
00109 }


Member Function Documentation

Cigi_uint8 CigiLosSegReqV3::GetAlphaThresh ( void   )  const [inline]

Gets the AlphaThresh value.

Returns:
the current AlphaThresh.

Definition at line 209 of file CigiLosSegReqV3.h.

00209 { return(AlphaThresh); }

CoordSysGrp CigiLosSegReqV3::GetDstCoordSys ( void   )  const [inline]

Gets the DstCoordSys value.

Returns:
the current DstCoordSys.

Definition at line 167 of file CigiLosSegReqV3.h.

00167 { return(DstCoordSys); }

double CigiLosSegReqV3::GetDstXoff ( void   )  const [inline]

Gets the DstXoff value.

Returns:
the current DstXoff.

Definition at line 320 of file CigiLosSegReqV3.h.

00320 { return(DstXLat); }

double CigiLosSegReqV3::GetDstYoff ( void   )  const [inline]

Gets the DstYoff value.

Returns:
the current DstYoff.

Definition at line 342 of file CigiLosSegReqV3.h.

00342 { return(DstYLon); }

double CigiLosSegReqV3::GetDstZoff ( void   )  const [inline]

Gets the DstZoff value.

Returns:
the current DstZoff.

Definition at line 364 of file CigiLosSegReqV3.h.

00364 { return(DstZAlt); }

Cigi_uint16 CigiLosSegReqV3::GetEntityID ( void   )  const [inline]

Gets the EntityID value.

Returns:
the current EntityID.

Definition at line 232 of file CigiLosSegReqV3.h.

00232 { return(EntityID); }

Cigi_uint32 CigiLosSegReqV3::GetMask ( void   )  const [inline]

Gets the Mask value.

Returns:
the current Mask.

Definition at line 386 of file CigiLosSegReqV3.h.

00386 { return(Mask); }

ReqTypeGrp CigiLosSegReqV3::GetReqType ( void   )  const [inline]

Gets the ReqType value.

Returns:
the current ReqType.

Definition at line 127 of file CigiLosSegReqV3.h.

00127 { return(ReqType); }

CoordSysGrp CigiLosSegReqV3::GetResponseCoordSys ( void   )  const [inline]

Gets the ResponseCoordSys value.

Returns:
the current ResponseCoordSys.

Definition at line 187 of file CigiLosSegReqV3.h.

00187 { return(ResponseCoordSys); }

CoordSysGrp CigiLosSegReqV3::GetSrcCoordSys ( void   )  const [inline]

Gets the SrcCoordSys value.

Returns:
the current SrcCoordSys.

Definition at line 147 of file CigiLosSegReqV3.h.

00147 { return(SrcCoordSys); }

double CigiLosSegReqV3::GetSrcXoff ( void   )  const [inline]

Gets the SrcXoff value.

Returns:
the current SrcXoff.

Definition at line 254 of file CigiLosSegReqV3.h.

00254 { return(SrcXLat); }

double CigiLosSegReqV3::GetSrcYoff ( void   )  const [inline]

Gets the SrcYoff value.

Returns:
the current SrcYoff.

Definition at line 276 of file CigiLosSegReqV3.h.

00276 { return(SrcYLon); }

double CigiLosSegReqV3::GetSrcZoff ( void   )  const [inline]

Gets the SrcZoff value.

Returns:
the current SrcZoff.

Definition at line 298 of file CigiLosSegReqV3.h.

00298 { return(SrcZAlt); }

int CigiLosSegReqV3::Pack ( CigiBasePacket Base,
Cigi_uint8 Buff,
void *  Spec 
) const [virtual]

The virtual Pack function for CIGI 3

Parameters:
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 - This is not used in this class.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Implements CigiBaseLosSegReq.

Definition at line 118 of file CigiLosSegReqV3.cpp.

References CigiBaseLosSegReq::AlphaThresh, CigiBaseLosSegReq::Basic, PackPointerUnion::c, PackPointerUnion::d, CigiBaseLosSegReq::DstCoordSys, CigiBaseLosSegReq::DstXLat, CigiBaseLosSegReq::DstYLon, CigiBaseLosSegReq::DstZAlt, CigiBaseLosSegReq::EntityID, CigiBaseLosSegReq::Geodetic, PackPointerUnion::l, CigiBaseLosSegReq::LosID, CigiBaseLosSegReq::Mask, CigiBasePacket::PacketID, CigiBasePacket::PacketSize, CigiBaseLosSegReq::ReqType, CigiBaseLosSegReq::ResponseCoordSys, PackPointerUnion::s, CigiBaseLosSegReq::SrcCoordSys, CigiBaseLosSegReq::SrcXLat, CigiBaseLosSegReq::SrcYLon, and CigiBaseLosSegReq::SrcZAlt.

00119 {
00120    PackPointer CDta;
00121 
00122    CigiBaseLosSegReq * Data = ( CigiBaseLosSegReq *)Base;
00123 
00124    CDta.c = Buff;
00125 
00126    *CDta.c++ = PacketID;
00127    *CDta.c++ = PacketSize;
00128 
00129    *CDta.s++ = Data->LosID;
00130 
00131    Cigi_uint8 HDta = (Data->ReqType == Basic) ? 0x00 : 0x01;
00132    HDta |= (Data->SrcCoordSys == Geodetic) ? 0x00 : 0x02;
00133    HDta |= (Data->DstCoordSys == Geodetic) ? 0x00 : 0x04;
00134    HDta |= (Data->ResponseCoordSys == Geodetic) ? 0x00 : 0x08;
00135    *CDta.c++ = HDta;
00136 
00137    *CDta.c++ = Data->AlphaThresh;
00138    *CDta.s++ = Data->EntityID;
00139    *CDta.d++ = Data->SrcXLat;
00140    *CDta.d++ = Data->SrcYLon;
00141    *CDta.d++ = Data->SrcZAlt;
00142    *CDta.d++ = Data->DstXLat;
00143    *CDta.d++ = Data->DstYLon;
00144    *CDta.d++ = Data->DstZAlt;
00145    *CDta.l++ = Data->Mask;
00146    *CDta.l++ = 0;
00147 
00148    return(PacketSize);
00149 
00150 }

int CigiLosSegReqV3::SetAlphaThresh ( const Cigi_uint8  AlphaThreshIn,
bool  bndchk = true 
) [inline]

Sets the AlphaThresh with bound checking control

Parameters:
AlphaThreshIn - The IG will only register an intersection when the intersected polygon has an alpha of this value or higher.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 200 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00201    {
00202       AlphaThresh = AlphaThreshIn;
00203       return(CIGI_SUCCESS);
00204    }

int CigiLosSegReqV3::SetDstCoordSys ( const CoordSysGrp  DstCoordSysIn,
bool  bndchk = true 
)

Sets the DstCoordSys with bound checking control

Parameters:
DstCoordSysIn - Specifies in which coordinate system the ending point is specified.
Geodetic=0
Entity=1
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 275 of file CigiLosSegReqV3.cpp.

References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, CigiBaseLosSegReq::DstCoordSys, CigiBaseLosSegReq::Geodetic, CigiBaseLosSegReq::SrcCoordSys, and CigiBaseLosSegReq::ValidV1or2.

00276 {
00277 
00278 #ifndef CIGI_NO_BND_CHK
00279    if(bndchk && ((DstCoordSysIn < 0)||(DstCoordSysIn > 1)))
00280    {
00281 #ifndef CIGI_NO_EXCEPT
00282       throw CigiValueOutOfRangeException("DstCoordSys",(CoordSysGrp)DstCoordSysIn,0,1);
00283 #endif
00284       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00285    }
00286 #endif
00287 
00288    DstCoordSys = DstCoordSysIn;
00289 
00290    ValidV1or2 = ((SrcCoordSys == Geodetic)&&
00291                  (DstCoordSys == Geodetic));
00292 
00293    return(CIGI_SUCCESS);
00294 
00295 }

int CigiLosSegReqV3::SetDstXoff ( const double  DstXoffIn,
bool  bndchk = true 
) [inline]

Sets the DstXoff with bound checking control

Parameters:
DstXoffIn - The destination point X axis offset in meters from the specified entity's origin.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 311 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00312    {
00313       DstXLat = DstXoffIn;
00314       return(CIGI_SUCCESS);
00315    }

int CigiLosSegReqV3::SetDstYoff ( const double  DstYoffIn,
bool  bndchk = true 
) [inline]

Sets the DstYoff with bound checking control

Parameters:
DstYoffIn - The destination point Y axis offset in meters from the specified entity's origin.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 333 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00334    {
00335       DstYLon = DstYoffIn;
00336       return(CIGI_SUCCESS);
00337    }

int CigiLosSegReqV3::SetDstZoff ( const double  DstZoffIn,
bool  bndchk = true 
) [inline]

Sets the DstZoff with bound checking control

Parameters:
DstZoffIn - The destination point Z axis offset in meters from the specified entity's origin.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 355 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00356    {
00357       DstZAlt = DstZoffIn;
00358       return(CIGI_SUCCESS);
00359    }

int CigiLosSegReqV3::SetEntityID ( const Cigi_uint16  EntityIDIn,
bool  bndchk = true 
) [inline]

Sets the EntityID with bound checking control

Parameters:
EntityIDIn - The Entity ID that the source and/or destination point is measured from when the coordinate system for that point is specified as "Entity"
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 223 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00224    {
00225       EntityID = EntityIDIn;
00226       return(CIGI_SUCCESS);
00227    }

int CigiLosSegReqV3::SetMask ( const Cigi_uint32  MaskIn,
bool  bndchk = true 
) [inline]

Sets the Mask with bound checking control

Parameters:
MaskIn - The material mask to turn on or off registration of intersections with polygons having specific material properties.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 377 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00378    {
00379       Mask = MaskIn;
00380       return(CIGI_SUCCESS);
00381    }

int CigiLosSegReqV3::SetReqType ( const ReqTypeGrp  ReqTypeIn,
bool  bndchk = true 
)

Sets the ReqType with bound checking control

Parameters:
ReqTypeIn - Request type
This specifies whether the response should be basic or extended.
Basic=0
Extended=1
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 227 of file CigiLosSegReqV3.cpp.

References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and CigiBaseLosSegReq::ReqType.

00228 {
00229 
00230 #ifndef CIGI_NO_BND_CHK
00231    if(bndchk && ((ReqTypeIn < 0)||(ReqTypeIn > 1)))
00232    {
00233 #ifndef CIGI_NO_EXCEPT
00234       throw CigiValueOutOfRangeException("ReqType",(ReqTypeGrp)ReqTypeIn,0,1);
00235 #endif
00236       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00237    }
00238 #endif
00239 
00240    ReqType = ReqTypeIn;
00241    return(CIGI_SUCCESS);
00242 
00243 }

int CigiLosSegReqV3::SetResponseCoordSys ( const CoordSysGrp  ResponseCoordSysIn,
bool  bndchk = true 
)

Sets the ResponseCoordSys with bound checking control

Parameters:
ResponseCoordSysIn - Specifies in which coordinate system the response intersection point is specified.
Geodetic=0
Entity=1
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 301 of file CigiLosSegReqV3.cpp.

References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and CigiBaseLosSegReq::ResponseCoordSys.

00302 {
00303 
00304 #ifndef CIGI_NO_BND_CHK
00305    if(bndchk && ((ResponseCoordSysIn < 0)||(ResponseCoordSysIn > 1)))
00306    {
00307 #ifndef CIGI_NO_EXCEPT
00308       throw CigiValueOutOfRangeException("ResponseCoordSys",(CoordSysGrp)ResponseCoordSysIn,0,1);
00309 #endif
00310       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00311    }
00312 #endif
00313 
00314    ResponseCoordSys = ResponseCoordSysIn;
00315    return(CIGI_SUCCESS);
00316 
00317 }

int CigiLosSegReqV3::SetSrcCoordSys ( const CoordSysGrp  SrcCoordSysIn,
bool  bndchk = true 
)

Sets the SrcCoordSys with bound checking control

Parameters:
SrcCoordSysIn - Specifies in which coordinate system the starting point is specified.
Geodetic=0
Entity=1
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 249 of file CigiLosSegReqV3.cpp.

References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, CigiBaseLosSegReq::DstCoordSys, CigiBaseLosSegReq::Geodetic, CigiBaseLosSegReq::SrcCoordSys, and CigiBaseLosSegReq::ValidV1or2.

00250 {
00251 
00252 #ifndef CIGI_NO_BND_CHK
00253    if(bndchk && ((SrcCoordSysIn < 0)||(SrcCoordSysIn > 1)))
00254    {
00255 #ifndef CIGI_NO_EXCEPT
00256       throw CigiValueOutOfRangeException("SrcCoordSys",(CoordSysGrp)SrcCoordSysIn,0,1);
00257 #endif
00258       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00259    }
00260 #endif
00261 
00262    SrcCoordSys = SrcCoordSysIn;
00263 
00264    ValidV1or2 = ((SrcCoordSys == Geodetic)&&
00265                  (DstCoordSys == Geodetic));
00266 
00267    return(CIGI_SUCCESS);
00268 
00269 }

int CigiLosSegReqV3::SetSrcXoff ( const double  SrcXoffIn,
bool  bndchk = true 
) [inline]

Sets the SrcXoff with bound checking control

Parameters:
SrcXoffIn - The source point X axis offset in meters from the specified entity's origin.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 245 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00246    {
00247       SrcXLat = SrcXoffIn;
00248       return(CIGI_SUCCESS);
00249    }

int CigiLosSegReqV3::SetSrcYoff ( const double  SrcYoffIn,
bool  bndchk = true 
) [inline]

Sets the SrcYoff with bound checking control

Parameters:
SrcYoffIn - The source point Y axis offset in meters from the specified entity's origin.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 267 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00268    {
00269       SrcYLon = SrcYoffIn;
00270       return(CIGI_SUCCESS);
00271    }

int CigiLosSegReqV3::SetSrcZoff ( const double  SrcZoffIn,
bool  bndchk = true 
) [inline]

Sets the SrcZoff with bound checking control

Parameters:
SrcZoffIn - The source point Z axis offset in meters from the specified entity's origin.
bndchk - Enables (true) or disables (false) bounds checking.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Definition at line 289 of file CigiLosSegReqV3.h.

References CIGI_SUCCESS.

00290    {
00291       SrcZAlt = SrcZoffIn;
00292       return(CIGI_SUCCESS);
00293    }

int CigiLosSegReqV3::Unpack ( Cigi_uint8 Buff,
bool  Swap,
void *  Spec 
) [virtual]

The virtual Unpack function for CIGI 3

Parameters:
Buff - A pointer to the current pack point.
Swap - N/A for V1 & V2
Spec - A pointer to special data - This is not used in this class.
Returns:
This returns CIGI_SUCCESS or an error code defined in CigiErrorCodes.h

Implements CigiBaseLosSegReq.

Definition at line 155 of file CigiLosSegReqV3.cpp.

References CigiBaseLosSegReq::AlphaThresh, PackPointerUnion::c, CigiSwap2(), CigiSwap4(), CigiSwap8(), PackPointerUnion::d, CigiBaseLosSegReq::DestEntityID, CigiBaseLosSegReq::DestEntityIDValid, CigiBaseLosSegReq::DstCoordSys, CigiBaseLosSegReq::DstXLat, CigiBaseLosSegReq::DstYLon, CigiBaseLosSegReq::DstZAlt, CigiBaseLosSegReq::EntityID, CigiBaseLosSegReq::Geodetic, PackPointerUnion::l, CigiBaseLosSegReq::LosID, CigiBaseLosSegReq::Mask, CigiBasePacket::PacketSize, CigiBaseLosSegReq::ReqType, CigiBaseLosSegReq::ResponseCoordSys, PackPointerUnion::s, CigiBaseLosSegReq::SrcCoordSys, CigiBaseLosSegReq::SrcXLat, CigiBaseLosSegReq::SrcYLon, CigiBaseLosSegReq::SrcZAlt, CigiBaseLosSegReq::UpdatePeriod, and CigiBaseLosSegReq::ValidV1or2.

00156 {
00157    PackPointer CDta;
00158 
00159    CDta.c = Buff;
00160 
00161    CDta.c += 2;  // Step over packet id and size
00162 
00163    if(!Swap)
00164    {
00165       LosID = *CDta.s++;
00166 
00167       Cigi_uint16 HDta = *CDta.c++;
00168       ReqType = (ReqTypeGrp)(HDta & 0x01);
00169       SrcCoordSys = (CoordSysGrp)((HDta >> 1) & 0x01);
00170       DstCoordSys = (CoordSysGrp)((HDta >> 2) & 0x01);
00171       ResponseCoordSys = (CoordSysGrp)((HDta >> 3) & 0x01);
00172 
00173       AlphaThresh = *CDta.c++;
00174       EntityID = *CDta.s++;
00175       SrcXLat = *CDta.d++;
00176       SrcYLon = *CDta.d++;
00177       SrcZAlt = *CDta.d++;
00178       DstXLat = *CDta.d++;
00179       DstYLon = *CDta.d++;
00180       DstZAlt = *CDta.d++;
00181       Mask = *CDta.l++;
00182    }
00183    else
00184    {
00185       CigiSwap2(&LosID, CDta.s++);
00186 
00187       Cigi_uint16 HDta = *CDta.c++;
00188       ReqType = (ReqTypeGrp)(HDta & 0x01);
00189       SrcCoordSys = (CoordSysGrp)((HDta >> 1) & 0x01);
00190       DstCoordSys = (CoordSysGrp)((HDta >> 2) & 0x01);
00191       ResponseCoordSys = (CoordSysGrp)((HDta >> 3) & 0x01);
00192 
00193       AlphaThresh = *CDta.c++;
00194       CigiSwap2(&EntityID, CDta.s++);
00195       CigiSwap8(&SrcXLat, CDta.d++);
00196       CigiSwap8(&SrcYLon, CDta.d++);
00197       CigiSwap8(&SrcZAlt, CDta.d++);
00198       CigiSwap8(&DstXLat, CDta.d++);
00199       CigiSwap8(&DstYLon, CDta.d++);
00200       CigiSwap8(&DstZAlt, CDta.d++);
00201       CigiSwap4(&Mask, CDta.l++);
00202    }
00203 
00204    
00205    ValidV1or2 = ((SrcCoordSys == Geodetic)&&
00206                  (DstCoordSys == Geodetic));
00207 
00208 
00209    DestEntityIDValid = false;
00210    UpdatePeriod = 0;
00211    DestEntityID = 0;
00212 
00213    return(PacketSize);
00214 
00215 }


The documentation for this class was generated from the following files:
Generated on Wed Apr 29 09:00:09 2009 for CCL by  doxygen 1.4.7