51 std::set<packet_id_e> packetIdList;
52 for (
int i = 0; i < _packRequest.size(); i++)
57 if (packetIdList.count(packEnum) > 0)
63 packetIdList.insert(packEnum);
181 printf(
"Packet Id: %d, Packet Type: %s\n", it->first,
packetTypeStr_[it->first].c_str());
194 printf(
"Packet id: %d, Size: %d\n", it->first,
packetSize_[it->first]);
KVH Geo Fog 3D driver class header.
std::map< packet_id_e, std::string > packetTypeStr_
Holds the string value for the different types of structs.
KVH Packet storing class header.
std::map< packet_id_e, int > packetSize_
Map relating packet id's to the associated struct size. Used for baudrate calculation.
std::vector< std::pair< packet_id_e, uint16_t > > KvhPacketRequest
int Init(KvhPacketRequest &)
Correctly sets up a KvhPacketMap for the requested packets.
int SetPacketUpdated(packet_id_e, bool)
bool PacketIsUpdated(packet_id_e)
static void PrintPacketTypes()
static void PrintPacketSizes()
bool Contains(packet_id_e)