58 typedef std::map<packet_id_e, std::pair<bool, std::shared_ptr<void>>>
KvhPacketMap;
84 int Init(KvhPacketRequest &);
113 *
static_cast<T*
>(packetMap_[_packetId].second.get()) = _packetData;
153 _packet = *
static_cast<T*
>(packetMap_[_packetId].second.get());
global variables used to store packet information.
std::map< packet_id_e, std::string > packetTypeStr_
Holds the string value for the different types of structs.
std::set< packet_id_e > supportedPackets_
Set of packets containing all packet_id's we support.
std::vector< std::pair< packet_id_e, uint16_t > > KvhPacketRequest
int Init(KvhPacketRequest &)
Correctly sets up a KvhPacketMap for the requested packets.
int GetPacket(packet_id_e _packetId, T &_packet)
int SetPacketUpdated(packet_id_e, bool)
bool PacketIsUpdated(packet_id_e)
static void PrintPacketTypes()
std::map< packet_id_e, std::pair< bool, std::shared_ptr< void > > > KvhPacketMap
static void PrintPacketSizes()
bool Contains(packet_id_e)
int UpdatePacket(packet_id_e _packetId, T &_packetData)