A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
header.cc
Go to the documentation of this file.
1 #include "header.h"
2 #include "ns3/log.h"
3 
4 NS_LOG_COMPONENT_DEFINE ("Header");
5 
6 namespace ns3 {
7 
9 
11 {
12  NS_LOG_FUNCTION (this);
13 }
14 
15 TypeId
17 {
18  static TypeId tid = TypeId ("ns3::Header")
19  .SetParent<Chunk> ()
20  ;
21  return tid;
22 }
23 
24 std::ostream & operator << (std::ostream &os, const Header &header)
25 {
26  header.Print (os);
27  return os;
28 }
29 
30 } // namespace ns3