src/common/chunk.h
author Craig Dowell <craigdo@ee.washington.edu>
Wed, 03 Sep 2008 11:54:46 -0700
changeset 3594 8feda39dff1f
parent 3183 fc3b2e03e61e
permissions -rw-r--r--
Added tag ns-3.2-RC1 for changeset dfd634417b8d

#ifndef CHUNK_H
#define CHUNK_H

#include "ns3/object-base.h"
#include "buffer.h"

namespace ns3 {

/**
 * \ingroup packet
 *
 * \brief abstract base class for ns3::Header and ns3::Trailer
 */
class Chunk : public ObjectBase
{
 public:
  static TypeId GetTypeId (void); 

  virtual uint32_t Deserialize (Buffer::Iterator start) = 0;
  virtual void Print (std::ostream &os) const = 0;
};

} // namespace ns3

#endif /* CHUNK_H */