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  ;
10 
12 {
13  NS_LOG_FUNCTION (this);
14 }
15 
16 TypeId
18 {
19  static TypeId tid = TypeId ("ns3::Header")
20  .SetParent<Chunk> ()
21  ;
22  return tid;
23 }
24 
25 std::ostream & operator << (std::ostream &os, const Header &header)
26 {
27  header.Print (os);
28  return os;
29 }
30 
31 } // namespace ns3
Protocol header serialization and deserialization.
Definition: header.h:42
#define NS_LOG_FUNCTION(parameters)
Definition: log.h:345
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
static TypeId GetTypeId(void)
Definition: header.cc:17
virtual void Print(std::ostream &os) const =0
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition: angles.cc:43
virtual ~Header()
Definition: header.cc:11
NS_LOG_COMPONENT_DEFINE("Header")
a unique identifier for an interface.
Definition: type-id.h:49
TypeId SetParent(TypeId tid)
Definition: type-id.cc:611
abstract base class for ns3::Header and ns3::Trailer
Definition: chunk.h:14