A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
8
NS_OBJECT_ENSURE_REGISTERED
(Header);
9
10
Header::~Header
()
11
{
12
NS_LOG_FUNCTION
(
this
);
13
}
14
15
TypeId
16
Header::GetTypeId
(
void
)
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
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:42
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Definition:
log-macros-enabled.h:207
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
Definition:
object-base.h:38
header.h
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition:
log.h:170
ns3::Header::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
header.cc:16
ns3::Header::Print
virtual void Print(std::ostream &os) const =0
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition:
angles.cc:43
ns3::Header::~Header
virtual ~Header()
Definition:
header.cc:10
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Definition:
type-id.cc:610
ns3::Chunk
abstract base class for ns3::Header and ns3::Trailer
Definition:
chunk.h:14
src
network
model
header.cc
Generated on Fri Dec 5 2014 17:29:21 for ns-3 by
1.8.6