.. _program_listing_file_include_create_data.h: Program Listing for File data.h =============================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/create/data.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef CREATE_DATA_H #define CREATE_DATA_H #include #include #include #include "create/packet.h" #include "create/types.h" namespace create { class Data { private: std::map > packets; uint32_t totalDataBytes; std::vector ids; public: Data(ProtocolVersion version = V_3); ~Data(); bool isValidPacketID(const uint8_t id) const; std::shared_ptr getPacket(const uint8_t id); void validateAll(); uint32_t getTotalDataBytes() const; uint8_t getNumPackets() const; std::vector getPacketIDs(); }; } // namespace create #endif // CREATE_DATA_H