A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
trailer.cc
Go to the documentation of this file.
1 #include "trailer.h"
2 #include "ns3/log.h"
3 
4 NS_LOG_COMPONENT_DEFINE ("Trailer");
5 
6 namespace ns3 {
7 
9 
11 {
12  NS_LOG_FUNCTION (this);
13 }
14 
15 TypeId
17 {
18  static TypeId tid = TypeId ("ns3::Trailer")
19  .SetParent<Chunk> ()
20  ;
21  return tid;
22 }
23 
24 std::ostream & operator << (std::ostream &os, const Trailer &trailer)
25 {
26  trailer.Print (os);
27  return os;
28 }
29 
30 } // namespace ns3
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
Definition: object-base.h:38
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:170
virtual ~Trailer()
Definition: trailer.cc:10
virtual void Print(std::ostream &os) const =0
static TypeId GetTypeId(void)
Get the type ID.
Definition: trailer.cc:16
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition: angles.cc:43
Protocol trailer serialization and deserialization.
Definition: trailer.h:40
a unique identifier for an interface.
Definition: type-id.h:49
TypeId SetParent(TypeId tid)
Definition: type-id.cc:610
abstract base class for ns3::Header and ns3::Trailer
Definition: chunk.h:14