#include <CigiBaseSOF.h>
Inheritance diagram for CigiBaseSOF:
Definition at line 101 of file CigiBaseSOF.h.
The enumeration for the Earth Referance Model flag
Definition at line 126 of file CigiBaseSOF.h.
00127 { 00128 WGS84=0, 00129 HostDefined=1 00130 };
The enumeration for the IG Mode flag
Definition at line 114 of file CigiBaseSOF.h.
00115 { 00116 Reset=0, 00117 Standby=0, 00118 Operate=1, 00119 debug=2, 00120 OfflineMaint=3 00121 };
CigiBaseSOF::CigiBaseSOF | ( | ) |
CigiBaseSOF::~CigiBaseSOF | ( | ) | [virtual] |
int CigiBaseSOF::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 80 of file CigiBaseSOF.cpp.
References CIGI_SOF_PACKET_ID_V1, CIGI_SUCCESS, CigiCnvtInfoType::CigiCnvtInfoStruct::CnvtPacketID, CigiCnvtInfoType::CigiCnvtInfoStruct::ProcID, and CigiProcessType::ProcSOF.
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 }
Cigi_int8 CigiBaseSOF::GetDatabaseID | ( | void | ) | const [inline] |
Gets the Database ID value
Definition at line 214 of file CigiBaseSOF.h.
References DatabaseID.
00214 { return(DatabaseID); }
Cigi_uint32 CigiBaseSOF::GetFrameCntr | ( | void | ) | const [inline] |
Gets the Frame Counter value
Reimplemented in CigiSOFV1, CigiSOFV2, CigiSOFV3, and CigiSOFV3_2.
Definition at line 240 of file CigiBaseSOF.h.
References FrameCntr.
00240 { return(FrameCntr); }
IGModeGrp CigiBaseSOF::GetIGMode | ( | void | ) | const [inline] |
Gets the IG Mode value
Definition at line 268 of file CigiBaseSOF.h.
References IGMode.
00268 { return(IGMode); }
Cigi_uint8 CigiBaseSOF::GetIGStatus | ( | void | ) | const [inline] |
Gets the IG Mode value
Definition at line 293 of file CigiBaseSOF.h.
References IGStatus.
00293 { return(IGStatus); }
bool CigiBaseSOF::GetSwap | ( | void | ) | const [inline] |
Gets the Swap required flag
This is used for V3 to determine if automated swapping is required.
Definition at line 205 of file CigiBaseSOF.h.
References BSwapEn.
Referenced by CigiIncomingMsg::ProcessIncomingMsg().
00205 { return(BSwapEn); }
virtual int CigiBaseSOF::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 CigiSOFV1, CigiSOFV2, CigiSOFV3, and CigiSOFV3_2.
Referenced by CigiOutgoingMsg::operator<<().
int CigiBaseSOF::SetDatabaseID | ( | const Cigi_int8 | DataBaseIDIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the Database ID with bound checking control
DataBaseIDIn | - Specifies a new database to load. 0 - No Action All Other Values - Load the specified database | |
bndchk | - Enables (true) or disables (false) bounds checking |
Definition at line 226 of file CigiBaseSOF.h.
References CIGI_SUCCESS, and DatabaseID.
00227 { 00228 DatabaseID = DataBaseIDIn; 00229 00230 return(CIGI_SUCCESS); 00231 }
int CigiBaseSOF::SetFrameCntr | ( | const Cigi_uint32 | FrameCntrIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the Frame Counter with bound checking control
FrameCntrIn | - Specifies the frame. | |
bndchk | - Enables (true) or disables (false) bounds checking |
Reimplemented in CigiSOFV1, CigiSOFV2, CigiSOFV3, and CigiSOFV3_2.
Definition at line 250 of file CigiBaseSOF.h.
References CIGI_SUCCESS, and FrameCntr.
00251 { 00252 FrameCntr = FrameCntrIn; 00253 00254 return(CIGI_SUCCESS); 00255 }
int CigiBaseSOF::SetIGMode | ( | IGModeGrp | IGModeIn, | |
bool | bndchk = true | |||
) |
Sets the IG Mode with bound checking control
IGModeIn | - Specifies the commanded IG mode. 0 - Reset or Standby 1 - Operate 2 - debug 3 - Offline Maintenance | |
bndchk | - Enables (true) or disables (false) bounds checking |
Definition at line 104 of file CigiBaseSOF.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and IGMode.
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 }
int CigiBaseSOF::SetIGStatus | ( | Cigi_uint8 | IGStatusIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the IG Mode with bound checking control
IGStatusIn | - Specifies the IG status. 0 - Normal Operation All Other Values - IG System defined | |
bndchk | - Enables (true) or disables (false) bounds checking |
Definition at line 305 of file CigiBaseSOF.h.
References CIGI_SUCCESS, and IGStatus.
00306 { 00307 IGStatus = IGStatusIn; 00308 00309 return(CIGI_SUCCESS); 00310 }
virtual int CigiBaseSOF::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 CigiSOFV1, CigiSOFV2, CigiSOFV3, and CigiSOFV3_2.
friend class CigiSOFV1 [friend] |
Definition at line 104 of file CigiBaseSOF.h.
friend class CigiSOFV2 [friend] |
Definition at line 105 of file CigiBaseSOF.h.
friend class CigiSOFV3 [friend] |
Definition at line 106 of file CigiBaseSOF.h.
friend class CigiSOFV3_2 [friend] |
Definition at line 107 of file CigiBaseSOF.h.
bool CigiBaseSOF::BSwapEn [protected] |
Swap
Specifies whether the V3 packets must be byte swapped
Definition at line 322 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), GetSwap(), CigiSOFV3_2::Unpack(), and CigiSOFV3::Unpack().
Cigi_uint16 CigiBaseSOF::ByteSwap [protected] |
Byte Swap Constant for V3
Constant used to determine if byteswapping is needed in V3.
Definition at line 372 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), CigiSOFV3_2::Unpack(), and CigiSOFV3::Unpack().
Cigi_int8 CigiBaseSOF::DatabaseID [protected] |
DatabaseID
The current Database command
-128 - Indicates database is not available.
-127 - -1 - Identifies database being loaded.
1 - 127 - Identifies database that is loaded.
0 - Indicates IG controls database loading.
All other values - Command to load the specified Database
Definition at line 333 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), GetDatabaseID(), CigiSOFV3_2::Pack(), CigiSOFV3::Pack(), CigiSOFV2::Pack(), CigiSOFV1::Pack(), SetDatabaseID(), CigiSOFV3_2::Unpack(), CigiSOFV3::Unpack(), CigiSOFV2::Unpack(), and CigiSOFV1::Unpack().
EarthRefModelGrp CigiBaseSOF::EarthRefModel [protected] |
Earth Referance Model
0 - WGS84
1 - System Defined
Definition at line 388 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), CigiSOFV3_2::Pack(), CigiSOFV3::Pack(), CigiSOFV3_2::SetEarthRefModel(), CigiSOFV3::SetEarthRefModel(), CigiSOFV3_2::Unpack(), and CigiSOFV3::Unpack().
Cigi_uint32 CigiBaseSOF::FrameCntr [protected] |
Frame Counter
Specifies current frame being processed
Definition at line 347 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), GetFrameCntr(), CigiSOFV3_2::Pack(), CigiSOFV3::Pack(), CigiSOFV2::Pack(), CigiSOFV1::Pack(), SetFrameCntr(), CigiSOFV3_2::Unpack(), CigiSOFV3::Unpack(), CigiSOFV2::Unpack(), and CigiSOFV1::Unpack().
IGModeGrp CigiBaseSOF::IGMode [protected] |
IG Mode
0 - Reset or Standby
1 - Operate
2 - debug
3 - Offline Maintenance
Definition at line 381 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), GetIGMode(), CigiSOFV3_2::Pack(), CigiSOFV3::Pack(), CigiSOFV2::Pack(), CigiSOFV1::Pack(), SetIGMode(), CigiSOFV3_2::Unpack(), CigiSOFV3::Unpack(), CigiSOFV2::Unpack(), and CigiSOFV1::Unpack().
Cigi_uint8 CigiBaseSOF::IGStatus [protected] |
Swap
The current IG Status
0 - Normal Operation
All Other Values - IG System defined
Definition at line 341 of file CigiBaseSOF.h.
Referenced by GetIGStatus(), CigiSOFV3_2::Pack(), CigiSOFV3::Pack(), CigiSOFV2::Pack(), CigiSOFV1::Pack(), SetIGStatus(), CigiSOFV3_2::Unpack(), CigiSOFV3::Unpack(), CigiSOFV2::Unpack(), and CigiSOFV1::Unpack().
Cigi_uint32 CigiBaseSOF::LastRcvdHostFrame [protected] |
Last Received Host Frame
Specifies the host frame received last
Definition at line 353 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), CigiSOFV3_2::Pack(), CigiSOFV3_2::Unpack(), CigiSOFV3::Unpack(), CigiSOFV2::Unpack(), and CigiSOFV1::Unpack().
float CigiBaseSOF::TimeStampV2 [protected] |
Time Stamp - V2 format
Specifies the time from the beginning of the exercise
Definition at line 359 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), CigiSOFV2::Pack(), CigiSOFV3_2::SetTimeStamp(), CigiSOFV3::SetTimeStamp(), CigiSOFV2::SetTimeStamp(), CigiSOFV3_2::Unpack(), CigiSOFV3::Unpack(), and CigiSOFV2::Unpack().
Cigi_uint32 CigiBaseSOF::TimeStampV3 [protected] |
Time Stamp - V3 format
Specifies the time from the beginning of the exercise
Definition at line 365 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), CigiSOFV3_2::Pack(), CigiSOFV3::Pack(), CigiSOFV3_2::SetTimeStamp(), CigiSOFV3::SetTimeStamp(), CigiSOFV2::SetTimeStamp(), CigiSOFV3_2::Unpack(), CigiSOFV3::Unpack(), and CigiSOFV2::Unpack().
bool CigiBaseSOF::TimestampValid [protected] |
Timestame Valid
true - The timestamp is valid and usable
false - The timestamp is not valid.
Definition at line 395 of file CigiBaseSOF.h.
Referenced by CigiSOFV1::CigiSOFV1(), CigiSOFV2::CigiSOFV2(), CigiSOFV3::CigiSOFV3(), CigiSOFV3_2::CigiSOFV3_2(), CigiSOFV3_2::Pack(), CigiSOFV3::Pack(), CigiSOFV2::SetTimeStamp(), CigiSOFV3_2::Unpack(), and CigiSOFV3::Unpack().