3 #define ADD_PACKET(id,nbytes,info,enabledVersion) if ((enabledVersion) & version) packets[id]=boost::make_shared<Packet>(nbytes,info) 48 for (std::map<uint8_t, boost::shared_ptr<Packet> >::iterator it =
packets.begin();
51 ids.push_back(it->first);
69 return boost::shared_ptr<Packet>();
73 for (std::map<uint8_t, boost::shared_ptr<Packet> >::iterator it =
packets.begin();
76 it->second->validate();
uint8_t getNumPackets() const
bool isValidPacketID(const uint8_t id) const
std::vector< uint8_t > getPacketIDs()
uint32_t getTotalDataBytes() const
Data(ProtocolVersion version=V_3)
boost::shared_ptr< Packet > getPacket(const uint8_t id)
std::vector< uint8_t > ids
#define ADD_PACKET(id, nbytes, info, enabledVersion)
std::map< uint8_t, boost::shared_ptr< Packet > > packets