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