A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
chunk.h
Go to the documentation of this file.
1 #ifndef CHUNK_H
2 #define CHUNK_H
3 
4 #include "ns3/object-base.h"
5 #include "buffer.h"
6 
7 namespace ns3 {
8 
14 class Chunk : public ObjectBase
15 {
16 public:
17  static TypeId GetTypeId (void);
18 
19  virtual uint32_t Deserialize (Buffer::Iterator start) = 0;
20  virtual void Print (std::ostream &os) const = 0;
21 };
22 
23 } // namespace ns3
24 
25 #endif /* CHUNK_H */
implement the ns-3 type and attribute system
Definition: object-base.h:70
virtual uint32_t Deserialize(Buffer::Iterator start)=0
iterator in a Buffer instance
Definition: buffer.h:98
virtual void Print(std::ostream &os) const =0
a unique identifier for an interface.
Definition: type-id.h:49
abstract base class for ns3::Header and ns3::Trailer
Definition: chunk.h:14
static TypeId GetTypeId(void)
Definition: chunk.cc:9