00001 #ifndef CHUNK_H 00002 #define CHUNK_H 00003 00004 #include "ns3/object-base.h" 00005 #include "buffer.h" 00006 00007 namespace ns3 { 00008 00009 /** 00010 * \ingroup packet 00011 * 00012 * \brief abstract base class for ns3::Header and ns3::Trailer 00013 */ 00014 class Chunk : public ObjectBase 00015 { 00016 public: 00017 static TypeId GetTypeId (void); 00018 00019 virtual uint32_t Deserialize (Buffer::Iterator start) = 0; 00020 virtual void Print (std::ostream &os) const = 0; 00021 }; 00022 00023 } // namespace ns3 00024 00025 #endif /* CHUNK_H */